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

Support for single bit coarse cells. Option for debug prints. #433

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

Conversation

Kmanfi
Copy link

@Kmanfi Kmanfi commented Oct 9, 2017

No description provided.

@cliffordwolf
Copy link
Collaborator

@rqou Can you review this PR please? Thanks.

@ArcaneNibble
Copy link
Contributor

Apologies, I missed this. I will review this soon.

@whitequark
Copy link
Member

It would be really helpful if this PR added a debug option and a new feature in separate commits.

@nakengelhardt nakengelhardt added the discuss to be discussed at next dev jour fixe (see #devel-discuss at https://yosyshq.slack.com/) label Feb 6, 2020
@cliffordwolf
Copy link
Collaborator

Apologies, I missed this. I will review this soon.

Are we there yet? @rqou :D

@cliffordwolf cliffordwolf removed the discuss to be discussed at next dev jour fixe (see #devel-discuss at https://yosyshq.slack.com/) label Mar 13, 2020
Copy link
Contributor

@ArcaneNibble ArcaneNibble left a 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)
Copy link
Contributor

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")));
Copy link
Contributor

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).

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.

5 participants