3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-20 21:03:40 +00:00

fstdata.cc: Fix last step

Includes test file for sanity checking simulation steps.
This commit is contained in:
Krystine Sherwin 2025-05-12 13:18:19 +12:00
parent d0b9a0cb98
commit afd5bbc7fa
No known key found for this signature in database
2 changed files with 53 additions and 2 deletions

View file

@ -261,12 +261,12 @@ 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);
if (last_time!=end_time && curr_cycle < last_cycle) {
if (last_time!=end_time && curr_cycle <= last_cycle) {
past_data = last_data;
callback(last_time);
curr_cycle++;
}
if (curr_cycle < last_cycle) {
if (curr_cycle <= last_cycle) {
past_data = last_data;
callback(end_time);
curr_cycle++;