2025-12-19 19:14:33 +01:00
|
|
|
#include "kernel/unstable/patch.h"
|
|
|
|
|
|
|
|
|
|
YOSYS_NAMESPACE_BEGIN
|
|
|
|
|
|
|
|
|
|
using namespace RTLIL;
|
|
|
|
|
Cell* Patch::addCell(IdString name, IdString type) {
|
2025-12-21 16:56:14 +01:00
|
|
|
auto& cell = cells_.emplace_back(Cell::ConstructToken{});
|
2025-12-19 19:14:33 +01:00
|
|
|
cell.name = std::move(name);
|
|
|
|
|
cell.type = type;
|
|
|
|
|
return &cell;
|
|
|
|
|
}
|
2025-12-23 16:58:16 +01:00
|
|
|
|
|
|
|
|
|
2025-12-19 19:14:33 +01:00
|
|
|
|
|
|
|
|
YOSYS_NAMESPACE_END
|