From 7101df62f8e0eca91b5bec7f2e2e72fbb3f33193 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 28 Jan 2022 12:15:14 +0100 Subject: [PATCH] Fix for limit_range_end when not writing vcd --- libs/fst/fstapi.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libs/fst/fstapi.cc b/libs/fst/fstapi.cc index 3ceafb109..0b8f49146 100644 --- a/libs/fst/fstapi.cc +++ b/libs/fst/fstapi.cc @@ -5198,6 +5198,15 @@ int fstReaderIterBlocks2(void *ctx, } previous_time = time_table[i]; } + } else { + if (time_table[i] != previous_time) { + if (xc->limit_range_valid) { + if (time_table[i] > xc->limit_range_end) { + break; + } + } + previous_time = time_table[i]; + } } while (tc_head[i]) { -- 2.30.2