mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-25 03:16:22 +00:00
15 lines
No EOL
288 B
C++
15 lines
No EOL
288 B
C++
#include "kernel/unstable/patch.h"
|
|
|
|
YOSYS_NAMESPACE_BEGIN
|
|
|
|
using namespace RTLIL;
|
|
Cell* Patch::addCell(IdString name, IdString type) {
|
|
auto& cell = cells_.emplace_back(Cell::ConstructToken{});
|
|
cell.name = std::move(name);
|
|
cell.type = type;
|
|
return &cell;
|
|
}
|
|
|
|
|
|
|
|
YOSYS_NAMESPACE_END |