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

Advanced LayerSink #7548

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Advanced LayerSink #7548

wants to merge 1 commit into from

Conversation

rwy7
Copy link
Contributor

@rwy7 rwy7 commented Aug 23, 2024

No description provided.

@rwy7 rwy7 force-pushed the advanced-layer-sink branch 3 times, most recently from 5464ac7 to 5031be0 Compare September 18, 2024 17:44
// implementation assumes it can run at a time where every register is
// currently in the final module it will be emitted in, all registers have
// been created, and no registers have yet been removed.
if (opt.isRandomEnabled(FirtoolOptions::RandomKind::Reg))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving register randomization to before layerSink, which, as an optimization, can delete registers.

@@ -1,5 +1,5 @@
// RUN: circt-opt %s -split-input-file | circt-opt -split-input-file
// RUN: firtool %s -split-input-file
// RUN: firtool %s -preserve-values=named -split-input-file
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using interesting_name and preserve-values=named together to prevent layer-sink from deleting instances or wires that are necessary for the test.

@rwy7 rwy7 force-pushed the advanced-layer-sink branch 3 times, most recently from feaf303 to ef5e5c2 Compare September 18, 2024 18:59
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