From b4d438ea9f5cfe07d29dd8a0dc810136e3c21408 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 12 Mar 2016 11:39:32 +0000 Subject: [PATCH] Fixed bug in vlog95 dff output when using asynchronous set. --- tgt-vlog95/logic_lpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgt-vlog95/logic_lpm.c b/tgt-vlog95/logic_lpm.c index c0202b5bb..24b1371b7 100644 --- a/tgt-vlog95/logic_lpm.c +++ b/tgt-vlog95/logic_lpm.c @@ -1606,7 +1606,7 @@ static void emit_lpm_ff(ivl_scope_t scope, ivl_lpm_t lpm) emitted = 1; } nex = ivl_lpm_async_set(lpm); - if (aset_bits && (aset_bits[0] != '0')) nex = 0; + if (!aset_bits || (aset_bits[0] != '0')) nex = 0; if (nex) { if (emitted) fprintf(vlog_out, " | "); emit_nexus_as_ca(scope, nex, 0, 0);