From 6e79b93c6e7f828b762f2acee329eb98a44ae400 Mon Sep 17 00:00:00 2001 From: David Shah Date: Tue, 12 Jun 2018 15:33:53 +0200 Subject: Improve packer diagnostics Signed-off-by: David Shah --- ice40/pack.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ice40/pack.cc b/ice40/pack.cc index 4e03eab2..8f770a07 100644 --- a/ice40/pack.cc +++ b/ice40/pack.cc @@ -52,6 +52,7 @@ static void pack_lut_lutffs(Design *design) auto lut_bel = ci->attrs.find("BEL"); bool packed_dff = false; if (dff) { + log_info("found attached dff %s\n", dff->name.c_str()); auto dff_bel = dff->attrs.find("BEL"); if (lut_bel != ci->attrs.end() && dff_bel != dff->attrs.end() && lut_bel->second != dff_bel->second) { @@ -91,9 +92,11 @@ static void pack_nonlut_ffs(Design *design) CellInfo *ci = cell.second; if (is_ff(ci)) { CellInfo *packed = create_ice_cell(design, "ICESTORM_LC", - ci->name.str() + "_LC"); + ci->name.str() + "_DFFLC"); std::copy(ci->attrs.begin(), ci->attrs.end(), std::inserter(packed->attrs, packed->attrs.begin())); + log_info("packed cell %s into %s\n", ci->name.c_str(), + packed->name.c_str()); packed_cells.insert(ci->name); new_cells.push_back(packed); dff_to_lc(ci, packed, true); -- cgit v1.2.3