File tree 3 files changed +19
-7
lines changed
3 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Please `file an issue <https://github.com/lowRISC/ibex/issues>`_ if you experien
10
10
- Synopsys Design Compiler
11
11
- Xilinx Vivado
12
12
- Verilator, version |tool_requirements.verilator | and up.
13
- - Synopsys VCS
13
+ - Synopsys VCS, version at least | tool_requirements.vcs |.
14
14
- Cadence Incisive/Xcelium
15
15
- Mentor Questa
16
16
- Aldec Riviera Pro
Original file line number Diff line number Diff line change 12
12
# documentation root, use os.path.abspath to make it absolute, like shown here.
13
13
#
14
14
import os
15
- # import sys
16
- # sys.path.insert(0, os.path.abspath('.'))
15
+ import sys
17
16
18
17
# Source top directory
19
18
topsrcdir = os .path .join (os .path .dirname (__file__ ), '..' )
20
19
20
+ old_sys_path = sys .path
21
+ try :
22
+ sys .path .append (os .path .join (topsrcdir , 'util' ))
23
+ import check_tool_requirements as ctr
24
+ finally :
25
+ sys .path = old_sys_path
26
+
27
+
21
28
numfig = True
22
29
numfig_format = {'figure' : 'Figure %s' , 'table' : 'Table %s' , 'code-block' : 'Listing %s' }
23
30
164
171
165
172
# Add minimum versions of required tools as variables for use inside the
166
173
# documentation.
167
- exec ( open ( os . path . join ( topsrcdir , 'tool_requirements.py' )). read () )
174
+ tool_reqs = ctr . read_tool_requirements ( )
168
175
rst_epilog = ""
169
- for tool_name , tool_version in __TOOL_REQUIREMENTS__ .items ():
170
- rst_epilog += ".. |tool_requirements.{}| replace:: {}\n " .format (tool_name , tool_version )
176
+ for tool , req in tool_reqs .items ():
177
+ rst_epilog += (".. |tool_requirements.{}| replace:: {}\n "
178
+ .format (tool , req .min_version ))
Original file line number Diff line number Diff line change 6
6
# and inserted into the Sphinx-generated documentation.
7
7
__TOOL_REQUIREMENTS__ = {
8
8
'verilator' : '4.028' ,
9
- 'edalize' : '0.2.0'
9
+ 'edalize' : '0.2.0' ,
10
+ 'vcs' : {
11
+ 'min_version' : '2020.03-SP2' ,
12
+ 'as_needed' : True
13
+ }
10
14
}
You can’t perform that action at this time.
0 commit comments