aboutsummaryrefslogtreecommitdiffstats
path: root/icepack
diff options
context:
space:
mode:
Diffstat (limited to 'icepack')
-rw-r--r--icepack/icepack.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/icepack/icepack.cc b/icepack/icepack.cc
index fd2ce5b..6b837f4 100644
--- a/icepack/icepack.cc
+++ b/icepack/icepack.cc
@@ -1144,11 +1144,14 @@ BramIndexConverter::BramIndexConverter(const FpgaConfig *fpga, int tile_x, int t
this->bank_num = 0;
int y_offset = this->tile_y - 1;
- if (!top_half) {
+ if (this->fpga->device == "5k") {
+ if (!top_half) {
+ this->bank_num |= 1;
+ } else {
+ y_offset = this->tile_y - (chip_height / 3);
+ }
+ } else if (top_half) {
this->bank_num |= 1;
- } else if (this->fpga->device == "5k") {
- y_offset = this->tile_y - (chip_height / 3);
- } else {
y_offset = this->tile_y - chip_height / 2;
}
if (right_half) this->bank_num |= 2;