Skip to content

Commit 6b099ad

Browse files
Merge pull request verilog-to-routing#3130 from verilog-to-routing/docs-run-vtr-includes
Updating VTR Docs -include Command
2 parents c709753 + 38d83cd commit 6b099ad

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

doc/src/vtr/run_vtr_flow.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ Enable Synlig tool with the ``-DSYNLIG_SYSTEMVERILOG=ON`` compile flag for the P
9090
9191
Will run the VTR flow (default configuration) with Yosys frontend using Parmys plugin as partial mapper. To utilize the Parmys plugin, the ``-DYOSYS_PARMYS_PLUGIN=ON`` compile flag should be passed while building the VTR project with Yosys as a frontend.
9292

93+
.. code-block:: bash
94+
95+
# Using the Parmys (Partial Mapper for Yosys) plugin as partial mapper with include files
96+
./run_vtr_flow <path/to/Verilog/File> <path/to/arch/file> -include <path/to/include/directory>/*.v*
97+
98+
Will run the VTR flow (default configuration) with Yosys frontend using Parmys plugin as partial mapper. In addition to the main circuit passed in with the architecture, it will also pass in every HDL file with the specified file type within the include directory.
99+
93100
Detailed Command-line Options
94101
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
95102

@@ -123,6 +130,15 @@ Detailed Command-line Options
123130
* ``vpr``
124131

125132
**Default:** ``vpr``
133+
134+
.. option:: -include <path_to_file(s)>/*.<file_type(s)>
135+
136+
List of include files to a benchmark circuit
137+
(pass to VTR frontends as a benchmark design set).
138+
139+
Include files can be any file supported by yosys+parmys (normally .v or .vh files).
140+
141+
The include directory should not contain the circuit passed in with the architecture.
126142

127143
.. option:: -power
128144

vtr_flow/scripts/python_libs/vtr/parmys/parmys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def run(
151151
Circuit file to optimize
152152
153153
include_files :
154-
list of header files
154+
List of include files to a benchmark circuit. Passed in by run_vtr_flow with -include
155155
156156
output_netlist :
157157
File name to output the resulting circuit to

0 commit comments

Comments
 (0)