mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
Added module->remove(), module->addWire(), module->addCell(), cell->check()
This commit is contained in:
parent
caae6e19df
commit
54b0f2e659
2 changed files with 44 additions and 8 deletions
|
@ -290,12 +290,16 @@ struct RTLIL::Module {
|
|||
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;
|
||||
|
||||
RTLIL::Wire *addWire(RTLIL::IdString name, int width = 1);
|
||||
RTLIL::Cell *addCell(RTLIL::IdString name, RTLIL::IdString type);
|
||||
|
||||
// The add* methods create a cell and return the created cell. All signals must exist in advance.
|
||||
|
||||
RTLIL::Cell* addNot (RTLIL::IdString name, RTLIL::SigSpec sig_a, RTLIL::SigSpec sig_y, bool is_signed = false);
|
||||
|
@ -449,6 +453,7 @@ struct RTLIL::Cell {
|
|||
std::map<RTLIL::IdString, RTLIL::Const> parameters;
|
||||
RTLIL_ATTRIBUTE_MEMBERS
|
||||
void optimize();
|
||||
void check();
|
||||
|
||||
template<typename T> void rewrite_sigspecs(T functor);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue