aboutsummaryrefslogtreecommitdiffstats
path: root/frontends
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-09-06 17:35:06 +0200
committerClifford Wolf <clifford@clifford.at>2016-09-06 17:35:06 +0200
commitd55a93b39ff331aea16d627de92b1cbee2be68db (patch)
treeac6ec16c76075d6b6d8539eb2d2ac86354a41a9d /frontends
parent97583ab7295499b1b78ac7035e6e0b37d7b87734 (diff)
downloadyosys-d55a93b39ff331aea16d627de92b1cbee2be68db.tar.gz
yosys-d55a93b39ff331aea16d627de92b1cbee2be68db.tar.bz2
yosys-d55a93b39ff331aea16d627de92b1cbee2be68db.zip
Bugfix in parsing of BLIF latch init values
Diffstat (limited to 'frontends')
-rw-r--r--frontends/blif/blifparse.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/blif/blifparse.cc b/frontends/blif/blifparse.cc
index 1f6d0ee37..3717a1e5e 100644
--- a/frontends/blif/blifparse.cc
+++ b/frontends/blif/blifparse.cc
@@ -241,7 +241,7 @@ void parse_blif(RTLIL::Design *design, std::istream &f, std::string dff_name, bo
}
if (init != nullptr && (init[0] == '0' || init[0] == '1'))
- blif_wire(d)->attributes["\\init"] = Const(init[0] == '1' ? 1 : 0, 1);
+ blif_wire(q)->attributes["\\init"] = Const(init[0] == '1' ? 1 : 0, 1);
if (clock == nullptr)
goto no_latch_clock;