aboutsummaryrefslogtreecommitdiffstats
path: root/backends
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-12-04 14:24:44 +0100
committerClifford Wolf <clifford@clifford.at>2013-12-04 14:24:44 +0100
commitf4b46ed31e5f5c41bbd4ee1fdf996ecdc2010174 (patch)
treeab513e840494e2be4b04149a149f7c12e605e7e4 /backends
parent93a70959f3f67ffcee8159b18a5f68904e32a074 (diff)
downloadyosys-f4b46ed31e5f5c41bbd4ee1fdf996ecdc2010174.tar.gz
yosys-f4b46ed31e5f5c41bbd4ee1fdf996ecdc2010174.tar.bz2
yosys-f4b46ed31e5f5c41bbd4ee1fdf996ecdc2010174.zip
Replaced signed_parameters API with CONST_FLAG_SIGNED
Diffstat (limited to 'backends')
-rw-r--r--backends/ilang/ilang_backend.cc2
-rw-r--r--backends/verilog/verilog_backend.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/backends/ilang/ilang_backend.cc b/backends/ilang/ilang_backend.cc
index a37c7330d..66775b2a5 100644
--- a/backends/ilang/ilang_backend.cc
+++ b/backends/ilang/ilang_backend.cc
@@ -158,7 +158,7 @@ void ILANG_BACKEND::dump_cell(FILE *f, std::string indent, const RTLIL::Cell *ce
}
fprintf(f, "%s" "cell %s %s\n", indent.c_str(), cell->type.c_str(), cell->name.c_str());
for (auto it = cell->parameters.begin(); it != cell->parameters.end(); it++) {
- fprintf(f, "%s parameter%s %s ", indent.c_str(), cell->signed_parameters.count(it->first) ? " signed" : "", it->first.c_str());
+ fprintf(f, "%s parameter%s %s ", indent.c_str(), (it->second.flags & RTLIL::CONST_FLAG_SIGNED) != 0 ? " signed" : "", it->first.c_str());
dump_const(f, it->second);
fprintf(f, "\n");
}
diff --git a/backends/verilog/verilog_backend.cc b/backends/verilog/verilog_backend.cc
index e62a70145..ff41c2e3c 100644
--- a/backends/verilog/verilog_backend.cc
+++ b/backends/verilog/verilog_backend.cc
@@ -642,7 +642,7 @@ void dump_cell(FILE *f, std::string indent, RTLIL::Cell *cell)
if (it != cell->parameters.begin())
fprintf(f, ",");
fprintf(f, "\n%s .%s(", indent.c_str(), id(it->first).c_str());
- bool is_signed = cell->signed_parameters.count(it->first) > 0;
+ bool is_signed = (it->second.flags & RTLIL::CONST_FLAG_SIGNED) != 0;
dump_const(f, it->second, -1, 0, !is_signed, is_signed);
fprintf(f, ")");
}