mirror of https://github.com/YosysHQ/yosys.git
Changed NEW_WIRE API to return the wire, not the signal
This commit is contained in:
parent
bfa1a65fa9
commit
8e8f1994b8
|
@ -382,7 +382,7 @@ RTLIL::Module *RTLIL::Module::clone() const
|
||||||
return new_mod;
|
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;
|
RTLIL::Wire *wire = new RTLIL::Wire;
|
||||||
wire->width = width;
|
wire->width = width;
|
||||||
|
|
|
@ -247,7 +247,7 @@ struct RTLIL::Module {
|
||||||
virtual size_t count_id(RTLIL::IdString id);
|
virtual size_t count_id(RTLIL::IdString id);
|
||||||
virtual void check();
|
virtual void check();
|
||||||
virtual void optimize();
|
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::Wire *wire);
|
||||||
void add(RTLIL::Cell *cell);
|
void add(RTLIL::Cell *cell);
|
||||||
void fixup_ports();
|
void fixup_ports();
|
||||||
|
|
Loading…
Reference in New Issue