Skip to main content

peakrdl_regblock

peakrdl_regblock(IP_LIB **kwargs)

Create a target for invoking PeakRDL-regblock on IP_LIB.

PeakRDL-regblock is transforming SystemRDL input files to SystemVerilog register block files. Regblock documentation can be found on this link.

Function expects that ${IP_LIB} has SYSTEMRDL_SOURCES property set with a list of SystemRDL files to be used as inputs. To set the SYSTEMRDL_SOURCES property use the ip_sources()

ip_sources(ip SYSTEMRDL ${PROJECT_SOURCE_DIR}/file.rdl)

This function will append 2 generated files from PeakRDL-regblock to the SYSTEMVERILOG_SOURCES property of the ${IP_LIB}.

Parameters

NameTypeDescription
IP_LIBstringThe target IP library.

Keyword Arguments

NameTypeDescription
OUTDIRstringoutput directory in which the files will be generated.
RENAMEstringRename the generated module and file name to a custom string, otherwise the
INTFstringInterface to use for the regblock. Possible values are:
RESETstringreset type for generated regblock. Possible values are:
ARGSlistany additional arguments to pass to peakrdl cli