summaryrefslogtreecommitdiff
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-07-26 12:22:58 +0200
committerClifford Wolf <clifford@clifford.at>2014-07-26 12:22:58 +0200
commite75e495c2bddb62634c6d50f90e09e0ff358faa5 (patch)
tree2346a2357cbe20cc365369551c01bd30f4796498 /kernel/rtlil.h
parentcc4f10883bcc5f0a3c1b4f0937e60be3c6a1b121 (diff)
Added new RTLIL::Cell port access methods
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r--kernel/rtlil.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index 96bda753..0b92405e 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -484,7 +484,15 @@ public:
std::map<RTLIL::IdString, RTLIL::SigSpec> connections_;
std::map<RTLIL::IdString, RTLIL::Const> parameters;
RTLIL_ATTRIBUTE_MEMBERS
+
+ // access cell ports
+ void unset(RTLIL::IdString portname);
+ void set(RTLIL::IdString portname, RTLIL::SigSpec signal);
+ RTLIL::SigSpec get(RTLIL::IdString portname) const;
+ const std::map<RTLIL::IdString, RTLIL::SigSpec> &connections();
+
void check();
+ void fixup_parameters(bool set_a_signed = false, bool set_b_signed = false);
template<typename T> void rewrite_sigspecs(T functor);
};