3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 17:15:33 +00:00

Added $_DFFE_??_ cell types

This commit is contained in:
Clifford Wolf 2014-12-08 10:43:38 +01:00
parent 2903143ae5
commit fad9cec47b
3 changed files with 41 additions and 0 deletions

View file

@ -156,6 +156,10 @@ struct CellTypes
for (auto c1 : list_np)
setup_type(stringf("$_DFF_%c_", c1), {"\\C", "\\D"}, {"\\Q"});
for (auto c1 : list_np)
for (auto c2 : list_np)
setup_type(stringf("$_DFFE_%c%c_", c1, c2), {"\\C", "\\D", "\\E"}, {"\\Q"});
for (auto c1 : list_np)
for (auto c2 : list_np)
for (auto c3 : list_01)

View file

@ -892,6 +892,11 @@ namespace {
if (cell->type == "$_DFF_N_") { check_gate("DQC"); return; }
if (cell->type == "$_DFF_P_") { check_gate("DQC"); return; }
if (cell->type == "$_DFFE_NN_") { check_gate("DQCE"); return; }
if (cell->type == "$_DFFE_NP_") { check_gate("DQCE"); return; }
if (cell->type == "$_DFFE_PN_") { check_gate("DQCE"); return; }
if (cell->type == "$_DFFE_PP_") { check_gate("DQCE"); return; }
if (cell->type == "$_DFF_NN0_") { check_gate("DQCR"); return; }
if (cell->type == "$_DFF_NN1_") { check_gate("DQCR"); return; }
if (cell->type == "$_DFF_NP0_") { check_gate("DQCR"); return; }