aboutsummaryrefslogtreecommitdiffstats
path: root/passes/proc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-12-12 17:13:27 +0100
committerClifford Wolf <clifford@clifford.at>2017-12-12 17:13:27 +0100
commitca2adc30c9f3736ccd9e381bbca43326e1f54a69 (patch)
tree4381e9abac931751b36ac7a4ece1914a3a9a2094 /passes/proc
parentba90e08398e3068a525c3704a069182a365474e8 (diff)
downloadyosys-ca2adc30c9f3736ccd9e381bbca43326e1f54a69.tar.gz
yosys-ca2adc30c9f3736ccd9e381bbca43326e1f54a69.tar.bz2
yosys-ca2adc30c9f3736ccd9e381bbca43326e1f54a69.zip
Add warnings for driver-driver conflicts between FFs (and other cells) and constants
Diffstat (limited to 'passes/proc')
-rw-r--r--passes/proc/proc_dff.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/passes/proc/proc_dff.cc b/passes/proc/proc_dff.cc
index 98653dc6b..f732baa17 100644
--- a/passes/proc/proc_dff.cc
+++ b/passes/proc/proc_dff.cc
@@ -322,6 +322,7 @@ void proc_dff(RTLIL::Module *mod, RTLIL::Process *proc, ConstEval &ce)
}
}
+ SigSpec sig_q = sig;
ce.assign_map.apply(insig);
ce.assign_map.apply(rstval);
ce.assign_map.apply(sig);
@@ -350,13 +351,13 @@ void proc_dff(RTLIL::Module *mod, RTLIL::Process *proc, ConstEval &ce)
else if (!rstval.is_fully_const() && !ce.eval(rstval))
{
log_warning("Async reset value `%s' is not constant!\n", log_signal(rstval));
- gen_dffsr(mod, insig, rstval, sig,
+ gen_dffsr(mod, insig, rstval, sig_q,
sync_edge->type == RTLIL::SyncType::STp,
sync_level && sync_level->type == RTLIL::SyncType::ST1,
sync_edge->signal, sync_level->signal, proc);
}
else
- gen_dff(mod, insig, rstval.as_const(), sig,
+ gen_dff(mod, insig, rstval.as_const(), sig_q,
sync_edge && sync_edge->type == RTLIL::SyncType::STp,
sync_level && sync_level->type == RTLIL::SyncType::ST1,
sync_edge ? sync_edge->signal : SigSpec(),