mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-15 02:21:17 +00:00
Add $input_port and $connect cell types
This commit is contained in:
parent
c4f435569f
commit
1251e92e3a
4 changed files with 63 additions and 0 deletions
|
|
@ -2451,6 +2451,19 @@ namespace {
|
|||
check_expected();
|
||||
return;
|
||||
}
|
||||
if (cell->type.in(ID($input_port))) {
|
||||
param(ID::WIDTH);
|
||||
port(ID::Y, param(ID::WIDTH));
|
||||
check_expected();
|
||||
return;
|
||||
}
|
||||
if (cell->type.in(ID($connect))) {
|
||||
param(ID::WIDTH);
|
||||
port(ID::A, param(ID::WIDTH));
|
||||
port(ID::B, param(ID::WIDTH));
|
||||
check_expected();
|
||||
return;
|
||||
}
|
||||
/*
|
||||
* Checklist for adding internal cell types
|
||||
* ========================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue