mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Added $assert cell
This commit is contained in:
parent
9a1eb45c75
commit
1e67099b77
7 changed files with 120 additions and 1 deletions
|
@ -96,6 +96,7 @@ struct CellTypes
|
|||
cell_types.insert("$pmux");
|
||||
cell_types.insert("$safe_pmux");
|
||||
cell_types.insert("$lut");
|
||||
cell_types.insert("$assert");
|
||||
}
|
||||
|
||||
void setup_internals_mem()
|
||||
|
|
|
@ -595,6 +595,13 @@ namespace {
|
|||
return;
|
||||
}
|
||||
|
||||
if (cell->type == "$assert") {
|
||||
port("\\A", 1);
|
||||
port("\\EN", 1);
|
||||
check_expected();
|
||||
return;
|
||||
}
|
||||
|
||||
if (cell->type == "$_INV_") { check_gate("AY"); return; }
|
||||
if (cell->type == "$_AND_") { check_gate("ABY"); return; }
|
||||
if (cell->type == "$_OR_") { check_gate("ABY"); return; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue