Skip to content

Conversation

MaxWipfli
Copy link
Contributor

This always_comb block previously consumed 9% of total simulation runtime for Cheshire on Verilator (pulp-platform/cheshire#230). With this change, this is reduced to a vanishing amount (reported as 0.00%).

@MaxWipfli MaxWipfli changed the title id_queue: Simply existence lookup for Verilator speed-up id_queue: Simplify existence lookup for Verilator speed-up Jun 20, 2025
@MaxWipfli MaxWipfli force-pushed the id_queue_verilator branch from 6d41088 to 57e1306 Compare June 20, 2025 14:03
@niwis niwis requested review from niwis and paulsc96 June 20, 2025 14:03
Copy link
Collaborator

@niwis niwis left a comment

Choose a reason for hiding this comment

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

Thank you @MaxWipfli, this is a great simplification! Just one request: could you consistently use the bit operators on the RHS? (~ instead of !, & instead of &&).

@MaxWipfli
Copy link
Contributor Author

Thanks for the review, I fixed the operators as requested.

@niwis niwis merged commit d3090d1 into pulp-platform:master Jun 20, 2025
5 checks passed
Scheremo pushed a commit to mosaic-soc/common_cells that referenced this pull request Sep 12, 2025
* id_queue: Simplify existence lookup for Verilator speed-up

* id_queue: Use bit-wise instead of logical operators

* id_queue: Fix formatting
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.

2 participants