aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast/ast.cc
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 /frontends/ast/ast.cc
parent93a70959f3f67ffcee8159b18a5f68904e32a074 (diff)
downloadyosys-f4b46ed31e5f5c41bbd4ee1fdf996ecdc2010174.tar.gz
yosys-f4b46ed31e5f5c41bbd4ee1fdf996ecdc2010174.tar.bz2
yosys-f4b46ed31e5f5c41bbd4ee1fdf996ecdc2010174.zip
Replaced signed_parameters API with CONST_FLAG_SIGNED
Diffstat (limited to 'frontends/ast/ast.cc')
-rw-r--r--frontends/ast/ast.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/ast/ast.cc b/frontends/ast/ast.cc
index ec017216d..ccadc2069 100644
--- a/frontends/ast/ast.cc
+++ b/frontends/ast/ast.cc
@@ -819,7 +819,7 @@ AstModule::~AstModule()
}
// create a new parametric module (when needed) and return the name of the generated module
-RTLIL::IdString AstModule::derive(RTLIL::Design *design, std::map<RTLIL::IdString, RTLIL::Const> parameters, std::set<RTLIL::IdString> signed_parameters)
+RTLIL::IdString AstModule::derive(RTLIL::Design *design, std::map<RTLIL::IdString, RTLIL::Const> parameters)
{
log_header("Executing AST frontend in derive mode using pre-parsed AST for module `%s'.\n", name.c_str());
@@ -853,7 +853,7 @@ RTLIL::IdString AstModule::derive(RTLIL::Design *design, std::map<RTLIL::IdStrin
rewrite_parameter:
para_info += stringf("%s=%s", child->str.c_str(), log_signal(RTLIL::SigSpec(parameters[para_id])));
delete child->children.at(0);
- child->children[0] = AstNode::mkconst_bits(parameters[para_id].bits, signed_parameters.count(para_id) > 0);
+ child->children[0] = AstNode::mkconst_bits(parameters[para_id].bits, (parameters[para_id].flags & RTLIL::CONST_FLAG_SIGNED) != 0);
hash_data.insert(hash_data.end(), child->str.begin(), child->str.end());
hash_data.push_back(0);
hash_data.insert(hash_data.end(), parameters[para_id].bits.begin(), parameters[para_id].bits.end());