mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
Use buf instead of pos
This commit is contained in:
parent
9f36d9dea9
commit
bc05f4fead
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ void fixfanout(RTLIL::Module *module, SigMap &sigmap, dict<RTLIL::SigSpec, std::
|
||||||
for (int i = 0; i < num_buffers; ++i) {
|
for (int i = 0; i < num_buffers; ++i) {
|
||||||
std::string wireName = generateSigSpecName(module, sigToBuffer, true, "_wbuf" + std::to_string(index_buffer)).c_str();
|
std::string wireName = generateSigSpecName(module, sigToBuffer, true, "_wbuf" + std::to_string(index_buffer)).c_str();
|
||||||
std::string cellName = generateSigSpecName(module, sigToBuffer, true, "_fbuf" + std::to_string(index_buffer), true).c_str();
|
std::string cellName = generateSigSpecName(module, sigToBuffer, true, "_fbuf" + std::to_string(index_buffer), true).c_str();
|
||||||
RTLIL::Cell *buffer = module->addCell(cellName, ID($pos));
|
RTLIL::Cell *buffer = module->addCell(cellName, ID($buf));
|
||||||
bufferActualFanout[buffer] = 0;
|
bufferActualFanout[buffer] = 0;
|
||||||
RTLIL::SigSpec buffer_output = module->addWire(wireName, chunk.size());
|
RTLIL::SigSpec buffer_output = module->addWire(wireName, chunk.size());
|
||||||
buffer->setPort(ID(A), chunk);
|
buffer->setPort(ID(A), chunk);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue