-
Notifications
You must be signed in to change notification settings - Fork 9
Fix gsim resolve -v flag failed to propagate arguments to gsim #55
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a bug where the -v flag failed to propagate arguments to gsim and includes performance improvements to FIRRTL file parsing.
- Fixed argument parsing logic in the CMake build system to properly handle gsim flags separated by semicolons
- Optimized FIRRTL file parsing by replacing regex-based parsing with string operations for better performance
- Added debug logging to track port parsing progress
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| template/lib/cmake/gsim.cmake | Fixed flag propagation by converting semicolon-separated flags to space-separated arguments |
| src/parser/firrtl.cpp | Replaced regex parsing with string operations and added debug logging for performance optimization |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
6b536ef to
8b750bf
Compare
Description
This PR introduces performance improvements to the FIRRTL file parsing logic in firrtl.cpp and resolves a bug where the -v flag failed to propagate arguments to gsim.
Type of change
How Has This Been Tested?
run picker command like this
picker export SimTop.fir --sim gsim -V "--supernode-max-size=2;--cpp-max-size-KB=8192"Checklist: