mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
Added $shift and $shiftx cell types (needed for correct part select behavior)
This commit is contained in:
parent
48822e79a3
commit
397b00252d
12 changed files with 214 additions and 40 deletions
|
@ -111,6 +111,8 @@ struct BtorDumper
|
|||
cell_type_translation["$shl"] = "sll";
|
||||
cell_type_translation["$sshr"] = "sra";
|
||||
cell_type_translation["$sshl"] = "sll";
|
||||
cell_type_translation["$shift"] = "srl";
|
||||
cell_type_translation["$shiftx"] = "srl";
|
||||
cell_type_translation["$lt"] = "ult";
|
||||
cell_type_translation["$le"] = "ulte";
|
||||
cell_type_translation["$gt"] = "ugt";
|
||||
|
@ -540,7 +542,7 @@ struct BtorDumper
|
|||
}
|
||||
line_ref[cell->name]=line_num;
|
||||
}
|
||||
else if(cell->type == "$shr" || cell->type == "$shl" || cell->type == "$sshr" || cell->type == "$sshl")
|
||||
else if(cell->type == "$shr" || cell->type == "$shl" || cell->type == "$sshr" || cell->type == "$sshl" || cell->type == "$shift" || cell->type == "$shiftx")
|
||||
{
|
||||
log("writing binary cell - %s\n", cstr(cell->type));
|
||||
int output_width = cell->parameters.at(RTLIL::IdString("\\Y_WIDTH")).as_int();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue