aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap/dff2dffs.cc
diff options
context:
space:
mode:
authorclairexen <claire@symbioticeda.com>2020-06-23 20:25:52 +0200
committerGitHub <noreply@github.com>2020-06-23 20:25:52 +0200
commit2a59cd9ed0c6d4ddf19fc735682fa236018bcf2c (patch)
treefc1d103152be86dbb4fc83b5566b17e9b1490445 /passes/techmap/dff2dffs.cc
parent8c4cb1885b2cb6b7b26d7b9b7113e174c0eefffd (diff)
parent88e7f90663f440b24d97a65804ee23b1d82dbed7 (diff)
downloadyosys-2a59cd9ed0c6d4ddf19fc735682fa236018bcf2c.tar.gz
yosys-2a59cd9ed0c6d4ddf19fc735682fa236018bcf2c.tar.bz2
yosys-2a59cd9ed0c6d4ddf19fc735682fa236018bcf2c.zip
Merge pull request #1818 from YosysHQ/mwk/new-ff-types
Add new FF types to library.
Diffstat (limited to 'passes/techmap/dff2dffs.cc')
-rw-r--r--passes/techmap/dff2dffs.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/passes/techmap/dff2dffs.cc b/passes/techmap/dff2dffs.cc
index 1cb923445..6c2cca4bc 100644
--- a/passes/techmap/dff2dffs.cc
+++ b/passes/techmap/dff2dffs.cc
@@ -31,7 +31,7 @@ struct Dff2dffsPass : public Pass {
log("\n");
log(" dff2dffs [options] [selection]\n");
log("\n");
- log("Merge synchronous set/reset $_MUX_ cells to create $__DFFS_[NP][NP][01], to be run before\n");
+ log("Merge synchronous set/reset $_MUX_ cells to create $_SDFF_[NP][NP][01]_, to be run before\n");
log("dff2dffe for SR over CE priority.\n");
log("\n");
log(" -match-init\n");
@@ -138,21 +138,21 @@ struct Dff2dffsPass : public Pass {
if (sr_val == State::S1) {
if (cell->type == ID($_DFF_N_)) {
- if (invert_sr) cell->type = ID($__DFFS_NN1_);
- else cell->type = ID($__DFFS_NP1_);
+ if (invert_sr) cell->type = ID($_SDFF_NN1_);
+ else cell->type = ID($_SDFF_NP1_);
} else {
log_assert(cell->type == ID($_DFF_P_));
- if (invert_sr) cell->type = ID($__DFFS_PN1_);
- else cell->type = ID($__DFFS_PP1_);
+ if (invert_sr) cell->type = ID($_SDFF_PN1_);
+ else cell->type = ID($_SDFF_PP1_);
}
} else {
if (cell->type == ID($_DFF_N_)) {
- if (invert_sr) cell->type = ID($__DFFS_NN0_);
- else cell->type = ID($__DFFS_NP0_);
+ if (invert_sr) cell->type = ID($_SDFF_NN0_);
+ else cell->type = ID($_SDFF_NP0_);
} else {
log_assert(cell->type == ID($_DFF_P_));
- if (invert_sr) cell->type = ID($__DFFS_PN0_);
- else cell->type = ID($__DFFS_PP0_);
+ if (invert_sr) cell->type = ID($_SDFF_PN0_);
+ else cell->type = ID($_SDFF_PP0_);
}
}
cell->setPort(ID::R, sr_sig);