aboutsummaryrefslogtreecommitdiffstats
path: root/backends
diff options
context:
space:
mode:
authorJannis Harder <me@jix.one>2022-08-18 16:50:56 +0200
committerGitHub <noreply@github.com>2022-08-18 16:50:56 +0200
commitf1c9399b66641b3e6a79acec7eeb4f57d31c9705 (patch)
treeaaab15eb173aa79587d663e32661cf42990bd118 /backends
parent1c36f4cc2cfe8832be19c9c6be5592c6ea55df19 (diff)
parent5142fb3b5c6e7ed89fe74fcdff7775d6f09c34f5 (diff)
downloadyosys-f1c9399b66641b3e6a79acec7eeb4f57d31c9705.tar.gz
yosys-f1c9399b66641b3e6a79acec7eeb4f57d31c9705.tar.bz2
yosys-f1c9399b66641b3e6a79acec7eeb4f57d31c9705.zip
Merge pull request #3450 from jix/write_aiger_nonff
write_aiger: Fix non-$_FF_ FFs
Diffstat (limited to 'backends')
-rw-r--r--backends/aiger/aiger.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/aiger/aiger.cc b/backends/aiger/aiger.cc
index 2ea999dc0..513f9d95a 100644
--- a/backends/aiger/aiger.cc
+++ b/backends/aiger/aiger.cc
@@ -202,7 +202,7 @@ struct AigerWriter
ff_map[Q] = D;
if (cell->type != ID($_FF_)) {
- auto sig_clk = sigmap(cell->getPort(ID::CLK).as_bit());
+ auto sig_clk = sigmap(cell->getPort(ID::C).as_bit());
ywmap_clocks[sig_clk] |= cell->type == ID($_DFF_N_) ? 2 : 1;
}
continue;