diff options
author | David Shah <davey1576@gmail.com> | 2018-07-09 17:00:54 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-07-09 17:00:54 +0200 |
commit | 132c5b5019fa485d7e99311bb27cfdb47fc05226 (patch) | |
tree | 13669ddd27da7fa97eb528602a45fbce5f0839c3 /ice40/arch.cc | |
parent | b5cf1c8257de6e6c5a6d757231879d7aba0798cb (diff) | |
download | nextpnr-132c5b5019fa485d7e99311bb27cfdb47fc05226.tar.gz nextpnr-132c5b5019fa485d7e99311bb27cfdb47fc05226.tar.bz2 nextpnr-132c5b5019fa485d7e99311bb27cfdb47fc05226.zip |
Make logic cell positioning a constant
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/arch.cc')
-rw-r--r-- | ice40/arch.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc index a50310cf..2eb7d1c3 100644 --- a/ice40/arch.cc +++ b/ice40/arch.cc @@ -426,10 +426,10 @@ std::vector<GraphicElement> Arch::getBelGraphics(BelId bel) const if (bel_type == TYPE_ICESTORM_LC) { GraphicElement el; el.type = GraphicElement::G_BOX; - el.x1 = chip_info->bel_data[bel.index].x + 0.82; - el.x2 = chip_info->bel_data[bel.index].x + 0.92; - el.y1 = chip_info->bel_data[bel.index].y + 0.45 + (chip_info->bel_data[bel.index].z) * (0.5 / 8); - el.y2 = chip_info->bel_data[bel.index].y + 0.5 + (chip_info->bel_data[bel.index].z) * (0.5 / 8); + el.x1 = chip_info->bel_data[bel.index].x + logic_cell_x1; + el.x2 = chip_info->bel_data[bel.index].x + logic_cell_x2; + el.y1 = chip_info->bel_data[bel.index].y + logic_cell_y1 + (chip_info->bel_data[bel.index].z) * logic_cell_pitch; + el.y2 = chip_info->bel_data[bel.index].y + logic_cell_y2 + (chip_info->bel_data[bel.index].z) * logic_cell_pitch; el.z = 0; ret.push_back(el); |