3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-05-25 11:26:22 +00:00

patcher: start

This commit is contained in:
Emil J. Tywoniak 2025-12-19 19:14:33 +01:00
parent 25344b3947
commit b3f605e0d2
5 changed files with 67 additions and 2 deletions

View file

@ -106,6 +106,7 @@ namespace RTLIL
struct Monitor;
struct Design;
struct Module;
struct Patch;
struct Wire;
struct Memory;
struct Cell;
@ -2527,13 +2528,13 @@ struct RTLIL::Cell : public RTLIL::NamedObject
Hasher::hash_t hashidx_;
[[nodiscard]] Hasher hash_into(Hasher h) const { h.eat(hashidx_); return h; }
protected:
public:
// use module->addCell() and module->remove() to create or destroy cells
friend struct RTLIL::Module;
friend struct RTLIL::Patch;
Cell();
~Cell();
public:
// do not simply copy cells
Cell(RTLIL::Cell &other) = delete;
void operator=(RTLIL::Cell &other) = delete;