aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2018-11-29 19:35:19 +0000
committerDavid Shah <dave@ds0.me>2018-11-29 19:35:19 +0000
commit8af367ad0ad7a2ea0bc11f4f20326dacfeb26d65 (patch)
tree534505a2b1c3e8fddb773207c47da615ba865d7f /ice40
parent90138fc1201067844ca68f486399619eeabf0589 (diff)
downloadnextpnr-8af367ad0ad7a2ea0bc11f4f20326dacfeb26d65.tar.gz
nextpnr-8af367ad0ad7a2ea0bc11f4f20326dacfeb26d65.tar.bz2
nextpnr-8af367ad0ad7a2ea0bc11f4f20326dacfeb26d65.zip
ice40: Add a warning for unconstrained IO
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ice40')
-rw-r--r--ice40/pack.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/ice40/pack.cc b/ice40/pack.cc
index 88112d59..523a2642 100644
--- a/ice40/pack.cc
+++ b/ice40/pack.cc
@@ -478,6 +478,9 @@ static void pack_io(Context *ctx)
}
packed_cells.insert(ci->name);
std::copy(ci->attrs.begin(), ci->attrs.end(), std::inserter(sb->attrs, sb->attrs.begin()));
+ if (!sb->attrs.count(ctx->id("BEL")))
+ log_warning("IO '%s' is not constrained to a pin and will be automatically placed\n",
+ ci->name.c_str(ctx));
} else if (is_sb_io(ctx, ci) || is_sb_gb_io(ctx, ci)) {
NetInfo *net = ci->ports.at(ctx->id("PACKAGE_PIN")).net;
if ((net != nullptr) && (net->users.size() > 1))
@@ -520,12 +523,8 @@ static bool is_logic_port(BaseCtx *ctx, const PortRef &port)
static void insert_global(Context *ctx, NetInfo *net, bool is_reset, bool is_cen, bool is_logic, int fanout)
{
- log_info("promoting %s%s%s%s (fanout %d)\n",
- net->name.c_str(ctx),
- is_reset ? " [reset]" : "",
- is_cen ? " [cen]" : "",
- is_logic ? " [logic]" : "",
- fanout);
+ log_info("promoting %s%s%s%s (fanout %d)\n", net->name.c_str(ctx), is_reset ? " [reset]" : "",
+ is_cen ? " [cen]" : "", is_logic ? " [logic]" : "", fanout);
std::string glb_name = net->name.str(ctx) + std::string("_$glb_") + (is_reset ? "sr" : (is_cen ? "ce" : "clk"));
std::unique_ptr<CellInfo> gb = create_ice_cell(ctx, ctx->id("SB_GB"), "$gbuf_" + glb_name);