mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Added $anyconst and $aconst
This commit is contained in:
parent
a7b0769623
commit
4056312987
7 changed files with 83 additions and 2 deletions
|
@ -118,6 +118,8 @@ struct CellTypes
|
|||
setup_type("$assume", {A, EN}, pool<RTLIL::IdString>(), true);
|
||||
setup_type("$predict", {A, EN}, pool<RTLIL::IdString>(), true);
|
||||
setup_type("$initstate", pool<RTLIL::IdString>(), {Y}, true);
|
||||
setup_type("$anyconst", pool<RTLIL::IdString>(), {Y}, true);
|
||||
setup_type("$aconst", pool<RTLIL::IdString>(), {Y}, true);
|
||||
setup_type("$equiv", {A, B}, {Y}, true);
|
||||
}
|
||||
|
||||
|
|
|
@ -1030,6 +1030,12 @@ namespace {
|
|||
return;
|
||||
}
|
||||
|
||||
if (cell->type.in("$aconst", "$anyconst")) {
|
||||
port("\\Y", param("\\WIDTH"));
|
||||
check_expected();
|
||||
return;
|
||||
}
|
||||
|
||||
if (cell->type == "$equiv") {
|
||||
port("\\A", 1);
|
||||
port("\\B", 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue