Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
4a162200
Commit
4a162200
authored
10 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Clarified and reorganized.
parent
b4312291
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/setup_unb.sh
+58
-19
58 additions, 19 deletions
tools/setup_unb.sh
with
58 additions
and
19 deletions
tools/setup_unb.sh
+
58
−
19
View file @
4a162200
...
@@ -25,24 +25,63 @@ if [ -z "${UNB_SH}" ]; then
...
@@ -25,24 +25,63 @@ if [ -z "${UNB_SH}" ]; then
export
UNB_SH
=
true
export
UNB_SH
=
true
echo
"Setup old UniBoard environment for Modelsim and Quartus"
echo
"Setup old UniBoard environment for Modelsim and Quartus"
# Altera + ModelSim
# 1) Usage
export
QUARTUS_DIR
=
/home/software/Altera/11.1
export
MODEL_TECH
=
/home/software/Mentor/modeltech
# Source this script after the setup_radiohdl.sh in the .bashrc to setup the old UniBoard environment for Modelsim and Quartus.
export
NIOSDIR
=
${
QUARTUS_DIR
}
/nios2eds
export
QUARTUS_ROOTDIR_OVERRIDE
=
${
QUARTUS_DIR
}
/quartus
export
QUARTUS_ROOTDIR
=
${
QUARTUS_DIR
}
/quartus
# 2) Default tool settings
export
MODELSIM
=
${
UNB
}
/Firmware/sim/modelsim/modelsim.ini
export
MODEL_TECH_ALTERA_LIB
=
/home/software/modelsim_altera_libs/11.1
# The $RADIOHDL environment variable is defined by first calling setup_radiohdl.sh in the .bashrc.
export
SOPC_KIT_NIOS2
=
${
NIOSDIR
}
.
${
RADIOHDL
}
/tools/quartus/quartus_version.sh 11.1
PATH
=
$PATH
:
\
.
${
RADIOHDL
}
/tools/quartus/quartus_generic.sh
${
NIOSDIR
}
/bin:
\
.
${
RADIOHDL
}
/tools/modelsim/modelsim_version.sh 6.6c
${
NIOSDIR
}
/sdk2/bin:
\
${
NIOSDIR
}
/bin/gnu/H-i686-pc-linux-gnu/bin:
\
${
QUARTUS_ROOTDIR
}
/bin:
\
# 3) Synthesis
${
QUARTUS_ROOTDIR
}
/sopc_builder/bin:
\
${
MODEL_TECH
}
/linux_x86_64
# For Quartus synthesis in the old UniBoard environment no further settings are needed.
export
PATH
# 4) Simulation
# For Modelsim simulation in the old UniBoard environment the following setings are needed:
# The old UniBoard environment uses a libraries.ini that gets set in a project specific modelsim.ini. The default modelsim.ini
# gets overrulled via the MODELSIM environment variable. For RadioHDL the default modelsim.ini as it comes with the tool is
# used, because that is fine. This implies that a libraries.ini can not be invoked via the modelsim.ini. Therefore instead of
# using a central libraries.ini for RadioHDL all libraries get mapped directly in the generated modelsim project files.
# The $UNB environment variable is already defined in the setup_radiohdl.sh in the .bashrc.
# To simulate the old UniBoard $UNB environment do:
#
# > unb_msim &
#
# The old UniBoard envrionment uses dedicated libraries.ini and commands.do for some application projects. These projects can
# be simulated by starting Modelsim with:
#
# > paasar_msim &
# > aartfaac_msim &
#
# In addation to the 'lp' and 'mk' commands for the UNB libraries these projects have 'lpa' and 'mka' commands to load and make
# the application specific libraries for simulation.
export
AARTFAAC
=
${
SVN
}
/UniBoard_FP7/Aartfaac/trunk
export
PAASAR
=
${
SVN
}
/UniBoard_FP7/Paasar/trunk
export
PATH
=
${
PATH
}
:
\
${
AARTFAAC
}
/Firmware/sim/modelsim:
\
${
PAASAR
}
/Firmware/sim/modelsim
# When Modelsim is started using the unb_msim script the setup sofar is sufficient.
# The alias unb_sim='vsim -do ${UNB}/Firmware/sim/modelsim/commands.do' is no longer supported, because the unb_msim script is
# equivalent in usage and easier to maintain because the start script contains the required settings. Or add to the .bashrc:
#
# alias unb_sim=unb_msim
#
fi
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment