xc7series: fix condition for padding frames detection

Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
This commit is contained in:
Tomasz Michalak 2019-04-08 10:57:34 +02:00
parent 710658ebf8
commit 091c12438a
1 changed files with 10 additions and 2 deletions

View File

@ -147,8 +147,16 @@ absl::optional<Configuration> Configuration::InitWithPackets(
// Bitstreams appear to have 2 frames of
// padding between rows.
if (next_address->row() !=
current_frame_address.row()) {
if (next_address &&
(next_address->block_type() !=
current_frame_address
.block_type() ||
next_address
->is_bottom_half_rows() !=
current_frame_address
.is_bottom_half_rows() ||
next_address->row() !=
current_frame_address.row())) {
ii += 2 * kWordsPerFrame;
}
current_frame_address = *next_address;