aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/pack.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-10-03 13:40:21 +0200
committerClifford Wolf <clifford@clifford.at>2018-10-03 13:40:21 +0200
commitb4dc6b8845de01a982879ff7f315b958edaa32fd (patch)
tree6ab8db643aacbc76401dfaef58c255ecbf5594f3 /ice40/pack.cc
parente3466bce1a9c9b10ccbcc6a34ba569a4917a9bb9 (diff)
downloadnextpnr-b4dc6b8845de01a982879ff7f315b958edaa32fd.tar.gz
nextpnr-b4dc6b8845de01a982879ff7f315b958edaa32fd.tar.bz2
nextpnr-b4dc6b8845de01a982879ff7f315b958edaa32fd.zip
Add info message for promoted global nets
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40/pack.cc')
-rw-r--r--ice40/pack.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ice40/pack.cc b/ice40/pack.cc
index 3c9112a0..edd12f92 100644
--- a/ice40/pack.cc
+++ b/ice40/pack.cc
@@ -462,6 +462,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)
{
+ log_info("promoting %s%s%s%s\n", net->name.c_str(ctx), is_reset ? " [reset]" : "", is_cen ? " [cen]" : "", is_logic ? " [logic]" : "");
+
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);
gb->ports[ctx->id("USER_SIGNAL_TO_GLOBAL_BUFFER")].net = net;