From 4c0db1160860e9917df1f8b9fb988d4174ed13c2 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 17 Oct 2018 18:35:43 +0200 Subject: [PATCH] fix grid dimensions for ice40 --- ice40/arch.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ice40/arch.h b/ice40/arch.h index 27d5db9f..bdcee3b8 100644 --- a/ice40/arch.h +++ b/ice40/arch.h @@ -417,8 +417,8 @@ struct Arch : BaseCtx // ------------------------------------------------- - int getGridDimX() const { return 34; } - int getGridDimY() const { return 34; } + int getGridDimX() const { return chip_info->width; } + int getGridDimY() const { return chip_info->height; } int getTileBelDimZ(int, int) const { return 8; } int getTilePipDimZ(int, int) const { return 1; }