diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-04-13 15:25:37 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2020-04-13 15:25:37 -0700 |
commit | b75c5bf74374156c802461acf0a868f7e5fad3fd (patch) | |
tree | f5487b2572da55374d6937012de68148cfae2866 /passes/techmap | |
parent | c6afce763807862305c4ade28ef5bb72a4b078f6 (diff) | |
download | yosys-b75c5bf74374156c802461acf0a868f7e5fad3fd.tar.gz yosys-b75c5bf74374156c802461acf0a868f7e5fad3fd.tar.bz2 yosys-b75c5bf74374156c802461acf0a868f7e5fad3fd.zip |
zinit: resolve one more comment by @mwkmwkmwk
Diffstat (limited to 'passes/techmap')
-rw-r--r-- | passes/techmap/zinit.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/passes/techmap/zinit.cc b/passes/techmap/zinit.cc index b7beb4e9d..9eb47ff6d 100644 --- a/passes/techmap/zinit.cc +++ b/passes/techmap/zinit.cc @@ -153,9 +153,11 @@ struct ZinitPass : public Pass { else if (cell->type.in(ID($_DFF_NN0_), ID($_DFF_NN1_), ID($_DFF_NP0_), ID($_DFF_NP1_), ID($_DFF_PN0_), ID($_DFF_PN1_), ID($_DFF_PP0_), ID($_DFF_PP1_))) { - std::string t = cell->type.str(); - t[8] = (t[8] == '0' ? '1' : '0'); - cell->type = t; + if (initval == State::S1) { + std::string t = cell->type.str(); + t[8] = (t[8] == '0' ? '1' : '0'); + cell->type = t; + } } } } |