mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Added $_BUF_ cell type
This commit is contained in:
parent
600c6cb013
commit
c3e779a65f
5 changed files with 19 additions and 5 deletions
|
@ -130,6 +130,7 @@ struct CellTypes
|
|||
|
||||
void setup_stdcells()
|
||||
{
|
||||
setup_type("$_BUF_", {"\\A"}, {"\\Y"}, true);
|
||||
setup_type("$_NOT_", {"\\A"}, {"\\Y"}, true);
|
||||
setup_type("$_AND_", {"\\A", "\\B"}, {"\\Y"}, true);
|
||||
setup_type("$_NAND_", {"\\A", "\\B"}, {"\\Y"}, true);
|
||||
|
@ -261,6 +262,8 @@ struct CellTypes
|
|||
HANDLE_CELL_TYPE(neg)
|
||||
#undef HANDLE_CELL_TYPE
|
||||
|
||||
if (type == "$_BUF_")
|
||||
return arg1;
|
||||
if (type == "$_NOT_")
|
||||
return eval_not(arg1);
|
||||
if (type == "$_AND_")
|
||||
|
|
|
@ -870,6 +870,7 @@ namespace {
|
|||
return;
|
||||
}
|
||||
|
||||
if (cell->type == "$_BUF_") { check_gate("AY"); return; }
|
||||
if (cell->type == "$_NOT_") { check_gate("AY"); return; }
|
||||
if (cell->type == "$_AND_") { check_gate("ABY"); return; }
|
||||
if (cell->type == "$_NAND_") { check_gate("ABY"); return; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue