aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast/genrtlil.cc
diff options
context:
space:
mode:
authorZachary Snow <zach@zachjs.com>2020-12-22 17:38:51 -0700
committerZachary Snow <zach@zachjs.com>2020-12-22 17:49:16 -0700
commit999eec561752706a8ccb085a692684c745415985 (patch)
treece1bae2021e2cc8744440a67bae40358db3ec59f /frontends/ast/genrtlil.cc
parentd15c63effc49e6227e99412afa8a78afb48de0e1 (diff)
downloadyosys-999eec561752706a8ccb085a692684c745415985.tar.gz
yosys-999eec561752706a8ccb085a692684c745415985.tar.bz2
yosys-999eec561752706a8ccb085a692684c745415985.zip
genrtlil: fix mux2rtlil generated wire signedness
Diffstat (limited to 'frontends/ast/genrtlil.cc')
-rw-r--r--frontends/ast/genrtlil.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/frontends/ast/genrtlil.cc b/frontends/ast/genrtlil.cc
index 500ccf8c0..b8bfdf65e 100644
--- a/frontends/ast/genrtlil.cc
+++ b/frontends/ast/genrtlil.cc
@@ -141,6 +141,7 @@ static RTLIL::SigSpec mux2rtlil(AstNode *that, const RTLIL::SigSpec &cond, const
RTLIL::Wire *wire = current_module->addWire(cell->name.str() + "_Y", left.size());
wire->attributes[ID::src] = stringf("%s:%d.%d-%d.%d", that->filename.c_str(), that->location.first_line, that->location.first_column, that->location.last_line, that->location.last_column);
+ wire->is_signed = that->is_signed;
for (auto &attr : that->attributes) {
if (attr.second->type != AST_CONSTANT)