aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/common/gen_fine_ffs.py
diff options
context:
space:
mode:
Diffstat (limited to 'techlibs/common/gen_fine_ffs.py')
-rw-r--r--techlibs/common/gen_fine_ffs.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/techlibs/common/gen_fine_ffs.py b/techlibs/common/gen_fine_ffs.py
index 3a9aa6c59..0abe48f61 100644
--- a/techlibs/common/gen_fine_ffs.py
+++ b/techlibs/common/gen_fine_ffs.py
@@ -8,15 +8,14 @@ TEMPLATES = [
//-
//- Truth table: S R | Q
//- -----+---
-//- {S:0|1} {R:0|1} | x
-//- {S:0|1} {R:1|0} | 1
-//- {S:1|0} {R:0|1} | 0
-//- {S:1|0} {R:1|0} | y
+//- - {R:0|1} | 0
+//- {S:0|1} - | 1
+//- - - | q
//-
module \$_SR_{S:N|P}{R:N|P}_ (S, R, Q);
input S, R;
output reg Q;
-always @({S:neg|pos}edge S, {R:neg|pos}edge R) begin
+always @* begin
if (R == {R:0|1})
Q <= 0;
else if (S == {S:0|1})