trace of struct array not working correctly #742
Labels
area: wrong runtime result
Issue involves an incorrect runtine result from Verilated model
resolution: fixed
Closed; fixed
Author Name: Jie Xu (@jiexu)
Original Redmine Issue: 742 from https://www.veripool.org
Original Date: 2014-04-15
Original Assignee: Wilson Snyder (@wsnyder)
For the following code, the generated VCD dump file will only have tt[31:0].
I did some investigation in the Verilator source. The cause of this problem is when @tt@ signal is declared for tracing, Verilator use @bitRange@ infomation which is actually the the structure @tt_t@ information. And when @AstTraceDecl@ is created in @V3TraceDecl.cpp@, @arrayRange@ is not used. So the final VCD dump will only show the value of the first struct inside the array.
Note the tracing works with "--trace-structs" option.
The text was updated successfully, but these errors were encountered: