From 8e8f1994b837e19dfa9362110dee34f1099d2c4d Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Fri, 18 Oct 2013 14:19:45 +0200 Subject: [PATCH] Changed NEW_WIRE API to return the wire, not the signal --- kernel/rtlil.cc | 2 +- kernel/rtlil.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index 5075215cd..7bd67e08f 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -382,7 +382,7 @@ RTLIL::Module *RTLIL::Module::clone() const return new_mod; } -RTLIL::SigSpec RTLIL::Module::new_wire(int width, RTLIL::IdString name) +RTLIL::Wire *RTLIL::Module::new_wire(int width, RTLIL::IdString name) { RTLIL::Wire *wire = new RTLIL::Wire; wire->width = width; diff --git a/kernel/rtlil.h b/kernel/rtlil.h index a3d1dafd9..b69dc8143 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -247,7 +247,7 @@ struct RTLIL::Module { virtual size_t count_id(RTLIL::IdString id); virtual void check(); virtual void optimize(); - RTLIL::SigSpec new_wire(int width, RTLIL::IdString name); + RTLIL::Wire *new_wire(int width, RTLIL::IdString name); void add(RTLIL::Wire *wire); void add(RTLIL::Cell *cell); void fixup_ports(); -- 2.30.2