From e75e495c2bddb62634c6d50f90e09e0ff358faa5 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 26 Jul 2014 12:22:58 +0200 Subject: Added new RTLIL::Cell port access methods --- kernel/rtlil.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'kernel/rtlil.h') 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 connections_; std::map 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 &connections(); + void check(); + void fixup_parameters(bool set_a_signed = false, bool set_b_signed = false); template void rewrite_sigspecs(T functor); }; -- cgit v1.2.3