mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-01-13 15:27:37 +00:00
himbaechel: gatemate: replace VLA with C++ features (#1513)
This commit is contained in:
parent
27635785c8
commit
cb9f3117ba
@ -223,7 +223,7 @@ struct BitstreamBackend
|
||||
{
|
||||
ChipConfig cc;
|
||||
cc.chip_name = device;
|
||||
int bank[uarch->dies][9] = {0};
|
||||
std::vector<std::array<int, 9>> bank(uarch->dies);
|
||||
for (auto &cell : ctx->cells) {
|
||||
CfgLoc loc = get_config_loc(cell.second.get()->bel.tile);
|
||||
auto ¶ms = cell.second.get()->params;
|
||||
|
||||
@ -329,7 +329,7 @@ void GateMatePacker::remove_clocking()
|
||||
|
||||
void GateMatePacker::pack_pll()
|
||||
{
|
||||
int pll_index[uarch->dies] = {0};
|
||||
std::vector<int> pll_index(uarch->dies);
|
||||
log_info("Packing PLLss..\n");
|
||||
for (auto &cell : ctx->cells) {
|
||||
CellInfo &ci = *cell.second;
|
||||
|
||||
@ -326,7 +326,7 @@ void GateMatePacker::pack_io_sel()
|
||||
cells.push_back(&ci);
|
||||
}
|
||||
|
||||
CellInfo *ddr[uarch->dies][9] = {nullptr}; // for each bank
|
||||
std::vector<std::array<CellInfo *, 9>> ddr(uarch->dies); // for each bank
|
||||
|
||||
auto set_out_clk = [&](CellInfo *cell, CellInfo *target) -> bool {
|
||||
NetInfo *clk_net = cell->getPort(id_CLK);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user