diff --git a/himbaechel/uarch/gatemate/bitstream.cc b/himbaechel/uarch/gatemate/bitstream.cc index d258ae90..6a51c811 100644 --- a/himbaechel/uarch/gatemate/bitstream.cc +++ b/himbaechel/uarch/gatemate/bitstream.cc @@ -223,7 +223,7 @@ struct BitstreamBackend { ChipConfig cc; cc.chip_name = device; - int bank[uarch->dies][9] = {0}; + std::vector> bank(uarch->dies); for (auto &cell : ctx->cells) { CfgLoc loc = get_config_loc(cell.second.get()->bel.tile); auto ¶ms = cell.second.get()->params; diff --git a/himbaechel/uarch/gatemate/pack_clocking.cc b/himbaechel/uarch/gatemate/pack_clocking.cc index 7d840b3f..a21d463d 100644 --- a/himbaechel/uarch/gatemate/pack_clocking.cc +++ b/himbaechel/uarch/gatemate/pack_clocking.cc @@ -329,7 +329,7 @@ void GateMatePacker::remove_clocking() void GateMatePacker::pack_pll() { - int pll_index[uarch->dies] = {0}; + std::vector pll_index(uarch->dies); log_info("Packing PLLss..\n"); for (auto &cell : ctx->cells) { CellInfo &ci = *cell.second; diff --git a/himbaechel/uarch/gatemate/pack_io.cc b/himbaechel/uarch/gatemate/pack_io.cc index dbf99840..1ff219b4 100644 --- a/himbaechel/uarch/gatemate/pack_io.cc +++ b/himbaechel/uarch/gatemate/pack_io.cc @@ -326,7 +326,7 @@ void GateMatePacker::pack_io_sel() cells.push_back(&ci); } - CellInfo *ddr[uarch->dies][9] = {nullptr}; // for each bank + std::vector> ddr(uarch->dies); // for each bank auto set_out_clk = [&](CellInfo *cell, CellInfo *target) -> bool { NetInfo *clk_net = cell->getPort(id_CLK);