clk2fflogic: Support all FF types.
authorMarcelina Kościelnicka <mwk@0x04.net>
Sun, 19 Jul 2020 01:25:41 +0000 (03:25 +0200)
committerMarcelina Kościelnicka <mwk@0x04.net>
Fri, 24 Jul 2020 01:19:48 +0000 (03:19 +0200)
20 files changed:
passes/sat/clk2fflogic.cc
tests/opt/opt_rmdff.ys
tests/techmap/dfflegalize_adff.ys
tests/techmap/dfflegalize_adff_init.ys
tests/techmap/dfflegalize_adlatch.ys
tests/techmap/dfflegalize_adlatch_init.ys
tests/techmap/dfflegalize_dff.ys
tests/techmap/dfflegalize_dff_init.ys
tests/techmap/dfflegalize_dffsr.ys
tests/techmap/dfflegalize_dffsr_init.ys
tests/techmap/dfflegalize_dlatch.ys
tests/techmap/dfflegalize_dlatch_const.ys
tests/techmap/dfflegalize_dlatch_init.ys
tests/techmap/dfflegalize_dlatchsr.ys
tests/techmap/dfflegalize_dlatchsr_init.ys
tests/techmap/dfflegalize_inv.ys
tests/techmap/dfflegalize_mince.ys
tests/techmap/dfflegalize_minsrst.ys
tests/techmap/dfflegalize_sr.ys
tests/techmap/dfflegalize_sr_init.ys

index cc24db6d4955afd84be901d37a2e4698eb84563c..f2a3dd0bfa23a780bf4663654b5a9ba9fee7d5cb 100644 (file)
@@ -19,6 +19,8 @@
 
 #include "kernel/yosys.h"
 #include "kernel/sigtools.h"
+#include "kernel/ffinit.h"
+#include "kernel/ff.h"
 
 USING_YOSYS_NAMESPACE
 PRIVATE_NAMESPACE_BEGIN
