Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
clavin-xlnx opened this issue Apr 15, 2022 · 2 comments

Comments

@clavin-xlnx
Copy link
Member

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.

@pongstorn-AMD
Copy link
Contributor

What is the API to expand the macro?

@clavin-xlnx
Copy link
Member Author

What is the API to expand the macro?

EDIFNetlist.expandMacroUnisims(Series series)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants