3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-20 04:43:40 +00:00

Added copy-constructor-like module->addCell(name, other) method

This commit is contained in:
Clifford Wolf 2014-07-26 00:38:44 +02:00
parent 2bec47a404
commit 4755e14e7b
4 changed files with 17 additions and 20 deletions

View file

@ -302,6 +302,7 @@ struct RTLIL::Module
RTLIL::Wire *addWire(RTLIL::IdString name, int width = 1);
RTLIL::Cell *addCell(RTLIL::IdString name, RTLIL::IdString type);
RTLIL::Cell *addCell(RTLIL::IdString name, const RTLIL::Cell *other);
// The add* methods create a cell and return the created cell. All signals must exist in advance.