From 817ae04ee0c445efaf83e9847d4956f2dae0d857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcelina=20Ko=C5=9Bcielnicka?= Date: Tue, 30 Jun 2020 15:31:12 +0200 Subject: simcells: Fix reset polarity for $_DLATCH_???_ cells. --- techlibs/common/gen_fine_ffs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'techlibs/common/gen_fine_ffs.py') 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; -- cgit v1.2.3