-
Notifications
You must be signed in to change notification settings - Fork 1k
Add Optimization Barriers #4763
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
base: main
Are you sure you want to change the base?
Changes from all commits
1f3328a
c0576de
ff848ba
fc35002
0c488dc
b1ff31c
7813f53
6be0d85
268394b
2663d31
6de8141
d191c41
5f26e66
d1eeae5
5b06807
2b9926e
24a9cbe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -460,7 +460,7 @@ struct Smt2Worker | |
| { | ||
| RTLIL::SigSpec sig_a, sig_b; | ||
| RTLIL::SigSpec sig_y = sigmap(cell->getPort(ID::Y)); | ||
| bool is_signed = type == 'U' ? false : cell->getParam(ID::A_SIGNED).as_bool(); | ||
| bool is_signed = type == 'U' ? false : cell->hasParam(ID::A_SIGNED) && cell->getParam(ID::A_SIGNED).as_bool(); | ||
| int width = GetSize(sig_y); | ||
|
|
||
| if (type == 's' || type == 'S' || type == 'd' || type == 'b') { | ||
|
|
@@ -678,7 +678,7 @@ struct Smt2Worker | |
| if (cell->type == ID($eqx)) return export_bvop(cell, "(= A B)", 'b'); | ||
|
|
||
| if (cell->type == ID($not)) return export_bvop(cell, "(bvnot A)"); | ||
| if (cell->type == ID($pos)) return export_bvop(cell, "A"); | ||
| if (cell->type.in(ID($pos), ID($buf), ID($barrier))) return export_bvop(cell, "A"); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this will crash when given a
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed, have updated export_bvop to only check for |
||
| if (cell->type == ID($neg)) return export_bvop(cell, "(bvneg A)"); | ||
|
|
||
| if (cell->type == ID($add)) return export_bvop(cell, "(bvadd A B)"); | ||
|
|
||
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.
It's strange this interprets
$poswithout looking at theA_SIGNEDparameter, but if there's a bug it's pre-existingThere 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.
Yeah I think its fine to leave as is for now