summaryrefslogtreecommitdiff
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-07-21 12:35:06 +0200
committerClifford Wolf <clifford@clifford.at>2014-07-21 12:35:06 +0200
commit1d88f1cf9f2088de7825f5292db5b40d4f73d036 (patch)
treeef1eeba2dcddbe957dabb8147b2b81cdc0d2ecd3 /kernel/rtlil.h
parent3cb61d03f8722fddfa14877accae1b3ca51e3926 (diff)
Removed deprecated module->new_wire()
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r--kernel/rtlil.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index 19666481..3c6c9724 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -142,7 +142,7 @@ namespace RTLIL
RTLIL::new_id(__FILE__, __LINE__, __FUNCTION__)
#define NEW_WIRE(_mod, _width) \
- (_mod)->new_wire(_width, NEW_ID)
+ (_mod)->addWire(NEW_ID, _width)
template <typename T> struct sort_by_name {
bool operator()(T *a, T *b) const {
@@ -287,16 +287,16 @@ struct RTLIL::Module {
virtual size_t count_id(RTLIL::IdString id);
virtual void check();
virtual void optimize();
- RTLIL::Wire *new_wire(int width, RTLIL::IdString name);
- void add(RTLIL::Wire *wire);
- void add(RTLIL::Cell *cell);
- void remove(RTLIL::Cell *cell);
void fixup_ports();
template<typename T> void rewrite_sigspecs(T functor);
void cloneInto(RTLIL::Module *new_mod) const;
virtual RTLIL::Module *clone() const;
+ void add(RTLIL::Wire *wire);
+ void add(RTLIL::Cell *cell);
+ void remove(RTLIL::Cell *cell);
+
RTLIL::Wire *addWire(RTLIL::IdString name, int width = 1);
RTLIL::Cell *addCell(RTLIL::IdString name, RTLIL::IdString type);