aboutsummaryrefslogtreecommitdiffstats
path: root/backends
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-11-01 13:52:59 +0000
committerGitHub <noreply@github.com>2020-11-01 13:52:59 +0000
commitcc7ad65a7992d82e758011ec63704b65fcb2d7d6 (patch)
tree656104fcff42509ba40e37d2ecc21788719c3207 /backends
parent56054f2ce3b76947600a1e6b0f92cc1a71ff35bd (diff)
parentcdf4ce98719b4a05a959651e209eb54d6cf17dab (diff)
downloadyosys-cc7ad65a7992d82e758011ec63704b65fcb2d7d6.tar.gz
yosys-cc7ad65a7992d82e758011ec63704b65fcb2d7d6.tar.bz2
yosys-cc7ad65a7992d82e758011ec63704b65fcb2d7d6.zip
Merge pull request #2424 from whitequark/cxxrtl-multiple-drivers
cxxrtl: don't assert on wires with multiple drivers
Diffstat (limited to 'backends')
-rw-r--r--backends/cxxrtl/cxxrtl_backend.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/cxxrtl/cxxrtl_backend.cc b/backends/cxxrtl/cxxrtl_backend.cc
index dfea04409..da46711c1 100644
--- a/backends/cxxrtl/cxxrtl_backend.cc
+++ b/backends/cxxrtl/cxxrtl_backend.cc
@@ -2182,6 +2182,8 @@ struct CxxrtlWorker {
if (wire->name.begins_with("$") && !elide_internal) continue;
if (wire->name.begins_with("\\") && !elide_public) continue;
if (edge_wires[wire]) continue;
+ if (flow.wire_comb_defs[wire].size() > 1)
+ log_cmd_error("Wire %s.%s has multiple drivers.\n", log_id(module), log_id(wire));
log_assert(flow.wire_comb_defs[wire].size() == 1);
elided_wires[wire] = **flow.wire_comb_defs[wire].begin();
}