Skip to content

Commit

Permalink
Rework bram indexing to unbreak 8k. Still not sure if its correct for…
Browse files Browse the repository at this point in the history
… 5k.
  • Loading branch information
tannewt committed Jul 8, 2017
1 parent f16265c commit b019ae4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions icepack/icepack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b019ae4

Please sign in to comment.