From d7cc65ede51fd99abe9fd187dece6e075252aae4 Mon Sep 17 00:00:00 2001 From: YRabbit Date: Sun, 20 Oct 2024 06:55:57 +1000 Subject: [PATCH] Fix mistype. A typo in unpack spotted by @pecostm32. Fixes #282 Signed-off-by: YRabbit --- apycula/gowin_unpack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apycula/gowin_unpack.py b/apycula/gowin_unpack.py index 75f40be..c4989f8 100644 --- a/apycula/gowin_unpack.py +++ b/apycula/gowin_unpack.py @@ -312,7 +312,7 @@ def get_bsram_main_cell(db, row, col, typ): # The DSP has 9 cells: the main one and a group of auxiliary ones. def get_dsp_main_cell(db, row, col, typ): - if type[-6:-2] == '_AUX': + if typ[-6:-2] == '_AUX': col = 1 + (col - 1) // 9 return row, col