Merge pull request #3396 from jix/async2sync_const_clocks

async2sync: turn FFs with const clks into gclk FFs with feedback
This commit is contained in:
Jannis Harder 2022-07-01 16:47:31 +02:00 committed by GitHub
commit 876ef59f4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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) {