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

Add -blackbox option to setundef pass #4812

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

KrystalDelusion
Copy link
Member

What are the reasons/motivation for this change?
From Dev JF:

Add an option -blackbox to setundef which will operate on the non-blackbox modules and remove the instances (cells) of blackbox modules and connect their outputs to $anyseq cells instead. Make this the default in SBY. This way we avoid any problems with needing to derive de-blackboxed modules to handle I/O signals with parametrizable widths, which isn't possible when they came from verific.

Explain how this is achieved.

  • Add -blackbox option to setundef. If used, all instances of blackboxes in a module will be removed via cutpoint -undef. The undef wires can then be handled as usual by setundef. e.g. setundef -blackbox -anyseq will remove instances of blackboxes and replace their outputs with $anyseq cells.
  • Add test for setundef -blackbox.
  • Add $scopeinfo cells for removed instances (should this be in cutpoint or in setundef?)

If applicable, please suggest to reviewers how they can test the change.

If used, all instances of blackboxes in a module will be removed via `cutpoint -undef`.
The undef wires can then be handled as usual by `setundef`.
e.g. `setundef -blackbox -anyseq` will remove instances of blackboxes and replace their outputs with `$anyseq` cells.
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

Successfully merging this pull request may close these issues.

1 participant