Definition at line 28 of file splitnets.cc.
void SplitnetsWorker::append_wire |
( |
RTLIL::Module * |
module, |
|
|
RTLIL::Wire * |
wire, |
|
|
int |
offset, |
|
|
int |
width, |
|
|
std::string |
format |
|
) |
| |
|
inline |
Definition at line 32 of file splitnets.cc.
34 std::string new_wire_name = wire->
name.
str();
36 if (format.size() > 0)
37 new_wire_name += format.substr(0, 1);
40 new_wire_name +=
stringf(
"%d", offset+width-1);
41 if (format.size() > 2)
42 new_wire_name += format.substr(2, 1);
47 new_wire_name +=
stringf(
"%d", offset);
49 if (format.size() > 1)
50 new_wire_name += format.substr(1, 1);
std::map< RTLIL::Wire *, std::vector< RTLIL::SigBit > > splitmap
std::string stringf(const char *fmt,...)
RTLIL::Wire * addWire(RTLIL::IdString name, int width=1)
RTLIL::IdString uniquify(RTLIL::IdString name)
std::vector< RTLIL::SigBit > to_sigbit_vector() const
Definition at line 61 of file splitnets.cc.
65 bit =
splitmap.at(bit.wire).at(bit.offset);
std::map< RTLIL::Wire *, std::vector< RTLIL::SigBit > > splitmap
The documentation for this struct was generated from the following file: