From: Clifford Wolf Date: Fri, 18 Oct 2013 12:19:45 +0000 (+0200) Subject: Changed NEW_WIRE API to return the wire, not the signal X-Git-Tag: yosys-0.2.0~456 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8e8f1994b837e19dfa9362110dee34f1099d2c4d;p=yosys.git Changed NEW_WIRE API to return the wire, not the signal --- 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();