summaryrefslogtreecommitdiff
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r--kernel/rtlil.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index 5107e5f2..796d45df 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -331,6 +331,7 @@ struct RTLIL::Selection
struct RTLIL::Monitor
{
+ virtual ~Monitor() { }
virtual void notify_module_add(RTLIL::Module*) { }
virtual void notify_module_del(RTLIL::Module*) { }
virtual void notify_cell_connect(RTLIL::Cell*, const std::pair<RTLIL::IdString, RTLIL::SigSpec>&) { }
@@ -663,12 +664,18 @@ public:
RTLIL_ATTRIBUTE_MEMBERS
// access cell ports
- bool has(RTLIL::IdString portname) const;
- void unset(RTLIL::IdString portname);
- void set(RTLIL::IdString portname, RTLIL::SigSpec signal);
- const RTLIL::SigSpec &get(RTLIL::IdString portname) const;
+ bool hasPort(RTLIL::IdString portname) const;
+ void unsetPort(RTLIL::IdString portname);
+ void setPort(RTLIL::IdString portname, RTLIL::SigSpec signal);
+ const RTLIL::SigSpec &getPort(RTLIL::IdString portname) const;
const std::map<RTLIL::IdString, RTLIL::SigSpec> &connections() const;
+ // access cell parameters
+ bool hasParam(RTLIL::IdString portname) const;
+ void unsetParam(RTLIL::IdString portname);
+ void setParam(RTLIL::IdString portname, RTLIL::Const value);
+ const RTLIL::Const &getParam(RTLIL::IdString portname) const;
+
void check();
void fixup_parameters(bool set_a_signed = false, bool set_b_signed = false);