Skip to content

Commit 026db55

Browse files
committed
[util] Document required VCS version
We don't actually run anything that checks this at the moment, but at least we now have it written down somewhere.
1 parent 5d7b7c1 commit 026db55

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

doc/02_user/system_requirements.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Please `file an issue <https://github.com/lowRISC/ibex/issues>`_ if you experien
1010
- Synopsys Design Compiler
1111
- Xilinx Vivado
1212
- Verilator, version |tool_requirements.verilator| and up.
13-
- Synopsys VCS
13+
- Synopsys VCS, version at least |tool_requirements.vcs|.
1414
- Cadence Incisive/Xcelium
1515
- Mentor Questa
1616
- Aldec Riviera Pro

doc/conf.py

+13-5
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@
1212
# documentation root, use os.path.abspath to make it absolute, like shown here.
1313
#
1414
import os
15-
# import sys
16-
# sys.path.insert(0, os.path.abspath('.'))
15+
import sys
1716

1817
# Source top directory
1918
topsrcdir = os.path.join(os.path.dirname(__file__), '..')
2019

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+
2128
numfig=True
2229
numfig_format = {'figure': 'Figure %s', 'table': 'Table %s', 'code-block': 'Listing %s'}
2330

@@ -164,7 +171,8 @@
164171

165172
# Add minimum versions of required tools as variables for use inside the
166173
# documentation.
167-
exec(open(os.path.join(topsrcdir, 'tool_requirements.py')).read())
174+
tool_reqs = ctr.read_tool_requirements()
168175
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))

tool_requirements.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@
66
# and inserted into the Sphinx-generated documentation.
77
__TOOL_REQUIREMENTS__ = {
88
'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+
}
1014
}

0 commit comments

Comments
 (0)