aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-05-28 11:59:05 +0200
committerClifford Wolf <clifford@clifford.at>2017-05-28 11:59:05 +0200
commit05df3dbee434dc206c02314d4ff7d2a6faee1c4b (patch)
treef8dfc193a57cdd1d9a5647805b5685a465dcf0ac /kernel
parent9ed4c9d710e8ffc9bc33ecfe8f5650fc45cf5bc2 (diff)
downloadyosys-05df3dbee434dc206c02314d4ff7d2a6faee1c4b.tar.gz
yosys-05df3dbee434dc206c02314d4ff7d2a6faee1c4b.tar.bz2
yosys-05df3dbee434dc206c02314d4ff7d2a6faee1c4b.zip
Add "setundef -anyseq"
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rtlil.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index 9fee61aad..51a3fad6f 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -911,7 +911,7 @@ public:
std::vector<RTLIL::IdString> ports;
void fixup_ports();
- template<typename T> void rewrite_sigspecs(T functor);
+ template<typename T> void rewrite_sigspecs(T &functor);
void cloneInto(RTLIL::Module *new_mod) const;
virtual RTLIL::Module *clone() const;
@@ -1201,7 +1201,7 @@ public:
module->design->module(type)->get_bool_attribute("\\keep"));
}
- template<typename T> void rewrite_sigspecs(T functor);
+ template<typename T> void rewrite_sigspecs(T &functor);
};
struct RTLIL::CaseRule
@@ -1213,7 +1213,7 @@ struct RTLIL::CaseRule
~CaseRule();
void optimize();
- template<typename T> void rewrite_sigspecs(T functor);
+ template<typename T> void rewrite_sigspecs(T &functor);
RTLIL::CaseRule *clone() const;
};
@@ -1224,7 +1224,7 @@ struct RTLIL::SwitchRule : public RTLIL::AttrObject
~SwitchRule();
- template<typename T> void rewrite_sigspecs(T functor);
+ template<typename T> void rewrite_sigspecs(T &functor);
RTLIL::SwitchRule *clone() const;
};
@@ -1234,7 +1234,7 @@ struct RTLIL::SyncRule
RTLIL::SigSpec signal;
std::vector<RTLIL::SigSig> actions;
- template<typename T> void rewrite_sigspecs(T functor);
+ template<typename T> void rewrite_sigspecs(T &functor);
RTLIL::SyncRule *clone() const;
};
@@ -1246,7 +1246,7 @@ struct RTLIL::Process : public RTLIL::AttrObject
~Process();
- template<typename T> void rewrite_sigspecs(T functor);
+ template<typename T> void rewrite_sigspecs(T &functor);
RTLIL::Process *clone() const;
};
@@ -1295,7 +1295,7 @@ inline RTLIL::SigBit::SigBit(const RTLIL::SigSpec &sig) {
}
template<typename T>
-void RTLIL::Module::rewrite_sigspecs(T functor)
+void RTLIL::Module::rewrite_sigspecs(T &functor)
{
for (auto &it : cells_)
it.second->rewrite_sigspecs(functor);
@@ -1308,13 +1308,13 @@ void RTLIL::Module::rewrite_sigspecs(T functor)
}
template<typename T>
-void RTLIL::Cell::rewrite_sigspecs(T functor) {
+void RTLIL::Cell::rewrite_sigspecs(T &functor) {
for (auto &it : connections_)
functor(it.second);
}
template<typename T>
-void RTLIL::CaseRule::rewrite_sigspecs(T functor) {
+void RTLIL::CaseRule::rewrite_sigspecs(T &functor) {
for (auto &it : compare)
functor(it);
for (auto &it : actions) {
@@ -1326,7 +1326,7 @@ void RTLIL::CaseRule::rewrite_sigspecs(T functor) {
}
template<typename T>
-void RTLIL::SwitchRule::rewrite_sigspecs(T functor)
+void RTLIL::SwitchRule::rewrite_sigspecs(T &functor)
{
functor(signal);
for (auto it : cases)
@@ -1334,7 +1334,7 @@ void RTLIL::SwitchRule::rewrite_sigspecs(T functor)
}
template<typename T>
-void RTLIL::SyncRule::rewrite_sigspecs(T functor)
+void RTLIL::SyncRule::rewrite_sigspecs(T &functor)
{
functor(signal);
for (auto &it : actions) {
@@ -1344,7 +1344,7 @@ void RTLIL::SyncRule::rewrite_sigspecs(T functor)
}
template<typename T>
-void RTLIL::Process::rewrite_sigspecs(T functor)
+void RTLIL::Process::rewrite_sigspecs(T &functor)
{
root_case.rewrite_sigspecs(functor);
for (auto it : syncs)