aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-12 15:33:53 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-12 15:33:53 +0200
commit6e79b93c6e7f828b762f2acee329eb98a44ae400 (patch)
treeea6e9a10c7fbf1490d88de725e7ea6420bc7b56e /ice40
parent6707b985b4b62cf201778735bb1fef3e12567ec9 (diff)
downloadnextpnr-6e79b93c6e7f828b762f2acee329eb98a44ae400.tar.gz
nextpnr-6e79b93c6e7f828b762f2acee329eb98a44ae400.tar.bz2
nextpnr-6e79b93c6e7f828b762f2acee329eb98a44ae400.zip
Improve packer diagnostics
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40')
-rw-r--r--ice40/pack.cc5
1 files changed, 4 insertions, 1 deletions
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);