-
Notifications
You must be signed in to change notification settings - Fork 874
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
Support for single bit coarse cells. Option for debug prints. #433
base: main
Are you sure you want to change the base?
Conversation
@rqou Can you review this PR please? Thanks. |
Apologies, I missed this. I will review this soon. |
It would be really helpful if this PR added a debug option and a new feature in separate commits. |
Are we there yet? @rqou :D |
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.
Looks mostly fine. One major suggestion, and needs rebasing.
EDIT: Also what @whitequark said
(cell->type == "$xor" && gt == GateType::Xor); | ||
} | ||
|
||
bool is_single_bit(Cell *cell, SigMap sigmap) |
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.
I think it would be a good idea to call this function from the IsRightType
function (rather than modifying all of the call sites). This helps prevent accidentally forgetting to call is_single_bit
in a critical location.
if (debug_verbose) | ||
{ | ||
log(" Chain head cell is: %s\n", head_cell->name.c_str()); | ||
log(" Chain head cell Y width: %i\n", GetSize(head_cell->getPort("\\Y"))); |
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.
Can any of these Y width debug prints ever print a value other than 1? If not, there's no value in having these particular print statements (the other verbose logging is still useful).
No description provided.