Skip to main content

xilinx

vivado_sim(IP_LIB **kwargs)

Create a target for invoking Vivado (compilation, elaboration, and simulation) on IP_LIB.

It will create a target run_<IP_LIB>_vivado that will compile, elaborate, and simulate the IP_LIB design.

Parameters

NameTypeDescription
IP_LIBstringThe target IP library, it needs to have SOURCES property set with a list of System Verilog or VHDL files.

Keyword Arguments

NameTypeDescription
NO_RUN_TARGETboolDo not create a run target.
GUIboolRun simulation in GUI mode.
RUN_TARGET_NAMEstringReplace the default name of the run target.
TOP_MODULEstringTop module name to be used for elaboration and simulation.
XVLOG_ARGSstringExtra arguments to be passed to the SystemVerilog / Verilog compilation step.
XVHDL_ARGSstringExtra arguments to be passed to the VHDL compilation step.
XELAB_ARGSstringExtra arguments to be passed to the elaboration step.
XSIM_ARGSstringExtra arguments to be passed to the simulation step.
RUN_ARGSstringExtra arguments to be passed to the simulation step.
OUTDIRstringOutput directory for the simulation build files. If omitted, ${BINARY_DIR}/${IP_LIB}_vivado_sim is used.
FILE_SETSlist[string]Specify list of File sets to retrieve the sources from

vivado_sim_configure_cxx(**kwargs)

.. note:: This is a macro, and so does not introduce a new scope.

This macro is used to configure the C and CXX compiler to the one used by the tool. In this specific case, it won't change anything for the compiler use but will add some useful information to IP_LIB.

The only supported library by this function is DPI-C, it can be used as done in the following example :

vivado_sim_configure_cxx(LIBRARIES DPI-C)

Keyword Arguments

NameTypeDescription
LIBRARIESlist[string]Libraries that needs to be added.

vivado_sim_add_cxx_libs(**kwargs)

This function is called by the vivado_sim_configure_cxx macro, you shouldn't use it directly.

It will add the needed information to IP_LIB and add some flags for the compilation and linking.

Keyword Arguments

NameTypeDescription
32BITboolUse 32 bitness.
LIBRARIESlist[string]libraries that needs to be added, possible choice are DPI-C only for now.