mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-06 09:51:10 +00:00
WIP add placeholder $connect cell
This commit is contained in:
parent
1dbf2df983
commit
9f62dd6e0e
3 changed files with 21 additions and 1 deletions
|
@ -103,6 +103,7 @@ struct CellTypes
|
|||
setup_type(ID($specify2), {ID::EN, ID::SRC, ID::DST}, pool<RTLIL::IdString>(), true);
|
||||
setup_type(ID($specify3), {ID::EN, ID::SRC, ID::DST, ID::DAT}, pool<RTLIL::IdString>(), true);
|
||||
setup_type(ID($specrule), {ID::EN_SRC, ID::EN_DST, ID::SRC, ID::DST}, pool<RTLIL::IdString>(), true);
|
||||
setup_type(ID($connect), {ID::A, ID::Y}, {ID::A, ID::Y});
|
||||
setup_type(ID($print), {ID::EN, ID::ARGS, ID::TRG}, pool<RTLIL::IdString>());
|
||||
setup_type(ID($check), {ID::A, ID::EN, ID::ARGS, ID::TRG}, pool<RTLIL::IdString>());
|
||||
setup_type(ID($set_tag), {ID::A, ID::SET, ID::CLR}, {ID::Y});
|
||||
|
|
|
@ -1475,6 +1475,13 @@ namespace {
|
|||
return;
|
||||
}
|
||||
|
||||
if (cell->type == ID($connect)) {
|
||||
port(ID::A, param(ID::WIDTH));
|
||||
port(ID::Y, param(ID::WIDTH));
|
||||
check_expected();
|
||||
return;
|
||||
}
|
||||
|
||||
if (cell->type.in(ID($not), ID($pos), ID($neg))) {
|
||||
param_bool(ID::A_SIGNED);
|
||||
port(ID::A, param(ID::A_WIDTH));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue