aboutsummaryrefslogtreecommitdiffstats
path: root/passes
diff options
context:
space:
mode:
authorMarcelina Koƛcielnicka <mwk@0x04.net>2022-04-14 15:08:20 +0200
committerMarcelina Koƛcielnicka <mwk@0x04.net>2022-04-15 22:00:32 +0200
commit48eea3efcf4d88d16b170a1915bda0fe691924a1 (patch)
tree1aa25e354ea34cec29407ab700183c9ae7fa99d0 /passes
parentc1646a00ac5a7b6ab53af64d5f2f70c5848cdf12 (diff)
downloadyosys-48eea3efcf4d88d16b170a1915bda0fe691924a1.tar.gz
yosys-48eea3efcf4d88d16b170a1915bda0fe691924a1.tar.bz2
yosys-48eea3efcf4d88d16b170a1915bda0fe691924a1.zip
opt_dff: Fix behavior on $ff with D == Q.
Diffstat (limited to 'passes')
-rw-r--r--passes/opt/opt_dff.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/opt/opt_dff.cc b/passes/opt/opt_dff.cc
index 73d674c8d..0ad4acec2 100644
--- a/passes/opt/opt_dff.cc
+++ b/passes/opt/opt_dff.cc
@@ -554,7 +554,7 @@ struct OptDffWorker
// The D input path is effectively useless, so remove it (this will be a const-input D latch, SR latch, or a const driver).
log("Handling D = Q on %s (%s) from module %s (removing D path).\n",
log_id(cell), log_id(cell->type), log_id(module));
- ff.has_clk = ff.has_ce = false;
+ ff.has_gclk = ff.has_clk = ff.has_ce = false;
changed = true;
}
}