hbl
New Contributor
2 years agoAdding SV interface to PD _hw.tcl
Trying to define a SV interface in PlatformDesigner _hw.tcl file but I keep getting error message about port/interface! The SV interface declaration was loaded using:
add_fileset_file system_bus_if.sv SYSTEM_VERILOG PATH system_bus_if.sv SYSTEMVERILOG_INTERFACE
I've added the following to the _hw.tcl file
add_sv_interface bus_if system_bus_if
set_port_property data SV_INTERFACE_SIGNAL bus_if
This triggered a "No port data" error. Then I added
add_sv_interface bus_if system_bus_if
add_interface_port bus_if data data Input 8
set_port_property data SV_INTERFACE_SIGNAL bus_if
which triggered an "interface bus_if does not exist" error.
What's the correct syntax to declare SV interface in PD _hw.tcl file?
Thanks