mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-23 22:33:41 +00:00
Merge remote-tracking branch 'origin/master' into mwk/xilinx_bufgmap
This commit is contained in:
commit
6872805a3e
146 changed files with 4377 additions and 1490 deletions
|
@ -198,7 +198,7 @@ struct IopadmapPass : public Pass {
|
|||
|
||||
for (auto cell : module->cells())
|
||||
if (cell->type == ID($_TBUF_)) {
|
||||
SigBit bit = sigmap(cell->getPort(ID(Y)).as_bit());
|
||||
SigBit bit = sigmap(cell->getPort(ID::Y).as_bit());
|
||||
tbuf_bits[bit].first = cell->name;
|
||||
}
|
||||
|
||||
|
@ -231,7 +231,7 @@ struct IopadmapPass : public Pass {
|
|||
continue;
|
||||
|
||||
SigBit en_sig = tbuf_cell->getPort(ID(E)).as_bit();
|
||||
SigBit data_sig = tbuf_cell->getPort(ID(A)).as_bit();
|
||||
SigBit data_sig = tbuf_cell->getPort(ID::A).as_bit();
|
||||
|
||||
if (wire->port_input && !tinoutpad_celltype.empty())
|
||||
{
|
||||
|
@ -244,7 +244,7 @@ struct IopadmapPass : public Pass {
|
|||
cell->setPort(RTLIL::escape_id(tinoutpad_portname2), owire);
|
||||
cell->setPort(RTLIL::escape_id(tinoutpad_portname3), data_sig);
|
||||
cell->setPort(RTLIL::escape_id(tinoutpad_portname4), wire_bit);
|
||||
cell->attributes[ID(keep)] = RTLIL::Const(1);
|
||||
cell->attributes[ID::keep] = RTLIL::Const(1);
|
||||
|
||||
for (auto cn : tbuf_cache.second) {
|
||||
auto c = module->cell(cn);
|
||||
|
@ -281,7 +281,7 @@ struct IopadmapPass : public Pass {
|
|||
cell->setPort(RTLIL::escape_id(toutpad_portname), en_sig);
|
||||
cell->setPort(RTLIL::escape_id(toutpad_portname2), data_sig);
|
||||
cell->setPort(RTLIL::escape_id(toutpad_portname3), wire_bit);
|
||||
cell->attributes[ID(keep)] = RTLIL::Const(1);
|
||||
cell->attributes[ID::keep] = RTLIL::Const(1);
|
||||
|
||||
for (auto cn : tbuf_cache.second) {
|
||||
auto c = module->cell(cn);
|
||||
|
@ -408,7 +408,7 @@ struct IopadmapPass : public Pass {
|
|||
cell->parameters[RTLIL::escape_id(widthparam)] = RTLIL::Const(1);
|
||||
if (!nameparam.empty())
|
||||
cell->parameters[RTLIL::escape_id(nameparam)] = RTLIL::Const(stringf("%s[%d]", RTLIL::id2cstr(wire->name), i));
|
||||
cell->attributes[ID(keep)] = RTLIL::Const(1);
|
||||
cell->attributes[ID::keep] = RTLIL::Const(1);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -421,7 +421,7 @@ struct IopadmapPass : public Pass {
|
|||
cell->parameters[RTLIL::escape_id(widthparam)] = RTLIL::Const(wire->width);
|
||||
if (!nameparam.empty())
|
||||
cell->parameters[RTLIL::escape_id(nameparam)] = RTLIL::Const(RTLIL::id2cstr(wire->name));
|
||||
cell->attributes[ID(keep)] = RTLIL::Const(1);
|
||||
cell->attributes[ID::keep] = RTLIL::Const(1);
|
||||
}
|
||||
|
||||
wire->port_id = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue