Cleanup
This commit is contained in:
parent
2f537d2ccc
commit
b020a47bb8
@ -19,9 +19,9 @@
|
||||
|
||||
#include <fstream>
|
||||
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include "config.h"
|
||||
#include "gatemate.h"
|
||||
#include <boost/algorithm/string.hpp>
|
||||
|
||||
#define HIMBAECHEL_CONSTIDS "uarch/gatemate/constids.inc"
|
||||
#include "himbaechel_constids.h"
|
||||
@ -122,14 +122,12 @@ struct BitstreamBackend
|
||||
cc.tiles[loc].add_word(stringf("GPIO.%s", p.first.c_str(ctx)), p.second.as_bits());
|
||||
}
|
||||
break;
|
||||
case id_CPE.index:
|
||||
{
|
||||
case id_CPE.index: {
|
||||
int x = getInTileIndex(ctx, cell.second.get()->bel.tile);
|
||||
for (auto &p : params) {
|
||||
cc.tiles[loc].add_word(stringf("CPE%d.%s", x, p.first.c_str(ctx)), p.second.as_bits());
|
||||
}
|
||||
}
|
||||
break;
|
||||
} break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -64,11 +64,13 @@ void GateMateImpl::postRoute()
|
||||
continue;
|
||||
if (extra_data.type == PipExtra::PIP_EXTRA_CPE) {
|
||||
IdStringList id = ctx->getPipName(w.second.pip);
|
||||
BelId bel = ctx->getBelByName(IdStringList::concat(id[0], ctx->id("CPE")));
|
||||
IdString type = ctx->getBelType(bel);
|
||||
BelId bel = ctx->getBelByName(IdStringList::concat(id[0], id_CPE));
|
||||
if (!ctx->getBoundBelCell(bel)) {
|
||||
CellInfo *cell = ctx->createCell(ctx->id(ctx->nameOfBel(bel)), type);
|
||||
CellInfo *cell = ctx->createCell(ctx->id(ctx->nameOfBel(bel)), id_CPE);
|
||||
ctx->bindBel(bel, cell, PlaceStrength::STRENGTH_FIXED);
|
||||
}
|
||||
CellInfo *cell = ctx->getBoundBelCell(bel);
|
||||
if (IdString(extra_data.name) == id_RAM_O2) {
|
||||
cell->params[id_INIT_L00] = Property(5, 4); //"0101");
|
||||
cell->params[id_INIT_L01] = Property(15, 4); // Property("1111");
|
||||
cell->params[id_INIT_L02] = Property(15, 4); // Property("1111");
|
||||
|
Loading…
Reference in New Issue
Block a user