diff options
author | Jannis Harder <me@jix.one> | 2022-07-01 16:47:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 16:47:31 +0200 |
commit | 876ef59f4f68e2611843cd7cbf6c32193fa6759a (patch) | |
tree | d96a0e35ffd9eba55ee51718823f4346f44bcf6a | |
parent | fda3a537e181419f3d6a807cb6847a56cc9f8319 (diff) | |
parent | 5db542742b8f69405417e5a715b4b72ce4c78534 (diff) | |
download | yosys-876ef59f4f68e2611843cd7cbf6c32193fa6759a.tar.gz yosys-876ef59f4f68e2611843cd7cbf6c32193fa6759a.tar.bz2 yosys-876ef59f4f68e2611843cd7cbf6c32193fa6759a.zip |
Merge pull request #3396 from jix/async2sync_const_clocks
async2sync: turn FFs with const clks into gclk FFs with feedback
-rw-r--r-- | passes/sat/async2sync.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/passes/sat/async2sync.cc b/passes/sat/async2sync.cc index 46c76eba9..6fdf470b1 100644 --- a/passes/sat/async2sync.cc +++ b/passes/sat/async2sync.cc @@ -75,6 +75,9 @@ struct Async2syncPass : public Pass { if (ff.has_gclk) continue; + if (ff.has_clk && ff.sig_clk.is_fully_const()) + ff.has_ce = ff.has_clk = ff.has_srst = false; + if (ff.has_clk) { if (ff.has_sr) { |