@@ -80,19 +82,7 @@ struct Clk2fflogicPass : public Pass {
                for (auto module : design->selected_modules())
                {
                        SigMap sigmap(module);
-                       dict<SigBit, State> initbits;
-                       pool<SigBit> del_initbits;
-
-                       for (auto wire : module->wires())
-                               if (wire->attributes.count(ID::init) > 0)
-                               {
-                                       Const initval = wire->attributes.at(ID::init);
-                                       SigSpec initsig = sigmap(wire);
-
-                                       for (int i = 0; i < GetSize(initval) && i < GetSize(initsig); i++)
-                                               if (initval[i] == State::S0 || initval[i] == State::S1)
-                                                       initbits[initsig[i]] = initval[i];
-                               }
+                       FfInitVals initvals(&sigmap, module);
 
                        for (auto cell : vector<Cell*>(module->selected_cells()))
                        {
@@ -177,221 +167,153 @@ struct Clk2fflogicPass : public Pass {
                                        cell->setPort(ID::WR_DATA, wr_data_port);
                                }
 
-                               if (cell->type.in(ID($dlatch), ID($adlatch), ID($dlatchsr)))
-                               {
-                                       bool enpol = cell->parameters[ID::EN_POLARITY].as_bool();
-
-                                       SigSpec sig_en = cell->getPort(ID::EN);
-                                       SigSpec sig_d = cell->getPort(ID::D);
-                                       SigSpec sig_q = cell->getPort(ID::Q);
-
-                                       log("Replacing %s.%s (%s): EN=%s, D=%s, Q=%s\n",
-                                                       log_id(module), log_id(cell), log_id(cell->type),
-                                                       log_signal(sig_en), log_signal(sig_d), log_signal(sig_q));
-
-                                       sig_en = wrap_async_control(module, sig_en, enpol);
-
-                                       Wire *past_q = module->addWire(NEW_ID, GetSize(sig_q));
-                                       module->addFf(NEW_ID, sig_q, past_q);
-
-                                       if (cell->type == ID($dlatch))
-                                       {
-                                               module->addMux(NEW_ID, past_q, sig_d, sig_en, sig_q);
-                                       }
-                                       else if (cell->type == ID($adlatch))
-                                       {
-                                               SigSpec t = module->Mux(NEW_ID, past_q, sig_d, sig_en);
-                                               SigSpec arst = wrap_async_control(module, cell->getPort(ID::ARST), cell->parameters[ID::ARST_POLARITY].as_bool());
-                                               Const rstval = cell->parameters[ID::ARST_VALUE];
-
-                                               module->addMux(NEW_ID, t, rstval, arst, sig_q);
-                                       }
-                                       else
-                                       {
-                                               SigSpec t = module->Mux(NEW_ID, past_q, sig_d, sig_en);
-
-                                               SigSpec s = wrap_async_control(module, cell->getPort(ID::SET), cell->parameters[ID::SET_POLARITY].as_bool());
-                                               t = module->Or(NEW_ID, t, s);
+                               SigSpec qval;
+                               if (RTLIL::builtin_ff_cell_types().count(cell->type)) {
+                                       FfData ff(&initvals, cell);
 
-                                               SigSpec c = wrap_async_control(module, cell->getPort(ID::CLR), cell->parameters[ID::CLR_POLARITY].as_bool());
-                                               c = module->Not(NEW_ID, c);
-                                               module->addAnd(NEW_ID, t, c, sig_q);
+                                       if (ff.has_d && !ff.has_clk && !ff.has_en) {
+                                               // Already a $ff or $_FF_ cell.
+                                               continue;
                                        }
 
-                                       Const initval;
-                                       bool assign_initval = false;
-                                       for (int i = 0; i < GetSize(sig_d); i++) {
-                                               SigBit qbit = sigmap(sig_q[i]);
-                                               if (initbits.count(qbit)) {
-                                                       initval.bits.push_back(initbits.at(qbit));
-                                                       del_initbits.insert(qbit);
-                                               } else
-                                                       initval.bits.push_back(State::Sx);
-                                               if (initval.bits.back() != State::Sx)
-                                                       assign_initval = true;
+                                       Wire *past_q = module->addWire(NEW_ID, ff.width);
+                                       if (!ff.is_fine) {
+                                               module->addFf(NEW_ID, ff.sig_q, past_q);
+                                       } else {
+                                               module->addFfGate(NEW_ID, ff.sig_q, past_q);
                                        }
+                                       if (!ff.val_init.is_fully_undef())
+                                               initvals.set_init(past_q, ff.val_init);
+
+                                       if (ff.has_clk) {
+                                               SigSpec sig_d = ff.sig_d;
+                                               if (ff.has_srst && ff.has_en && ff.ce_over_srst) {
+                                                       if (!ff.is_fine) {
+                                                               if (ff.pol_srst)
+                                                                       sig_d = module->Mux(NEW_ID, sig_d, ff.val_srst, ff.sig_srst);
+                                                               else
+                                                                       sig_d = module->Mux(NEW_ID, ff.val_srst, sig_d, ff.sig_srst);
+                                                       } else {
+                                                               if (ff.pol_srst)
+                                                                       sig_d = module->MuxGate(NEW_ID, sig_d, ff.val_srst[0], ff.sig_srst);
+                                                               else
+                                                                       sig_d = module->MuxGate(NEW_ID, ff.val_srst[0], sig_d, ff.sig_srst);
+                                                       }
+                                               }
 
-                                       if (assign_initval)
-                                               past_q->attributes[ID::init] = initval;
-
-                                       module->remove(cell);
-                                       continue;
-                               }
+                                               if (ff.has_en) {
+                                                       if (!ff.is_fine) {
+                                                               if (ff.pol_en)
+                                                                       sig_d = module->Mux(NEW_ID, ff.sig_q, sig_d, ff.sig_en);
+                                                               else
+                                                                       sig_d = module->Mux(NEW_ID, sig_d, ff.sig_q, ff.sig_en);
+                                                       } else {
+                                                               if (ff.pol_en)
+                                                                       sig_d = module->MuxGate(NEW_ID, ff.sig_q, sig_d, ff.sig_en);
+                                                               else
+                                                                       sig_d = module->MuxGate(NEW_ID, sig_d, ff.sig_q, ff.sig_en);
+                                                       }
+                                               }
 
-                               bool word_dff = cell->type.in(ID($dff), ID($adff), ID($dffsr));
-                               if (word_dff || cell->type.in(ID($_DFF_N_), ID($_DFF_P_),
-                                               ID($_DFF_NN0_), ID($_DFF_NN1_), ID($_DFF_NP0_), ID($_DFF_NP1_),
-                                               ID($_DFF_PP0_), ID($_DFF_PP1_), ID($_DFF_PN0_), ID($_DFF_PN1_),
-                                               ID($_DFFSR_NNN_), ID($_DFFSR_NNP_), ID($_DFFSR_NPN_), ID($_DFFSR_NPP_),
-                                               ID($_DFFSR_PNN_), ID($_DFFSR_PNP_), ID($_DFFSR_PPN_), ID($_DFFSR_PPP_)))
-                               {
-                                       bool clkpol;
-                                       SigSpec clk;
-                                       if (word_dff) {
-                                               clkpol = cell->parameters[ID::CLK_POLARITY].as_bool();
-                                               clk = cell->getPort(ID::CLK);
-                                       }
-                                       else {
-                                               if (cell->type.in(ID($_DFF_P_), ID($_DFF_N_),
-                                                                       ID($_DFF_NN0_), ID($_DFF_NN1_), ID($_DFF_NP0_), ID($_DFF_NP1_),
-                                                                       ID($_DFF_PP0_), ID($_DFF_PP1_), ID($_DFF_PN0_), ID($_DFF_PN1_)))
-                                                       clkpol = cell->type[6] == 'P';
-                                               else if (cell->type.in(ID($_DFFSR_NNN_), ID($_DFFSR_NNP_), ID($_DFFSR_NPN_), ID($_DFFSR_NPP_),
-                                                                       ID($_DFFSR_PNN_), ID($_DFFSR_PNP_), ID($_DFFSR_PPN_), ID($_DFFSR_PPP_)))
-                                                       clkpol = cell->type[8] == 'P';
-                                               else log_abort();
-                                               clk = cell->getPort(ID::C);
-                                       }
+                                               if (ff.has_srst && !(ff.has_en && ff.ce_over_srst)) {
+                                                       if (!ff.is_fine) {
+                                                               if (ff.pol_srst)
+                                                                       sig_d = module->Mux(NEW_ID, sig_d, ff.val_srst, ff.sig_srst);
+                                                               else
+                                                                       sig_d = module->Mux(NEW_ID, ff.val_srst, sig_d, ff.sig_srst);
+                                                       } else {
+                                                               if (ff.pol_srst)
+                                                                       sig_d = module->MuxGate(NEW_ID, sig_d, ff.val_srst[0], ff.sig_srst);
+                                                               else
+                                                                       sig_d = module->MuxGate(NEW_ID, ff.val_srst[0], sig_d, ff.sig_srst);
+                                                       }
+                                               }
 
-                                       Wire *past_clk = module->addWire(NEW_ID);
-                                       past_clk->attributes[ID::init] = clkpol ? State::S1 : State::S0;
+                                               Wire *past_clk = module->addWire(NEW_ID);
+                                               initvals.set_init(past_clk, ff.pol_clk ? State::S1 : State::S0);
 
-                                       if (word_dff)
-                                               module->addFf(NEW_ID, clk, past_clk);
-                                       else
-                                               module->addFfGate(NEW_ID, clk, past_clk);
+                                               if (!ff.is_fine)
+                                                       module->addFf(NEW_ID, ff.sig_clk, past_clk);
+                                               else
+                                                       module->addFfGate(NEW_ID, ff.sig_clk, past_clk);
 
-                                       SigSpec sig_d = cell->getPort(ID::D);
-                                       SigSpec sig_q = cell->getPort(ID::Q);
+                                               log("Replacing %s.%s (%s): CLK=%s, D=%s, Q=%s\n",
+                                                               log_id(module), log_id(cell), log_id(cell->type),
+                                                               log_signal(ff.sig_clk), log_signal(ff.sig_d), log_signal(ff.sig_q));
 
-                                       log("Replacing %s.%s (%s): CLK=%s, D=%s, Q=%s\n",
-                                                       log_id(module), log_id(cell), log_id(cell->type),
-                                                       log_signal(clk), log_signal(sig_d), log_signal(sig_q));
+                                               SigSpec clock_edge_pattern;
 
-                                       SigSpec clock_edge_pattern;
+                                               if (ff.pol_clk) {
+                                                       clock_edge_pattern.append(State::S0);
+                                                       clock_edge_pattern.append(State::S1);
+                                               } else {
+                                                       clock_edge_pattern.append(State::S1);
+                                                       clock_edge_pattern.append(State::S0);
+                                               }
 
-                                       if (clkpol) {
-                                               clock_edge_pattern.append(State::S0);
-                                               clock_edge_pattern.append(State::S1);
-                                       } else {
-                                               clock_edge_pattern.append(State::S1);
-                                               clock_edge_pattern.append(State::S0);
-                                       }
+                                               SigSpec clock_edge = module->Eqx(NEW_ID, {ff.sig_clk, SigSpec(past_clk)}, clock_edge_pattern);
 
-                                       SigSpec clock_edge = module->Eqx(NEW_ID, {clk, SigSpec(past_clk)}, clock_edge_pattern);
+                                               Wire *past_d = module->addWire(NEW_ID, ff.width);
+                                               if (!ff.is_fine)
+                                                       module->addFf(NEW_ID, sig_d, past_d);
+                                               else
+                                                       module->addFfGate(NEW_ID, sig_d, past_d);
 
-                                       Wire *past_d = module->addWire(NEW_ID, GetSize(sig_d));
-                                       Wire *past_q = module->addWire(NEW_ID, GetSize(sig_q));
-                                       if (word_dff) {
-                                               module->addFf(NEW_ID, sig_d, past_d);
-                                               module->addFf(NEW_ID, sig_q, past_q);
-                                       }
-                                       else {
-                                               module->addFfGate(NEW_ID, sig_d, past_d);
-                                               module->addFfGate(NEW_ID, sig_q, past_q);
-                                       }
+                                               if (!ff.val_init.is_fully_undef())
+                                                       initvals.set_init(past_d, ff.val_init);
 
-                                       if (cell->type == ID($adff))
-                                       {
-                                               SigSpec arst = wrap_async_control(module, cell->getPort(ID::ARST), cell->parameters[ID::ARST_POLARITY].as_bool());
-                                               SigSpec qval = module->Mux(NEW_ID, past_q, past_d, clock_edge);
-                                               Const rstval = cell->parameters[ID::ARST_VALUE];
+                                               if (!ff.is_fine)
+                                                       qval = module->Mux(NEW_ID, past_q, past_d, clock_edge);
+                                               else
+                                                       qval = module->MuxGate(NEW_ID, past_q, past_d, clock_edge);
+                                       } else if (ff.has_d) {
 
-                                               module->addMux(NEW_ID, qval, rstval, arst, sig_q);
-                                       }
-                                       else
-                                       if (cell->type.in(ID($_DFF_NN0_), ID($_DFF_NN1_), ID($_DFF_NP0_), ID($_DFF_NP1_),
-                                               ID($_DFF_PP0_), ID($_DFF_PP1_), ID($_DFF_PN0_), ID($_DFF_PN1_)))
-                                       {
-                                               SigSpec arst = wrap_async_control_gate(module, cell->getPort(ID::R), cell->type[7] == 'P');
-                                               SigSpec qval = module->MuxGate(NEW_ID, past_q, past_d, clock_edge);
-                                               SigBit rstval = (cell->type[8] == '1');
+                                               log("Replacing %s.%s (%s): EN=%s, D=%s, Q=%s\n",
+                                                               log_id(module), log_id(cell), log_id(cell->type),
+                                                               log_signal(ff.sig_en), log_signal(ff.sig_d), log_signal(ff.sig_q));
 
-                                               module->addMuxGate(NEW_ID, qval, rstval, arst, sig_q);
-                                       }
-                                       else
-                                       if (cell->type == ID($dffsr))
-                                       {
-                                               SigSpec qval = module->Mux(NEW_ID, past_q, past_d, clock_edge);
-                                               SigSpec setval = wrap_async_control(module, cell->getPort(ID::SET), cell->parameters[ID::SET_POLARITY].as_bool());
-                                               SigSpec clrval = wrap_async_control(module, cell->getPort(ID::CLR), cell->parameters[ID::CLR_POLARITY].as_bool());
+                                               SigSpec sig_en = wrap_async_control(module, ff.sig_en, ff.pol_en);
 
-                                               clrval = module->Not(NEW_ID, clrval);
-                                               qval = module->Or(NEW_ID, qval, setval);
-                                               module->addAnd(NEW_ID, qval, clrval, sig_q);
-                                       }
-                                       else
-                                       if (cell->type.in(ID($_DFFSR_NNN_), ID($_DFFSR_NNP_), ID($_DFFSR_NPN_), ID($_DFFSR_NPP_),
-                                               ID($_DFFSR_PNN_), ID($_DFFSR_PNP_), ID($_DFFSR_PPN_), ID($_DFFSR_PPP_)))
-                                       {
-                                               SigSpec qval = module->MuxGate(NEW_ID, past_q, past_d, clock_edge);
-                                               SigSpec setval = wrap_async_control_gate(module, cell->getPort(ID::S), cell->type[9] == 'P');
-                                               SigSpec clrval = wrap_async_control_gate(module, cell->getPort(ID::R), cell->type[10] == 'P');
+                                               if (!ff.is_fine)
+                                                       qval = module->Mux(NEW_ID, past_q, ff.sig_d, sig_en);
+                                               else
+                                                       qval = module->MuxGate(NEW_ID, past_q, ff.sig_d, sig_en);
+                                       } else {
 
-                                               clrval = module->NotGate(NEW_ID, clrval);
-                                               qval = module->OrGate(NEW_ID, qval, setval);
-                                               module->addAndGate(NEW_ID, qval, clrval, sig_q);
-                                       }
-                                       else if (cell->type == ID($dff))
-                                       {
-                                               module->addMux(NEW_ID, past_q, past_d, clock_edge, sig_q);
-                                       }
-                                       else
-                                       {
-                                               module->addMuxGate(NEW_ID, past_q, past_d, clock_edge, sig_q);
-                                       }
+                                               log("Replacing %s.%s (%s): SET=%s, CLR=%s, Q=%s\n",
+                                                               log_id(module), log_id(cell), log_id(cell->type),
+                                                               log_signal(ff.sig_set), log_signal(ff.sig_clr), log_signal(ff.sig_q));
 
-                                       Const initval;
-                                       bool assign_initval = false;
-                                       for (int i = 0; i < GetSize(sig_d); i++) {
-                                               SigBit qbit = sigmap(sig_q[i]);
-                                               if (initbits.count(qbit)) {
-                                                       initval.bits.push_back(initbits.at(qbit));
-                                                       del_initbits.insert(qbit);
-                                               } else
-                                                       initval.bits.push_back(State::Sx);
-                                               if (initval.bits.back() != State::Sx)
-                                                       assign_initval = true;
+                                               qval = past_q;
                                        }
 
-                                       if (assign_initval) {
-                                               past_d->attributes[ID::init] = initval;
-                                               past_q->attributes[ID::init] = initval;
+                                       if (ff.has_sr) {
+                                               SigSpec setval = wrap_async_control(module, ff.sig_set, ff.pol_set);
+                                               SigSpec clrval = wrap_async_control(module, ff.sig_clr, ff.pol_clr);
+                                               if (!ff.is_fine) {
+                                                       clrval = module->Not(NEW_ID, clrval);
+                                                       qval = module->Or(NEW_ID, qval, setval);
+                                                       module->addAnd(NEW_ID, qval, clrval, ff.sig_q);
+                                               } else {
+                                                       clrval = module->NotGate(NEW_ID, clrval);
+                                                       qval = module->OrGate(NEW_ID, qval, setval);
+                                                       module->addAndGate(NEW_ID, qval, clrval, ff.sig_q);
+                                               }
+                                       } else if (ff.has_arst) {
+                                               SigSpec arst = wrap_async_control(module, ff.sig_arst, ff.pol_arst);
+                                               if (!ff.is_fine)
+                                                       module->addMux(NEW_ID, qval, ff.val_arst, arst, ff.sig_q);
+                                               else
+                                                       module->addMuxGate(NEW_ID, qval, ff.val_arst[0], arst, ff.sig_q);
+                                       } else {
+                                               module->connect(ff.sig_q, qval);
                                        }
 
+                                       initvals.remove_init(ff.sig_q);
                                        module->remove(cell);
                                        continue;
                                }
                        }
-
-                       for (auto wire : module->wires())
-                               if (wire->attributes.count(ID::init) > 0)
-                               {
-                                       bool delete_initattr = true;
-                                       Const initval = wire->attributes.at(ID::init);
-                                       SigSpec initsig = sigmap(wire);
-
-                                       for (int i = 0; i < GetSize(initval) && i < GetSize(initsig); i++)
-                                               if (del_initbits.count(initsig[i]) > 0)
-                                                       initval[i] = State::Sx;
-                                               else if (initval[i] != State::Sx)
-                                                       delete_initattr = false;
-
-                                       if (delete_initattr)
-                                               wire->attributes.erase(ID::init);
-                                       else
-                                               wire->attributes.at(ID::init) = initval;
-                               }
                }
 
        }
index 7e11bc73f88ab56a15c9fa9c7e8e2fa43f118a67..6fb24fd66baa6216dd38e1aadb23d64c7f1b3e09 100644 (file)
@@ -23,7 +23,6 @@ connect -port remove6 EN 1'b1
 connect -port remove15 E 1'b1
 cd ..
 
-dff2dffe -unmap
 clk2fflogic
 opt_clean
 
index cf3e925a34835256a208b486834f6520c83872fb..135ae0ab7813e0881730c983aebf7a3f7551218b 100644 (file)
@@ -37,10 +37,10 @@ EOT
 
 design -save orig
 flatten
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_PP0_ x
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFE_PP0P_ x
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSR_PPP_ x
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSRE_PPPP_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DFF_PP0_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFE_PP0P_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFSR_PPP_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFSRE_PPPP_ x
 
 
 # Convert everything to ADFFs.
index a101617014ec3297da4274f93bc0fcc635ba75ed..7764e15a5fbe305c44eadbb379756611f68a6c2d 100644 (file)
@@ -37,18 +37,18 @@ EOT
 
 design -save orig
 flatten
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_PP0_ 0 -cell $_DLATCH_P_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_PP0_ 1 -cell $_DLATCH_P_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_PP1_ 0 -cell $_DLATCH_P_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_PP1_ 1 -cell $_DLATCH_P_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFE_PP0P_ 0 -cell $_DLATCH_P_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFE_PP0P_ 1 -cell $_DLATCH_P_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFE_PP1P_ 0 -cell $_DLATCH_P_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFE_PP1P_ 1 -cell $_DLATCH_P_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSR_PPP_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSR_PPP_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSRE_PPPP_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSRE_PPPP_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DFF_PP0_ 0 -cell $_DLATCH_P_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DFF_PP0_ 1 -cell $_DLATCH_P_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DFF_PP1_ 0 -cell $_DLATCH_P_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DFF_PP1_ 1 -cell $_DLATCH_P_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFE_PP0P_ 0 -cell $_DLATCH_P_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFE_PP0P_ 1 -cell $_DLATCH_P_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFE_PP1P_ 0 -cell $_DLATCH_P_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFE_PP1P_ 1 -cell $_DLATCH_P_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFSR_PPP_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFSR_PPP_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFSRE_PPPP_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFSRE_PPPP_ 1
 
 
 # Convert everything to ADFFs.
index ea5aaa53c5d6785b78f87f559bd3dab3243a44b1..b242cc809444a217fb070bb1e554e457efd87c80 100644 (file)
@@ -21,8 +21,8 @@ EOT
 
 design -save orig
 flatten
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP0_ x
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCHSR_PPP_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP0_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCHSR_PPP_ x
 
 
 # Convert everything to ADLATCHs.
index 0a31d7736441043b27399059fac85bbe4b5e192e..7b22ea0c0b08393af2ff76f147e5728674dd1aa4 100644 (file)
@@ -21,12 +21,12 @@ EOT
 
 design -save orig
 flatten
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP0_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP0_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP1_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP1_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCHSR_PPP_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCHSR_PPP_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP0_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP0_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP1_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP1_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCHSR_PPP_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCHSR_PPP_ 1
 
 
 # Convert everything to ADLATCHs.
index d71f4204edac1564ae7c1b17d646baf928551640..63ab478652cd66582a34979a9795097bc8fd2250 100644 (file)
@@ -66,15 +66,15 @@ EOT
 
 design -save orig
 flatten
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_P_ x
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFE_PP_ x
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_PP0_ x
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFE_PP0P_ x
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSR_PPP_ x
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSRE_PPPP_ x
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_SDFF_PP0_ x
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_SDFFE_PP0P_ x
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_SDFFCE_PP0P_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DFF_P_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFE_PP_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DFF_PP0_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFE_PP0P_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFSR_PPP_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFSRE_PPPP_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_SDFF_PP0_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_SDFFE_PP0P_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_SDFFCE_PP0P_ x
 
 # Convert everything to DFFs.
 
index 84848da1f1e3d95e3cdf48dc45ae2e6311a38b5d..741ac39d0c846fd9b0edc3ab16f523699f51b39a 100644 (file)
@@ -66,34 +66,34 @@ EOT
 
 design -save orig
 flatten
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_P_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_P_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFE_PP_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFE_PP_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_PP0_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_PP0_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_PP1_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_PP1_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFE_PP0P_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFE_PP0P_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFE_PP1P_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFE_PP1P_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSR_PPP_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSR_PPP_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSRE_PPPP_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSRE_PPPP_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_SDFF_PP0_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_SDFF_PP0_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_SDFF_PP1_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_SDFF_PP1_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_SDFFE_PP0P_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_SDFFE_PP0P_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_SDFFE_PP1P_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_SDFFE_PP1P_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_SDFFCE_PP0P_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_SDFFCE_PP0P_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_SDFFCE_PP1P_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_SDFFCE_PP1P_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DFF_P_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DFF_P_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFE_PP_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFE_PP_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DFF_PP0_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DFF_PP0_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DFF_PP1_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DFF_PP1_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFE_PP0P_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFE_PP0P_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFE_PP1P_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFE_PP1P_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFSR_PPP_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFSR_PPP_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFSRE_PPPP_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFSRE_PPPP_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_SDFF_PP0_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_SDFF_PP0_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_SDFF_PP1_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_SDFF_PP1_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_SDFFE_PP0P_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_SDFFE_PP0P_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_SDFFE_PP1P_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_SDFFE_PP1P_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_SDFFCE_PP0P_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_SDFFCE_PP0P_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_SDFFCE_PP1P_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_SDFFCE_PP1P_ 1
 
 # Convert everything to DFFs.
 
index 0cfb4950eb330204a8b67f2cf57ffa579789a81f..49a7237a214e48551644bd75b0c1a059dc73b1ce 100644 (file)
@@ -24,10 +24,10 @@ EOT
 
 design -save orig
 flatten
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_PP0_ x -cell $_SR_PP_ x
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFE_PP0P_ x -cell $_SR_PP_ x
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSR_PPP_ x
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSRE_PPPP_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DFF_PP0_ x -cell $_SR_PP_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFE_PP0P_ x -cell $_SR_PP_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFSR_PPP_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFSRE_PPPP_ x
 
 
 # Convert everything to ADFFs.
index a98bd0cfe5943b5a9e9aa76c40fcbdf7a52539a0..ce5a32f76aa7fbb6692ecf9bfb20bf33636aa836 100644 (file)
@@ -41,18 +41,18 @@ EOT
 
 design -save orig
 flatten
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_PP0_ 0 -cell $_SR_PP_ 0
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_PP0_ 1 -cell $_SR_PP_ 0
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_PP1_ 0 -cell $_SR_PP_ 0
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_PP1_ 1 -cell $_SR_PP_ 0
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFE_PP0P_ 0 -cell $_SR_PP_ 0
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFE_PP0P_ 1 -cell $_SR_PP_ 0
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFE_PP1P_ 0 -cell $_SR_PP_ 0
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFE_PP1P_ 1 -cell $_SR_PP_ 0
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSR_PPP_ 0
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSR_PPP_ 1
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSRE_PPPP_ 0
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSRE_PPPP_ 1
+#equiv_opt -assert -multiclock dfflegalize -cell $_DFF_PP0_ 0 -cell $_SR_PP_ 0
+#equiv_opt -assert -multiclock dfflegalize -cell $_DFF_PP0_ 1 -cell $_SR_PP_ 0
+#equiv_opt -assert -multiclock dfflegalize -cell $_DFF_PP1_ 0 -cell $_SR_PP_ 0
+#equiv_opt -assert -multiclock dfflegalize -cell $_DFF_PP1_ 1 -cell $_SR_PP_ 0
+#equiv_opt -assert -multiclock dfflegalize -cell $_DFFE_PP0P_ 0 -cell $_SR_PP_ 0
+#equiv_opt -assert -multiclock dfflegalize -cell $_DFFE_PP0P_ 1 -cell $_SR_PP_ 0
+#equiv_opt -assert -multiclock dfflegalize -cell $_DFFE_PP1P_ 0 -cell $_SR_PP_ 0
+#equiv_opt -assert -multiclock dfflegalize -cell $_DFFE_PP1P_ 1 -cell $_SR_PP_ 0
+#equiv_opt -assert -multiclock dfflegalize -cell $_DFFSR_PPP_ 0
+#equiv_opt -assert -multiclock dfflegalize -cell $_DFFSR_PPP_ 1
+#equiv_opt -assert -multiclock dfflegalize -cell $_DFFSRE_PPPP_ 0
+#equiv_opt -assert -multiclock dfflegalize -cell $_DFFSRE_PPPP_ 1
 
 
 # Convert everything to ADFFs.
index 8a5fad0dadbc4573f0fc64f52e89e943cd3f15c4..b68ea741ea08de32e314a6756beaaf5ce941385a 100644 (file)
@@ -8,9 +8,9 @@ endmodule
 EOT
 
 design -save orig
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_P_ x
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP0_ x
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCHSR_PPP_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_P_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP0_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCHSR_PPP_ x
 
 # Convert everything to DFFs.
 
index 0b5167a0648f274b5e14dfe987dc81cd5b69cd06..f30a534fde353966c718f1038e6f32c1c1b4c59b 100644 (file)
@@ -14,10 +14,10 @@ endmodule
 EOT
 
 design -save orig
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_PP0_ 01
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_PP?_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSRE_PPPP_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSRE_PPPP_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DFF_PP0_ 01
+equiv_opt -assert -multiclock dfflegalize -cell $_DFF_PP?_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFSRE_PPPP_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFSRE_PPPP_ 1
 
 # Convert everything to ADFFs.
 
index 3ec9d9b06e28f1eedaad29551ceefb4c48b43f46..ccc9e41d750f202a091790852237ddf20c2cd8a0 100644 (file)
@@ -8,14 +8,14 @@ endmodule
 EOT
 
 design -save orig
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_P_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_P_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP0_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP0_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP1_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP1_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCHSR_PPP_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCHSR_PPP_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_P_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_P_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP0_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP0_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP1_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP1_ 1
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCHSR_PPP_ 0
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCHSR_PPP_ 1
 
 # Convert everything to DFFs.
 
index 3476c03721363f13eb61db8870456a1716609f04..53d9107235b4981f82a4ca822816d2ddb7bea54a 100644 (file)
@@ -10,8 +10,8 @@ endmodule
 EOT
 
 design -save orig
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP0_ x -cell $_SR_PP_ x
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCHSR_PPP_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP0_ x -cell $_SR_PP_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCHSR_PPP_ x
 
 
 # Convert everything to ADLATCHs.
index e922242d9d2345cca1cea0f04f0a190bafd69798..2d33634d17285109d35ed67934e69cc6ecb81c82 100644 (file)
@@ -23,12 +23,12 @@ EOT
 
 design -save orig
 flatten
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP0_ 0
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP0_ 1
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP1_ 0
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP1_ 1
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCHSR_PPP_ 0
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCHSR_PPP_ 1
+#equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP0_ 0
+#equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP0_ 1
+#equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP1_ 0
+#equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP1_ 1
+#equiv_opt -assert -multiclock dfflegalize -cell $_DLATCHSR_PPP_ 0
+#equiv_opt -assert -multiclock dfflegalize -cell $_DLATCHSR_PPP_ 1
 
 
 # Convert everything to ADLATCHs.
index 573393e7daa398b3dfdc4ee9931681af9b72ed67..cb42e01a8003e05bbff115ce9132bf4d8bd9f9e2 100644 (file)
@@ -94,7 +94,7 @@ EOT
 
 design -save orig
 
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_P_ x -cell $_DFFE_PP_ x -cell $_DFF_PP?_ x -cell $_DFFE_PP?P_ x -cell $_DFFSR_PPP_ x -cell $_DFFSRE_PPPP_ x -cell $_SDFF_PP?_ x -cell $_SDFFE_PP?P_ x -cell $_SDFFCE_PP?P_ x -cell $_DLATCH_P_ x -cell $_DLATCH_PP?_ x -cell $_DLATCHSR_PPP_ x -cell $_SR_PP_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DFF_P_ x -cell $_DFFE_PP_ x -cell $_DFF_PP?_ x -cell $_DFFE_PP?P_ x -cell $_DFFSR_PPP_ x -cell $_DFFSRE_PPPP_ x -cell $_SDFF_PP?_ x -cell $_SDFFE_PP?P_ x -cell $_SDFFCE_PP?P_ x -cell $_DLATCH_P_ x -cell $_DLATCH_PP?_ x -cell $_DLATCHSR_PPP_ x -cell $_SR_PP_ x
 design -load postopt
 
 select -assert-count 46 t:$_NOT_
@@ -123,7 +123,7 @@ select -assert-none t:$_DFF_P_ t:$_DFFE_PP_ t:$_DFF_PP?_ t:$_DFFE_PP?P_ t:$_DFFS
 
 design -load orig
 
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFF_N_ x -cell $_DFFE_NN_ x -cell $_DFF_NN?_ x -cell $_DFFE_NN?N_ x -cell $_DFFSR_NNN_ x -cell $_DFFSRE_NNNN_ x -cell $_SDFF_NN?_ x -cell $_SDFFE_NN?N_ x -cell $_SDFFCE_NN?N_ x -cell $_DLATCH_N_ x -cell $_DLATCH_NN?_ x -cell $_DLATCHSR_NNN_ x -cell $_SR_NN_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DFF_N_ x -cell $_DFFE_NN_ x -cell $_DFF_NN?_ x -cell $_DFFE_NN?N_ x -cell $_DFFSR_NNN_ x -cell $_DFFSRE_NNNN_ x -cell $_SDFF_NN?_ x -cell $_SDFFE_NN?N_ x -cell $_SDFFCE_NN?N_ x -cell $_DLATCH_N_ x -cell $_DLATCH_NN?_ x -cell $_DLATCHSR_NNN_ x -cell $_SR_NN_ x
 design -load postopt
 
 select -assert-count 122 t:$_NOT_
@@ -166,7 +166,7 @@ endmodule
 
 EOT
 
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSRE_NNNN_ x -cell $_DFFSRE_PPPP_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFSRE_NNNN_ x -cell $_DFFSRE_PPPP_ x
 design -load postopt
 
 select -assert-count 6 t:$_NOT_
index 75069541b893650ca67f1c47cd7eceb0df77f2e8..31c8d04fca5f338139cdd11daaef729f57280eeb 100644 (file)
@@ -22,7 +22,7 @@ endmodule
 EOT
 
 design -save orig
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFE_PP_ x -cell $_DFFE_PP?P_ x -cell $_DFFSRE_PPPP_ x -cell $_SDFFE_PP?P_ x -cell $_SDFFCE_PP?P_ x -mince 3
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFE_PP_ x -cell $_DFFE_PP?P_ x -cell $_DFFSRE_PPPP_ x -cell $_SDFFE_PP?P_ x -cell $_SDFFCE_PP?P_ x -mince 3
 design -load postopt
 
 select -assert-count 4 t:$_DFFE_PP_
index b9bc3f1b9ca177c81d27157db00f12f42796183c..0fc40dc089314d718986adadb403fcedf8be089d 100644 (file)
@@ -18,7 +18,7 @@ endmodule
 EOT
 
 design -save orig
-equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_SDFF_PP?_ x -cell $_SDFFE_PP?P_ x -cell $_SDFFCE_PP?P_ x -minsrst 3
+equiv_opt -assert -multiclock dfflegalize -cell $_SDFF_PP?_ x -cell $_SDFFE_PP?P_ x -cell $_SDFFCE_PP?P_ x -minsrst 3
 design -load postopt
 
 select -assert-count 5 t:$_SDFF_PP0_
index b8c91f7538dc7b0f833b78e781625b3fdcac3ac4..27e83be91960cee3b485d0d42b2851afe019266d 100644 (file)
@@ -9,12 +9,12 @@ endmodule
 EOT
 
 design -save orig
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_SR_PP_ x
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP0_ x
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP1_ x
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCHSR_PPP_ x
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSR_PPP_ x
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSRE_PPPP_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_SR_PP_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP0_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP1_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DLATCHSR_PPP_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFSR_PPP_ x
+equiv_opt -assert -multiclock dfflegalize -cell $_DFFSRE_PPPP_ x
 
 
 # Convert everything to SRs.
index 5c52a0b28e2596bffee271c013ec2aa493af4198..52b797b9ecdb66fc42c84861101feb0fff69012a 100644 (file)
@@ -21,18 +21,18 @@ EOT
 
 design -save orig
 flatten
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_SR_PP_ 0
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_SR_PP_ 1
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP0_ 0
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP0_ 1
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP1_ 0
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCH_PP1_ 1
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCHSR_PPP_ 0
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DLATCHSR_PPP_ 1
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSR_PPP_ 0
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSR_PPP_ 1
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSRE_PPPP_ 0
-#equiv_opt -assert -multiclock -map +/simcells.v dfflegalize -cell $_DFFSRE_PPPP_ 1
+#equiv_opt -assert -multiclock dfflegalize -cell $_SR_PP_ 0
+#equiv_opt -assert -multiclock dfflegalize -cell $_SR_PP_ 1
+#equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP0_ 0
+#equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP0_ 1
+#equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP1_ 0
+#equiv_opt -assert -multiclock dfflegalize -cell $_DLATCH_PP1_ 1
+#equiv_opt -assert -multiclock dfflegalize -cell $_DLATCHSR_PPP_ 0
+#equiv_opt -assert -multiclock dfflegalize -cell $_DLATCHSR_PPP_ 1
+#equiv_opt -assert -multiclock dfflegalize -cell $_DFFSR_PPP_ 0
+#equiv_opt -assert -multiclock dfflegalize -cell $_DFFSR_PPP_ 1
+#equiv_opt -assert -multiclock dfflegalize -cell $_DFFSRE_PPPP_ 0
+#equiv_opt -assert -multiclock dfflegalize -cell $_DFFSRE_PPPP_ 1
 
 
 # Convert everything to SRs.