From 6ecf7f86c8356cc9b386e017ac0ff1ce4c9c19c9 Mon Sep 17 00:00:00 2001 From: "D. Shah" Date: Thu, 28 Jan 2021 14:59:13 +0000 Subject: cleanup: Remove dead/unused code Note that some '#if 0' code that might still be useful for debugging in the future has been retained. Signed-off-by: D. Shah --- ice40/arch.cc | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'ice40') diff --git a/ice40/arch.cc b/ice40/arch.cc index 38e141b6..e450e682 100644 --- a/ice40/arch.cc +++ b/ice40/arch.cc @@ -409,14 +409,6 @@ std::vector> Arch::getWireAttrs(WireId wire) co ret.push_back(std::make_pair(id("GRID_Y"), stringf("%d", wi.y))); ret.push_back(std::make_pair(id("GRID_Z"), stringf("%d", wi.z))); -#if 0 - for (int i = 0; i < wi.num_segments; i++) { - auto &si = wi.segments[i]; - ret.push_back(std::make_pair(id(stringf("segment[%d]", i)), - stringf("X%d/Y%d/%s", si.x, si.y, chip_info->tile_wire_names[si.index].get()))); - } -#endif - return ret; } @@ -830,28 +822,12 @@ std::vector Arch::getDecalGraphics(DecalId decal) const for (int i = 0; i < n; i++) gfxTileWire(ret, p[i].x, p[i].y, chip_info->width, chip_info->height, GfxTileWireId(p[i].index), style); - -#if 0 - if (ret.empty()) { - WireId wire; - wire.index = decal.index; - log_warning("No gfx decal for wire %s (%d).\n", getWireName(wire).c_str(getCtx()), decal.index); - } -#endif } if (decal.type == DecalId::TYPE_PIP) { const PipInfoPOD &p = chip_info->pip_data[decal.index]; GraphicElement::style_t style = decal.active ? GraphicElement::STYLE_ACTIVE : GraphicElement::STYLE_HIDDEN; gfxTilePip(ret, p.x, p.y, GfxTileWireId(p.src_seg), GfxTileWireId(p.dst_seg), style); - -#if 0 - if (ret.empty()) { - PipId pip; - pip.index = decal.index; - log_warning("No gfx decal for pip %s (%d).\n", getPipName(pip).c_str(getCtx()), decal.index); - } -#endif } if (decal.type == DecalId::TYPE_BEL) { @@ -920,14 +896,6 @@ std::vector Arch::getDecalGraphics(DecalId decal) const el.y2 = chip_info->bel_data[bel.index].y + main_swbox_y2 + 0.05; ret.push_back(el); } - -#if 0 - if (ret.empty()) { - BelId bel; - bel.index = decal.index; - log_warning("No gfx decal for bel %s (%d).\n", getBelName(bel).c_str(getCtx()), decal.index); - } -#endif } return ret; -- cgit v1.2.3 From 94e8847d674388c3c8ac663fa4912bb8029b2951 Mon Sep 17 00:00:00 2001 From: "D. Shah" Date: Thu, 28 Jan 2021 15:19:06 +0000 Subject: cleanup: Spelling fixes Signed-off-by: D. Shah --- ice40/arch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ice40') diff --git a/ice40/arch.h b/ice40/arch.h index 1de39c33..fbf26e78 100644 --- a/ice40/arch.h +++ b/ice40/arch.h @@ -833,7 +833,7 @@ struct Arch : BaseCtx bool logicCellsCompatible(const CellInfo **it, const size_t size) const; // ------------------------------------------------- - // Assign architecure-specific arguments to nets and cells, which must be + // Assign architecture-specific arguments to nets and cells, which must be // called between packing or further // netlist modifications, and validity checks void assignArchInfo(); -- cgit v1.2.3