-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: create subdir 'py', move content from py sources, add headers/s…
…ubsections
- Loading branch information
1138-4EB
committed
Oct 21, 2019
1 parent
dad251c
commit 97fa8d7
Showing
7 changed files
with
276 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ Documentation | |
|
||
user_guide | ||
cli | ||
python_interface | ||
py/ui | ||
vhdl_libraries | ||
examples | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,189 @@ | ||
.. _compile_options: | ||
|
||
Compilation Options | ||
------------------- | ||
|
||
Compilation options allow customization of compilation behavior. Since simulators have | ||
differing options available, generic options may be specified through this interface. | ||
The following compilation options are known. | ||
|
||
``ghdl.flags`` | ||
Extra arguments passed to ``ghdl -a`` command during compilation. | ||
Must be a list of strings. | ||
|
||
``incisive.irun_vhdl_flags`` | ||
Extra arguments passed to the Incisive ``irun`` command when compiling VHDL files. | ||
Must be a list of strings. | ||
|
||
``incisive.irun_verilog_flags`` | ||
Extra arguments passed to the Incisive ``irun`` command when compiling Verilog files. | ||
Must be a list of strings. | ||
|
||
``modelsim.vcom_flags`` | ||
Extra arguments passed to ModelSim ``vcom`` command. | ||
Must be a list of strings. | ||
|
||
``modelsim.vlog_flags`` | ||
Extra arguments passed to ModelSim ``vlog`` command. | ||
Must be a list of strings. | ||
|
||
``rivierapro.vcom_flags`` | ||
Extra arguments passed to Riviera PRO ``vcom`` command. | ||
Must be a list of strings. | ||
|
||
``rivierapro.vlog_flags`` | ||
Extra arguments passed to Riviera PRO ``vlog`` command. | ||
Must be a list of strings. | ||
|
||
``activehdl.vcom_flags`` | ||
Extra arguments passed to Active HDL ``vcom`` command. | ||
Must be a list of strings. | ||
|
||
``activehdl.vlog_flags`` | ||
Extra arguments passed to Active HDL ``vcom`` command. | ||
Must be a list of strings. | ||
|
||
.. note:: | ||
Only affects source files added *before* the option is set. | ||
|
||
.. _sim_options: | ||
|
||
Simulation Options | ||
------------------ | ||
|
||
Simulation options allow customization of simulation behavior. Since simulators have | ||
differing options available, generic options may be specified through this interface. | ||
The following simulation options are known. | ||
|
||
``vhdl_assert_stop_level`` | ||
Will stop a VHDL simulation for asserts on the provided severity level or higher. | ||
Valid values are ``"warning"``, ``"error"``, and ``"failure"``. This option takes | ||
precedence over the fail_on_warning attribute. | ||
|
||
``disable_ieee_warnings`` | ||
Disable ieee warnings. Must be a boolean value. Default is False. | ||
|
||
.. _coverage: | ||
|
||
``enable_coverage`` | ||
Enables code coverage collection during simulator for the run affected by the sim_option. | ||
Must be a boolean value. Default is False. | ||
|
||
When coverage is enabled VUnit only takes the minimal steps required | ||
to make the simulator creates an unique coverage file for the | ||
simulation run. The VUnit users must still set :ref:`sim | ||
<sim_options>` and :ref:`compile <compile_options>` options to | ||
configure the simulator specific coverage options they want. The | ||
reason for this to allow the VUnit users maximum control of their | ||
coverage settings. | ||
|
||
An example of a ``run.py`` file using coverage can be found | ||
:vunit_example:`here <vhdl/coverage>`. | ||
|
||
.. note: Supported by RivieraPRO and Modelsim/Questa simulators. | ||
``pli`` | ||
A list of PLI file names. | ||
|
||
``ghdl.flags`` | ||
Extra arguments passed to ``ghdl --elab-run`` command *before* executable specific flags. | ||
Must be a list of strings. | ||
|
||
``incisive.irun_sim_flags`` | ||
Extra arguments passed to the Incisive ``irun`` command when loading the design. | ||
Must be a list of strings. | ||
|
||
``modelsim.vsim_flags`` | ||
Extra arguments passed to ``vsim`` when loading the design. | ||
Must be a list of strings. | ||
|
||
``modelsim.vsim_flags.gui`` | ||
Extra arguments passed to ``vsim`` when loading the design in GUI | ||
mode where it takes precedence over ``modelsim.vsim_flags``. | ||
Must be a list of strings. | ||
|
||
``modelsim.init_files.after_load`` | ||
A list of user defined DO/TCL-files that is sourced after the design has been loaded. | ||
They will be executed during ``vunit_load``, after the top level has been loaded | ||
using the ``vsim`` command. | ||
During script evaluation the ``vunit_tb_path`` variable is defined | ||
as the path of the folder containing the test bench. | ||
Must be a list of strings. | ||
|
||
``modelsim.init_files.before_run`` | ||
A list of user defined DO/TCL-files that is sourced before the simulation is run. | ||
They will be executed at the start of ``vunit_run`` (and therefore also re-executed | ||
by ``vunit_restart``). | ||
Must be a list of strings. | ||
|
||
``modelsim.init_file.gui`` | ||
A user defined TCL-file that is sourced after the design has been loaded in the GUI. | ||
For example this can be used to configure the waveform viewer. | ||
During script evaluation the ``vunit_tb_path`` variable is defined | ||
as the path of the folder containing the test bench. | ||
Must be a string. | ||
|
||
``rivierapro.vsim_flags`` | ||
Extra arguments passed to ``vsim`` when loading the design. | ||
Must be a list of strings. | ||
|
||
``rivierapro.vsim_flags.gui`` | ||
Extra arguments passed to ``vsim`` when loading the design in GUI | ||
mode where it takes precedence over ``rivierapro.vsim_flags``. | ||
Must be a list of strings. | ||
|
||
``rivierapro.init_files.after_load`` | ||
A list of user defined DO/TCL-files that is sourced after the design has been loaded. | ||
They will be executed during ``vunit_load``, after the top level has been loaded | ||
using the ``vsim`` command. | ||
During script evaluation the ``vunit_tb_path`` variable is defined | ||
as the path of the folder containing the test bench. | ||
Must be a list of strings. | ||
|
||
``rivierapro.init_files.before_run`` | ||
A list of user defined DO/TCL-files that is sourced before the simulation is run. | ||
They will be executed at the start of ``vunit_run`` (and therefore also re-executed | ||
by ``vunit_restart``). | ||
Must be a list of strings. | ||
|
||
``rivierapro.init_file.gui`` | ||
A user defined TCL-file that is sourced after the design has been loaded in the GUI. | ||
For example this can be used to configure the waveform viewer. | ||
During script evaluation the ``vunit_tb_path`` variable is defined | ||
as the path of the folder containing the test bench. | ||
Must be a string. | ||
|
||
``activehdl.vsim_flags`` | ||
Extra arguments passed to ``vsim`` when loading the design. | ||
Must be a list of strings. | ||
|
||
``activehdl.vsim_flags.gui`` | ||
Extra arguments passed to ``vsim`` when loading the design in GUI | ||
mode where it takes precedence over ``activehdl.vsim_flags``. | ||
Must be a list of strings. | ||
|
||
``activehdl.init_file.gui`` | ||
A user defined TCL-file that is sourced after the design has been loaded in the GUI. | ||
For example this can be used to configure the waveform viewer. | ||
Must be a string. | ||
|
||
``ghdl.elab_flags`` | ||
Extra elaboration flags passed to ``ghdl --elab-run``. | ||
Must be a list of strings. | ||
|
||
``ghdl.sim_flags`` | ||
Extra simulation flags passed to ``ghdl --elab-run``. | ||
Must be a list of strings. | ||
|
||
``ghdl.elab_e`` | ||
With ``--elaborate``, execute ``ghdl -e`` instead of ``ghdl --elab-run --no-run``. | ||
Must be a boolean. | ||
|
||
``ghdl.gtkwave_script.gui`` | ||
A user defined TCL-file that is sourced after the design has been loaded in the GUI. | ||
For example this can be used to configure the waveform viewer. Must be a string. | ||
There are currently limitations in the HEAD revision of GTKWave that prevent the | ||
user from sourcing a list of scripts directly. The following is the current work | ||
around to sourcing multiple user TCL-files: | ||
``source <path/to/script.tcl>`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
vunit.ui.VUnit | ||
============== | ||
|
||
.. autoclass:: vunit.ui.VUnit() | ||
:exclude-members: add_preprocessor, | ||
add_builtins | ||
|
||
Library | ||
------- | ||
|
||
.. autoclass:: vunit.ui.Library() | ||
:exclude-members: package | ||
|
||
SourceFileList | ||
-------------- | ||
|
||
.. autoclass:: vunit.ui.SourceFileList() | ||
|
||
SourceFile | ||
---------- | ||
|
||
.. autoclass:: vunit.ui.SourceFile() | ||
|
||
TestBench | ||
--------- | ||
|
||
.. autoclass:: vunit.ui.TestBench() | ||
|
||
Test | ||
---- | ||
|
||
.. autoclass:: vunit.ui.Test() | ||
|
||
Results | ||
------- | ||
|
||
.. autoclass:: vunit.ui.Results() | ||
|
||
.. |compile_option| replace:: | ||
The name of the compile option (See :ref:`Compilation options <compile_options>`) | ||
|
||
.. |simulation_options| replace:: | ||
The name of the simulation option (See :ref:`Simulation options <sim_options>`) | ||
|
||
.. |configurations| replace:: | ||
:ref:`configurations <configurations>` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.