As OpenFPGA integrates various tools, the commands are categorized into different classes:
Basic Commands
~~~~~~~~~~~~~~
..option:: help
Show help desk to list all the available commands
..option:: exit
Exit OpenFPGA shell
VPR
~~~
..option:: vpr
OpenFPGA allows users to call ``vpr`` in the standard way as documented in vtr project.
Setup OpenFPGA
~~~~~~~~~~~~~~
..option:: read_openfpga_arch
Read the XML architecture file required by OpenFPGA
-``--file`` or ``-f`` Specify the file name
-``--verbose`` Show verbose log
..option:: write_openfpga_arch
Write the OpenFPGA XML architecture file to a file
-``--file`` or ``-f`` Specify the file name
-``--verbose`` Show verbose log
..option:: link_openfpga_arch
Annotate the OpenFPGA architecture to VPR data base
-``--activity_file`` Specify the signal activity file
-``--sort_gsb_chan_node_in_edges`` Sort the edges for the routing tracks in General Switch Blocks (GSBs). Strongly recommand to turn this on for uniquifying the routing modules
Write the internal structure of General Switch Blocks (GSBs) across a FPGA fabric, including the interconnection between the nodes and node-level details, to XML files
-``--file`` or ``-f`` Specify the output directory of the XML files. Each GSB will be written to an indepedent XML file
-``--verbose`` Show verbose log
..note:: This command is used to help users to study the difference between GSBs
-``--compress_routing`` Enable compression on routing architecture modules. Strongly recommend this as it will minimize the number of routing modules to be outputted. It can reduce the netlist size significantly.
-``--duplicate_grid_pin`` Enable pin duplication on grid modules. This is optional unless ultra-dense layout generation is needed
-``--depth`` Specify at which depth of the fabric module graph should the writer stop outputting. The root module start from depth 0. For example, if you want a two-level hierarchy, you should specify depth as 1.
-``--include_timing`` Output timing information to Verilog netlists for primitive modules
-``--include_signal_init`` Output signal initialization to Verilog netlists for primitive modules
-``--support_icarus_simulator`` Output Verilog netlists with syntax that iVerilog simulatorcan accept
-``--print_user_defined_template`` Output a template Verilog netlist for all the user-defined ``circuit models`` in :ref:`circuit_library`. This aims to help engineers to check what is the port sequence required by top-level Verilog netlists
-``--verbose`` Show verbose log
..option:: write_verilog_testbench
Write the Verilog testbench for FPGA fabric
-``--file`` or ``-f`` The output directory for all the testbench netlists. We suggest the use of same output directory as fabric Verilog netlists
-``--reference_benchmark_file_path`` Must specify the reference benchmark Verilog file if you want to output any testbenches
-``--fast_configuration`` Enable fast configuration phase for the top-level testbench in order to reduce runtime of simulations. It is applicable to memory bank and frame-based configuration protocols. When enabled, all the zero configuration bits will be skipped. So ensure that your memory cells can be correctly reset to zero with a reset signal.
-``--print_top_testbench`` Enable top-level testbench which is a full verification including programming circuit and core logic of FPGA
-``--print_formal_verification_top_netlist`` Generate a top-level module which can be used in formal verification
-``--print_preconfig_top_testbench`` Enable pre-configured top-level testbench which is a fast verification skipping programming phase
-``--print_simulation_ini`` Output an exchangeable simulation ini file, which is needed only when you need to interface different HDL simulators using openfpga flow-run scripts
-``--time_unit`` Specify a time unit to be used in SDC files. Acceptable values are string: ``as`` | ``fs`` | ``ps`` | ``ns`` | ``us`` | ``ms`` | ``ks`` | ``Ms``. By default, we will consider second (``s``).
-``--output_hierarchy`` Output hierarchy of Multiple-Instance-Blocks(MIBs) to plain text file. This is applied to constrain timing for grids, Switch Blocks and Connection Blocks.
..note:: Valid only when ``compress_routing`` is enabled in ``build_fabric``
-``--constrain_global_port`` Constrain all the global ports of FPGA fabric.
-``--constrain_non_clock_global_port`` Constrain all the non-clock global ports as clocks ports of FPGA fabric
..note::``constrain_global_port`` will treat these global ports in Clock Tree Synthesis (CTS), in purpose of balancing the delay to each sink. Be carefull to enable ``constrain_non_clock_global_port``, this may significanly increase the runtime of CTS as it is supposed to be routed before any other nets. This may cause routing congestion as well.
Write the SDC file to constrain the timing for configuration chain. The timing constraints will always start from the first output (Q) of a Configuration Chain Flip-flop (CCFF) and ends at the inputs of the next CCFF in the chain. Note that Qb of CCFF will not be constrained!
-``--file`` or ``-f`` Specify the output SDC file
-``--time_unit`` Specify a time unit to be used in SDC files. Acceptable values are string: ``as`` | ``fs`` | ``ps`` | ``ns`` | ``us`` | ``ms`` | ``ks`` | ``Ms``. By default, we will consider second (``s``).
-``--max_delay`` Specify the maximum delay to be used. The timing value should follow the time unit defined in this command.
-``--min_delay`` Specify the minimum delay to be used. The timing value should follow the time unit defined in this command.
..note::
Only applicable when configuration chain is used as configuration protocol
Write the SDC file to disable timing for configure ports of programmable modules. The SDC aims to break the combinational loops across FPGAs and avoid false path timing to be visible to timing analyzers
-``--file`` or ``-f`` Specify the output SDC file
-``--flatten_names`` Use flatten names (no wildcards) in SDC files
-``--time_unit`` Specify a time unit to be used in SDC files. Acceptable values are string: ``as`` | ``fs`` | ``ps`` | ``ns`` | ``us`` | ``ms`` | ``ks`` | ``Ms``. By default, we will consider second (``s``).