aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/arch.h
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-06-29 11:59:37 +0100
committerDavid Shah <dave@ds0.me>2020-06-29 19:52:31 +0100
commit2c4ae853f2fe5bbc56db1b857543568f21d35cc0 (patch)
tree349b895474d4005120b718b2021c8f919d6b64ee /ecp5/arch.h
parentc7fbdc78776ba35f0fd00eaa972da221df416d27 (diff)
downloadnextpnr-2c4ae853f2fe5bbc56db1b857543568f21d35cc0.tar.gz
nextpnr-2c4ae853f2fe5bbc56db1b857543568f21d35cc0.tar.bz2
nextpnr-2c4ae853f2fe5bbc56db1b857543568f21d35cc0.zip
ecp5: Fix getTileBelDimZ
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ecp5/arch.h')
-rw-r--r--ecp5/arch.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ecp5/arch.h b/ecp5/arch.h
index 0f351319..8c7e13e4 100644
--- a/ecp5/arch.h
+++ b/ecp5/arch.h
@@ -496,9 +496,11 @@ struct Arch : BaseCtx
// -------------------------------------------------
+ static const int max_loc_bels = 20;
+
int getGridDimX() const { return chip_info->width; };
int getGridDimY() const { return chip_info->height; };
- int getTileBelDimZ(int, int) const { return 4; };
+ int getTileBelDimZ(int, int) const { return max_loc_bels; };
int getTilePipDimZ(int, int) const { return 1; };
// -------------------------------------------------
@@ -520,7 +522,6 @@ struct Arch : BaseCtx
uint32_t getBelChecksum(BelId bel) const { return bel.index; }
- const int max_loc_bels = 20;
int getBelFlatIndex(BelId bel) const
{
return (bel.location.y * chip_info->width + bel.location.x) * max_loc_bels + bel.index;