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:
parent
d0b9a0cb98
commit
afd5bbc7fa
2 changed files with 53 additions and 2 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue