Skip to content
Snippets Groups Projects
Commit feca4945 authored by Pieter Donker's avatar Pieter Donker
Browse files

RTSD-56, processed review comment

parent 4604d9e6
No related branches found
No related tags found
1 merge request!325L~RTSD-56, backup
Pipeline #49437 passed
...@@ -54,7 +54,6 @@ The ta2 project folder contains 4 sub-folders: ...@@ -54,7 +54,6 @@ The ta2 project folder contains 4 sub-folders:
# Altera, Mentor and modelsim_altera_libs dir # Altera, Mentor and modelsim_altera_libs dir
export ALTERA_DIR=/home/software/Altera export ALTERA_DIR=/home/software/Altera
export MENTOR_DIR=/home/software/Mentor export MENTOR_DIR=/home/software/Mentor
export MODELSIM_ALTERA_LIBS_DIR=/home/software/modelsim_altera_libs
. ${GIT}/radiohdl/init_radiohdl.sh . ${GIT}/radiohdl/init_radiohdl.sh
......
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
* bashrc defines root directories that contain one or more versions of tool installations * bashrc defines root directories that contain one or more versions of tool installations
- define MENTOR_DIR : modelsim installations - define MENTOR_DIR : modelsim installations
- define ALTERA_DIR : altera installations - define ALTERA_DIR : altera installations
- define MODELSIM_ALTERA_LIBS_DIR : compiled modelsim simulation libraries for altera components
- LM_LICENSE_FILE=<our_license@our_compagny> - LM_LICENSE_FILE=<our_license@our_compagny>
...@@ -87,7 +86,6 @@ source also radiohdl tools ...@@ -87,7 +86,6 @@ source also radiohdl tools
> compile_altera_simlibs unb1 # creates build/unb1/hdl_libraries_ip_stratixiv.txt > compile_altera_simlibs unb1 # creates build/unb1/hdl_libraries_ip_stratixiv.txt
# creates build/quartus/<tool version> simulation models that need to be moved # creates build/quartus/<tool version> simulation models that need to be moved
# manually to $MODELSIM_ALTERA_LIBS_DIR/<tool version>
> generate_ip_libs unb1 # creates build/unb1/qmegawiz/ > generate_ip_libs unb1 # creates build/unb1/qmegawiz/
# creates build/unb1/quartus_sh --> empty dir, why is it there? # creates build/unb1/quartus_sh --> empty dir, why is it there?
......
...@@ -55,13 +55,22 @@ if [[ ! -d "${HDL_BUILD_DIR}" ]]; then ...@@ -55,13 +55,22 @@ if [[ ! -d "${HDL_BUILD_DIR}" ]]; then
mkdir "${HDL_BUILD_DIR}" mkdir "${HDL_BUILD_DIR}"
fi fi
# set modelsim_altera_libs dir # set hdl_build_quartus dir
export MODELSIM_ALTERA_LIBS_DIR=${HDL_BUILD_DIR}/quartus export HDL_BUILD_QUARTUS_DIR=${HDL_BUILD_DIR}/quartus
if [[ ! -d "${MODELSIM_ALTERA_LIBS_DIR}" ]]; then if [[ ! -d "${HDL_BUILD_QUARTUS_DIR}" ]]; then
echo "make modelsim_altera_libs dir" echo "make hdl/build/quartus dir"
echo "${HDL_BUILD_QUARTUS_DIR}"
mkdir "${HDL_BUILD_QUARTUS_DIR}"
echo "Do not remove this dir, it is used by modelsim_altera_libs symlink" > ${HDL_BUILD_QUARTUS_DIR}/readme.txt
fi
export MODELSIM_ALTERA_LIBS_DIR=${HDL_BUILD_DIR}/modelsim_altera_libs
if [[ -L "${MODELSIM_ALTERA_LIBS_DIR}" ]] && [[ -e "${MODELSIM_ALTERA_LIBS_DIR}" ]]; then
echo "${MODELSIM_ALTERA_LIBS_DIR} is a valid symlink"
else
echo "make a symlink for modelsim_altera_libs dir"
echo "${MODELSIM_ALTERA_LIBS_DIR}" echo "${MODELSIM_ALTERA_LIBS_DIR}"
mkdir "${MODELSIM_ALTERA_LIBS_DIR}" ln -s "${HDL_BUILD_QUARTUS_DIR}" "${MODELSIM_ALTERA_LIBS_DIR}"
echo "This dir is also used as modelsim_altera_libs dir" > ${MODELSIM_ALTERA_LIBS_DIR}/readme.txt
fi fi
# modelsim uses this sim dir for testing # modelsim uses this sim dir for testing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment