mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-25 11:26:22 +00:00
patcher: start
This commit is contained in:
parent
25344b3947
commit
b3f605e0d2
5 changed files with 67 additions and 2 deletions
21
kernel/unstable/patch.cc
Normal file
21
kernel/unstable/patch.cc
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#include "kernel/unstable/patch.h"
|
||||
|
||||
YOSYS_NAMESPACE_BEGIN
|
||||
|
||||
using namespace RTLIL;
|
||||
Cell* Patch::addCell(IdString name, IdString type) {
|
||||
auto& cell = cells_.emplace_back();
|
||||
cell.name = std::move(name);
|
||||
cell.type = type;
|
||||
return &cell;
|
||||
}
|
||||
// RTLIL::Cell *RTLIL::Module::addCell(RTLIL::IdString name, RTLIL::IdString type)
|
||||
// {
|
||||
// RTLIL::Cell *cell = new RTLIL::Cell;
|
||||
// cell->name = std::move(name);
|
||||
// cell->type = type;
|
||||
// add(cell);
|
||||
// return cell;
|
||||
// }
|
||||
|
||||
YOSYS_NAMESPACE_END
|
||||
Loading…
Add table
Add a link
Reference in a new issue