From 2a0f577f839bc43a5045ddf5a2b580bba8cabeab Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 24 Oct 2015 13:44:35 +0200 Subject: Fixed handling of driver-driver conflicts in wreduce --- kernel/rtlil.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kernel/rtlil.cc') diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index 7090fe913..8332219ae 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -1448,6 +1448,10 @@ void RTLIL::Module::connect(const RTLIL::SigSig &conn) for (auto mon : design->monitors) mon->notify_connect(this, conn); +#ifndef NDEBUG + log_assert(!conn.first.has_const()); +#endif + if (yosys_xtrace) { log("#X# Connect (SigSig) in %s: %s = %s (%d bits)\n", log_id(this), log_signal(conn.first), log_signal(conn.second), GetSize(conn.first)); log_backtrace("-X- ", yosys_xtrace-1); -- cgit v1.2.3