RapidWright icon indicating copy to clipboard operation
RapidWright copied to clipboard

RapidWright should track in the netlist if macros have been expanded or collapsed

Open clavin-xlnx opened this issue 2 years ago • 2 comments

When Vivado reads a netlist (EDIF file, for example) it will expand the macros in it before returning control to the user. RapidWright emulates this behavior by expanding upon read of a DCP and collapsing upon write of a DCP. However, if a DCP is written as an intermediate step, the netlist in memory stays collapsed and performing other netlist operations may fail afterwards (such as DesignTools.copyImplementation()). There should be a flag added to the netlist to track the current state of the macros so that these methods, or the user can query and expand the netlist appropriately.

clavin-xlnx avatar Apr 15 '22 23:04 clavin-xlnx

What is the API to expand the macro?

pongstorn-xilinx avatar Apr 16 '22 04:04 pongstorn-xilinx

What is the API to expand the macro?

EDIFNetlist.expandMacroUnisims(Series series)

clavin-xlnx avatar Apr 18 '22 13:04 clavin-xlnx