From: Miodrag Milanovic Date: Fri, 22 Apr 2022 13:24:02 +0000 (+0200) Subject: Ignore change on last edge X-Git-Tag: yosys-0.17~23^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c7deabf9476939e0766fe6bd69b9a7adfeeb48b;p=yosys.git Ignore change on last edge --- diff --git a/kernel/fstdata.cc b/kernel/fstdata.cc index c99bc61c3..2bec58bcf 100644 --- a/kernel/fstdata.cc +++ b/kernel/fstdata.cc @@ -201,10 +201,11 @@ void FstData::reconstructAllAtTimes(std::vector &signal, uint64_t sta fstReaderSetUnlimitedTimeRange(ctx); fstReaderSetFacProcessMaskAll(ctx); fstReaderIterBlocks2(ctx, reconstruct_clb_attimes, reconstruct_clb_varlen_attimes, this, nullptr); - past_data = last_data; - callback(last_time); - if (last_time!=end_time) - callback(end_time); + if (last_time!=end_time) { + past_data = last_data; + callback(last_time); + } + callback(end_time); } std::string FstData::valueOf(fstHandle signal)