cocotb
cocotb(IP_LIB **kwargs)
Create a target for invoking simulation on IP_LIB using the cocotb Python verification framework.
The function is a wrapper around supported simulators by cocotb. It is based on the cocotb Makefiles.
Parameters
| Name | Type | Description |
|---|---|---|
IP_LIB | string | The target IP library. |
Keyword Arguments
| Name | Type | Description |
|---|---|---|
NO_RUN_TARGET | bool | Do not create a run target. |
GUI | bool | Run simulation in GUI mode. |
OUTDIR | string | Output directory for the cocotb simulation build files. |
RUN_TARGET_NAME | string | Replace the default name of the run target. |
TOP_MODULE | string | Top module name to be used for elaboration and simulation. |
COCOTB_MODULE | string | Simulator executable name. Defaults to <IP_LIB>_iverilog_tb. |
COCOTB_TESTCASE | integer | Cocotb number of test cases to run (from 1 to N). All test cases are run sequentially if not provided. |
SIM | string | Simulator to use. Supported simulators is: icarus (cocotb also support verilator, xcelium, vcs and questasim, not yet supported by SoCMake). |
TIMESCALE | string | Simulation timescale. Default is 1ns/1ps. |
PYTHONPATH | string | List of paths to be added to the PYTHONPATH environment variable to include python modules needed for the simulation. |
SV_COMPILE_ARGS | string | Extra arguments to be passed to the SystemVerilog / Verilog compilation step. |
RUN_ARGS | string | Extra arguments to be passed to the simulation step. |