Remove unnecessary slice (s) LogicNets from sign_extended and zero_extended. - #496
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## development #496 +/- ##
=============================================
- Coverage 93.8% 93.8% -0.0%
=============================================
Files 30 30
Lines 7143 7148 +5
=============================================
+ Hits 6694 6698 +4
- Misses 449 450 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…zero_extended`.
This removes 9% of pyrtlnet's slice (`s`) `LogicNets`, and 6% of pyrtlnet's
wire (`W`) `WireVectors`, without introducing new `LogicNets` or `WireVectors`.
This slightly speeds up simulations.
* Remove visualization special cases for bit-slices that select the same bit
multiple times. This case is now extremely rare now that `sign-extended`
`concats` multiple copies of the most significant bit.
* Move `output_to_verilog`'s logic for repeated bit seletions to concat ("c").
This generalizes the logic, so we now use the Verilog replication operator
for any repeated concat args, not just single-bit slices.
* Add a `FastSimulation` test for a non-consecutive bit-slice. We lost test
coverage for this case because `sign_extended` no longer generates slices
that copy the most significant bit.
* Add a sign_extended test that attempts to reduce bitwidth.
* Fix tests broken by this change and remove empty test methods.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This removes 9% of pyrtlnet's slice (
s)LogicNets, and 6% of pyrtlnet's wire (W)WireVectors, without introducing any newLogicNetsorWireVectors. This speeds up simulation times, especially withpyrtl.Simulation.Fix tests broken by this change.