mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 21:27:00 +00:00
Ensure \A_SIGNED is never used with $shiftx
It has no effect on the output ($shiftx doesn't perform any sign extension whatsoever), so an attempt to use it should be caught early.
This commit is contained in:
parent
928fd40c2e
commit
916028906a
2 changed files with 9 additions and 1 deletions
|
@ -264,6 +264,10 @@ static void create_gold_module(RTLIL::Design *design, RTLIL::IdString cell_type,
|
|||
cell->setPort(ID::Y, wire);
|
||||
}
|
||||
|
||||
if (cell_type.in(ID($shiftx))) {
|
||||
cell->parameters[ID::A_SIGNED] = false;
|
||||
}
|
||||
|
||||
if (cell_type.in(ID($shl), ID($shr), ID($sshl), ID($sshr))) {
|
||||
cell->parameters[ID::B_SIGNED] = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue