aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
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 /kernel
parent93a70959f3f67ffcee8159b18a5f68904e32a074 (diff)
downloadyosys-f4b46ed31e5f5c41bbd4ee1fdf996ecdc2010174.tar.gz
yosys-f4b46ed31e5f5c41bbd4ee1fdf996ecdc2010174.tar.bz2
yosys-f4b46ed31e5f5c41bbd4ee1fdf996ecdc2010174.zip
Replaced signed_parameters API with CONST_FLAG_SIGNED
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rtlil.cc2
-rw-r--r--kernel/rtlil.h5
2 files changed, 3 insertions, 4 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc
index bd1a9aee1..138287cea 100644
--- a/kernel/rtlil.cc
+++ b/kernel/rtlil.cc
@@ -285,7 +285,7 @@ RTLIL::Module::~Module()
delete it->second;
}
-RTLIL::IdString RTLIL::Module::derive(RTLIL::Design*, std::map<RTLIL::IdString, RTLIL::Const>, std::set<RTLIL::IdString>)
+RTLIL::IdString RTLIL::Module::derive(RTLIL::Design*, std::map<RTLIL::IdString, RTLIL::Const>)
{
log_error("Module `%s' is used with parameters but is not parametric!\n", id2cstr(name));
}
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index f00a51a26..5583be968 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -52,7 +52,7 @@ namespace RTLIL
enum ConstFlags {
CONST_FLAG_NONE = 0,
CONST_FLAG_STRING = 1,
- CONST_FLAG_SIGNED = 2, // unused -- to be used for parameters
+ CONST_FLAG_SIGNED = 2, // only used for parameters
CONST_FLAG_REAL = 4 // unused -- to be used for parameters
};
@@ -275,7 +275,7 @@ struct RTLIL::Module {
std::vector<RTLIL::SigSig> connections;
RTLIL_ATTRIBUTE_MEMBERS
virtual ~Module();
- virtual RTLIL::IdString derive(RTLIL::Design *design, std::map<RTLIL::IdString, RTLIL::Const> parameters, std::set<RTLIL::IdString> signed_parameters);
+ virtual RTLIL::IdString derive(RTLIL::Design *design, std::map<RTLIL::IdString, RTLIL::Const> parameters);
virtual size_t count_id(RTLIL::IdString id);
virtual void check();
virtual void optimize();
@@ -310,7 +310,6 @@ struct RTLIL::Cell {
RTLIL::IdString type;
std::map<RTLIL::IdString, RTLIL::SigSpec> connections;
std::map<RTLIL::IdString, RTLIL::Const> parameters;
- std::set<RTLIL::IdString> signed_parameters;
RTLIL_ATTRIBUTE_MEMBERS
void optimize();