Skip to main content

sv2v

sv2v(IP_LIB **kwargs)

This function convert SystemVerilog files to Verilog files.

It will take all the .sv files in ${IP_LIB} and convert them to verilog files, they will be stored in a new folder, which can be parametrized. It's also possible to replace the files in case of flattening, using the REPLACE argument.

Parameters

NameTypeDescription
IP_LIBstringThe target IP library.

Keyword Arguments

NameTypeDescription
OUTDIRstringPath to the location where converted file will be stored, if not set, it's in ${BINARY_DIR}/sv2v
REPLACEboolCan be set if .sv files need to be replaced by the .v files in the flatten graph.