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
e2041a8a
Commit
e2041a8a
authored
10 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Define tool set 'unb233', which sets the tools for uniboard2 on dop233.
parent
5ceaad2c
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
tools/modelsim/set_modelsim
+4
-1
4 additions, 1 deletion
tools/modelsim/set_modelsim
tools/quartus/run_altera_simlib_comp
+14
-13
14 additions, 13 deletions
tools/quartus/run_altera_simlib_comp
tools/quartus/set_quartus
+3
-0
3 additions, 0 deletions
tools/quartus/set_quartus
with
21 additions
and
14 deletions
tools/modelsim/set_modelsim
+
4
−
1
View file @
e2041a8a
...
...
@@ -37,10 +37,13 @@ if [ "${TOOLSET}" = "unb1" ]; then
.
${
RADIOHDL
}
/tools/quartus/quartus_version.sh 11.1
.
${
RADIOHDL
}
/tools/modelsim/modelsim_version.sh 6.6c
elif
[
"
${
TOOLSET
}
"
=
"unb2"
]
;
then
#. ${RADIOHDL}/tools/quartus/quartus_version.sh 13.1
.
${
RADIOHDL
}
/tools/quartus/quartus_version.sh 14.1
.
${
RADIOHDL
}
/tools/modelsim/modelsim_version.sh 10.4
export
LD_PRELOAD
=
/home/software/freetype2/usr/lib/libfreetype.so
elif
[
"
${
TOOLSET
}
"
=
"unb233"
]
;
then
# unb233 = toolset unb2 on dop233
.
${
RADIOHDL
}
/tools/quartus/quartus_version.sh 14.1
.
${
RADIOHDL
}
/tools/modelsim/modelsim_version.sh 10.2c
else
echo
"error: unknown tool setting:
${
TOOLSET
}
(choose 'unb1' or 'unb2')"
exit
1
...
...
This diff is collapsed.
Click to expand it.
tools/quartus/run_altera_simlib_comp
+
14
−
13
View file @
e2041a8a
...
...
@@ -31,51 +31,52 @@
# Another advantage of using this script is that it can be kept in SVN and that it avoids having to explain how to do it manually
# via the GUI.
# Usage:
# Assume $MODEL_TECH_ALTERA_LIB=/home/software/modelsim_altera_libs/14.
0a10
# Assume $MODEL_TECH_ALTERA_LIB=/home/software/modelsim_altera_libs/14.
1
#
# First run the script in some user directory that where $RADIOHDL is known. Use the output directory that will fit the
# $MODEL_TECH_ALTERA_LIB that is defined in quartus_version.sh in set_quartus.
# The FPGA device family library needs to be compiled separately. To compile the vhdl and verilog for the arria10 library for the
# unb2 tool settings defined in set_quartus and set_modelsim do:
#
# > run_altera_simlib_comp unb2 14.0a10 arria10
# > run_altera_simlib_comp unb2 14.1 stratixiv
# > run_altera_simlib_comp unb2 14.1 arria10
#
# Then use 'sudo' to move the directory to the protected central project directory that is set by $MODEL_TECH_ALTERA_LIB.
#
# > sudo mv 14.
0a10
/home/software/modelsim_altera_libs
# > sudo mv 14.
1
/home/software/modelsim_altera_libs
#
# 1) General tool and project settings
# - use '. <script>.sh' to have the settings apply in this shell, otherwise they get lost when <script>.sh returns
# Tool settings for selected target "", "unb1", or "unb2" (where "" defaults to
target
"unb1")
T
ARG
ET
=
${
1
:-}
if
[
"
${
T
ARG
ET
}
"
=
""
]
;
then
unb_error
$0
"Please specify all arguments
\n
Usage:
$0
<tool
targ
et> <compilation output directory> <FPGA device family>"
# Tool settings for selected target "", "unb1", or "unb2" (where "" defaults to "unb1")
T
OOLS
ET
=
${
1
:-}
if
[
"
${
T
OOLS
ET
}
"
=
""
]
;
then
unb_error
$0
"Please specify all arguments
\n
Usage:
$0
<tool
s
et> <compilation output directory> <FPGA device family>"
fi
# Select output directory for the library compilation results
OUTPUT_DIR
=
${
2
:-}
if
[
"
${
OUTPUT_DIR
}
"
=
""
]
;
then
unb_error
$0
"Please specify all arguments
\n
Usage:
$0
<tool
targ
et> <compilation output directory> <FPGA device family>"
unb_error
$0
"Please specify all arguments
\n
Usage:
$0
<tool
s
et> <compilation output directory> <FPGA device family>"
fi
# Select FPGA device family for the library compilation
FAMILY
=
${
3
:-}
if
[
"
${
FAMILY
}
"
=
""
]
;
then
unb_error
$0
"Please specify all arguments
\n
Usage:
$0
<tool
targ
et> <compilation output directory> <FPGA device family>"
unb_error
$0
"Please specify all arguments
\n
Usage:
$0
<tool
s
et> <compilation output directory> <FPGA device family>"
fi
echo
""
echo
"Create Altera libraries for simulation with the following settings:"
echo
" - Tool target
:
${
T
ARG
ET
}
"
echo
" - Tool
set
target :
${
T
OOLS
ET
}
"
echo
" - Output directory :
${
OUTPUT_DIR
}
"
echo
" - FPGA device family:
${
FAMILY
}
"
echo
""
# Tool settings for selected target
.
${
RADIOHDL
}
/tools/quartus/set_quartus
${
T
ARG
ET
}
.
${
RADIOHDL
}
/tools/modelsim/set_modelsim
${
T
ARG
ET
}
.
${
RADIOHDL
}
/tools/quartus/set_quartus
${
T
OOLS
ET
}
.
${
RADIOHDL
}
/tools/modelsim/set_modelsim
${
T
OOLS
ET
}
# 2) Create Modelsim .do file for compiling the Altera simulation libraries
...
...
@@ -123,7 +124,7 @@ mv ../${FAMILY}_vhdl.log .
#
# file.txt = the file name
if
[
"
${
T
ARG
ET
}
"
=
"unb
2
"
]
;
then
if
[
"
${
T
OOLS
ET
}
"
!
=
"unb
1
"
]
;
then
sed
-i
's/vlib/vlib -type directory/g'
${
FAMILY
}
_verilog.do
sed
-i
's/vlib/vlib -type directory/g'
${
FAMILY
}
_vhdl.do
fi
...
...
This diff is collapsed.
Click to expand it.
tools/quartus/set_quartus
+
3
−
0
View file @
e2041a8a
...
...
@@ -37,6 +37,9 @@ if [ "${TOOLSET}" = "unb1" ]; then
.
${
RADIOHDL
}
/tools/quartus/quartus_version.sh 11.1
elif
[
"
${
TOOLSET
}
"
=
"unb2"
]
;
then
.
${
RADIOHDL
}
/tools/quartus/quartus_version.sh 14.1
elif
[
"
${
TOOLSET
}
"
=
"unb233"
]
;
then
# unb233 = toolset unb2 on dop233
.
${
RADIOHDL
}
/tools/quartus/quartus_version.sh 14.1
else
echo
"error: unknown tool setting:
${
TOOLSET
}
(choose 'unb1' or 'unb2')"
exit
1
...
...
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