aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYRabbit <rabbit@yrabbit.cyou>2021-12-26 12:05:35 +1000
committerYRabbit <rabbit@yrabbit.cyou>2021-12-26 12:05:35 +1000
commite6b787954216ec220698bf7a6264f19bb6102d73 (patch)
treeabe9d3587957c94c662213a366fb1e59f460da1f
parent643b6971780adf8a6c5623851d9fff9f6a413113 (diff)
downloadnextpnr-e6b787954216ec220698bf7a6264f19bb6102d73.tar.gz
nextpnr-e6b787954216ec220698bf7a6264f19bb6102d73.tar.bz2
nextpnr-e6b787954216ec220698bf7a6264f19bb6102d73.zip
gowin: Initializing the grid dimensions
gridDimX and gridDimY are not initialized explicitly, which leads to effects when the design is reloaded, say, from the GUI. Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
-rw-r--r--gowin/arch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gowin/arch.h b/gowin/arch.h
index 931a0aa1..9f969f54 100644
--- a/gowin/arch.h
+++ b/gowin/arch.h
@@ -298,7 +298,7 @@ struct Arch : BaseArch<ArchRanges>
dict<DecalId, std::vector<GraphicElement>> decal_graphics;
- int gridDimX, gridDimY;
+ int gridDimX = 0, gridDimY = 0;
std::vector<std::vector<int>> tileBelDimZ;
std::vector<std::vector<int>> tilePipDimZ;