diff options
author | Miodrag Milanović <mmicko@gmail.com> | 2022-04-25 10:16:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 10:16:25 +0200 |
commit | a511c27eb7a93663c3038b41a83475340768a14a (patch) | |
tree | c9f26f4fc56c5b336ae8d52c8ce15cca9e1431a3 /kernel | |
parent | 29c0a595892f36ca8755386c448105f8e2f499d6 (diff) | |
parent | bbfdea2f8a200f40f82600b48afddb66e5f0e1d2 (diff) | |
download | yosys-a511c27eb7a93663c3038b41a83475340768a14a.tar.gz yosys-a511c27eb7a93663c3038b41a83475340768a14a.tar.bz2 yosys-a511c27eb7a93663c3038b41a83475340768a14a.zip |
Merge pull request #3289 from YosysHQ/micko/sim_improve
Simulation improvements
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/fstdata.cc | 9 |
1 files changed, 5 insertions, 4 deletions
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<fstHandle> &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) |