aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/common/gen_fine_ffs.py
diff options
context:
space:
mode:
authorMarcelina Koƛcielnicka <mwk@0x04.net>2020-06-30 15:31:12 +0200
committerMarcelina Koƛcielnicka <mwk@0x04.net>2020-06-30 15:32:06 +0200
commit817ae04ee0c445efaf83e9847d4956f2dae0d857 (patch)
tree60d300cb70d62e69e6809fc8a4f0071e3e68f79a /techlibs/common/gen_fine_ffs.py
parentf7fdd99e45de5330b8f0cbb183c7b6e2ccc274b7 (diff)
downloadyosys-817ae04ee0c445efaf83e9847d4956f2dae0d857.tar.gz
yosys-817ae04ee0c445efaf83e9847d4956f2dae0d857.tar.bz2
yosys-817ae04ee0c445efaf83e9847d4956f2dae0d857.zip
simcells: Fix reset polarity for $_DLATCH_???_ cells.
Diffstat (limited to 'techlibs/common/gen_fine_ffs.py')
-rw-r--r--techlibs/common/gen_fine_ffs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/techlibs/common/gen_fine_ffs.py b/techlibs/common/gen_fine_ffs.py
index e92d58f40..5d331e767 100644
--- a/techlibs/common/gen_fine_ffs.py
+++ b/techlibs/common/gen_fine_ffs.py
@@ -300,7 +300,7 @@ module \$_DLATCH_{E:N|P}{R:N|P}{V:0|1}_ (E, R, D, Q);
input E, R, D;
output reg Q;
always @* begin
- if (R == {E:0|1})
+ if (R == {R:0|1})
Q <= {V:0|1};
else if (E == {E:0|1})
Q <= D;