Merge pull request #760 from YosysHQ/gatecat/xcup-ibufds
interchange: Support for UltraScale+ differential input buffers
This commit is contained in:
commit
24b7084feb
@ -55,8 +55,6 @@ bool search_routing_for_placement(Arch *arch, WireId start_wire, CellInfo *cell,
|
|||||||
WireId dst = downhill ? arch->getPipDstWire(pip) : arch->getPipSrcWire(pip);
|
WireId dst = downhill ? arch->getPipDstWire(pip) : arch->getPipSrcWire(pip);
|
||||||
if (already_visited.count(dst))
|
if (already_visited.count(dst))
|
||||||
return;
|
return;
|
||||||
if (!arch->is_site_wire(dst) && arch->get_wire_category(dst) == WIRE_CAT_GENERAL)
|
|
||||||
return; // this pass only considers dedicated routing
|
|
||||||
visit_queue.push(dst);
|
visit_queue.push(dst);
|
||||||
already_visited.insert(dst);
|
already_visited.insert(dst);
|
||||||
};
|
};
|
||||||
@ -83,6 +81,7 @@ void Arch::place_iobufs(WireId pad_wire, NetInfo *net,
|
|||||||
if (ctx->verbose)
|
if (ctx->verbose)
|
||||||
log_info("Placed IO cell %s:%s at %s.\n", ctx->nameOf(cell_port.first),
|
log_info("Placed IO cell %s:%s at %s.\n", ctx->nameOf(cell_port.first),
|
||||||
ctx->nameOf(cell_port.first->type), ctx->nameOfBel(cell_port.first->bel));
|
ctx->nameOf(cell_port.first->type), ctx->nameOfBel(cell_port.first->bel));
|
||||||
|
placed_cells->insert(cell_port.first);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -246,7 +245,10 @@ void Arch::pack_ports()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (possible_site_types.empty()) {
|
if (possible_site_types.empty()) {
|
||||||
log_error("Port '%s' has no possible site types!\n", port_name.c_str(getCtx()));
|
if (getCtx()->verbose)
|
||||||
|
log_info("Port '%s' has no possible site types, falling back to all types!\n",
|
||||||
|
port_name.c_str(getCtx()));
|
||||||
|
possible_site_types = package_pin_site_types;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getCtx()->verbose) {
|
if (getCtx()->verbose) {
|
||||||
@ -315,6 +317,7 @@ void Arch::pack_ports()
|
|||||||
for (CellInfo *cell : placed_cells) {
|
for (CellInfo *cell : placed_cells) {
|
||||||
NPNR_ASSERT(cell->bel != BelId());
|
NPNR_ASSERT(cell->bel != BelId());
|
||||||
if (!isBelLocationValid(cell->bel)) {
|
if (!isBelLocationValid(cell->bel)) {
|
||||||
|
explain_bel_status(cell->bel);
|
||||||
log_error("Tightly bound BEL %s was not valid!\n", nameOfBel(cell->bel));
|
log_error("Tightly bound BEL %s was not valid!\n", nameOfBel(cell->bel));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -425,6 +425,10 @@ bool DedicatedInterconnect::isBelLocationValid(BelId bel, const CellInfo *cell)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ctx->io_port_types.count(net->driver.cell->type)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Only check sink BELs.
|
// Only check sink BELs.
|
||||||
if (net->driver.cell == cell && net->driver.port == port_name) {
|
if (net->driver.cell == cell && net->driver.port == port_name) {
|
||||||
if (!is_driver_on_net_valid(bel, cell, port_name, net)) {
|
if (!is_driver_on_net_valid(bel, cell, port_name, net)) {
|
||||||
@ -454,15 +458,19 @@ void DedicatedInterconnect::explain_bel_status(BelId bel, const CellInfo *cell)
|
|||||||
// This net doesn't have a driver, probably not valid?
|
// This net doesn't have a driver, probably not valid?
|
||||||
NPNR_ASSERT(net->driver.cell != nullptr);
|
NPNR_ASSERT(net->driver.cell != nullptr);
|
||||||
|
|
||||||
|
if (ctx->io_port_types.count(net->driver.cell->type)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Only check sink BELs.
|
// Only check sink BELs.
|
||||||
if (net->driver.cell == cell && net->driver.port == port_name) {
|
if (net->driver.cell == cell && net->driver.port == port_name) {
|
||||||
if (!is_driver_on_net_valid(bel, cell, port_name, net)) {
|
if (!is_driver_on_net_valid(bel, cell, port_name, net)) {
|
||||||
log_info("Driver %s/%s is not valid on net '%s'", cell->name.c_str(ctx), port_name.c_str(ctx),
|
log_info("Driver %s/%s is not valid on net '%s'\n", cell->name.c_str(ctx), port_name.c_str(ctx),
|
||||||
net->name.c_str(ctx));
|
net->name.c_str(ctx));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!is_sink_on_net_valid(bel, cell, port_name, net)) {
|
if (!is_sink_on_net_valid(bel, cell, port_name, net)) {
|
||||||
log_info("Sink %s/%s is not valid on net '%s'", cell->name.c_str(ctx), port_name.c_str(ctx),
|
log_info("Sink %s/%s is not valid on net '%s'\n", cell->name.c_str(ctx), port_name.c_str(ctx),
|
||||||
net->name.c_str(ctx));
|
net->name.c_str(ctx));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user