Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[rtl] Fix counter reset value on FPGA
If the counter width is >= 49, we do not use a DSP on the FPGA. Then, we should use an asynchronous reset to initialize the counter. This bug was detected when enabling the lockstep for the CW340. A lockstep mismatch happend as the mcycle counters of the main and shadow core did not match due to this bug. Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
- Loading branch information
54985d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
im having a compilation issue after this change.
i have a verilog define of XILINX_FPGA set to 1 in my xdc file:
set_property verilog_define {FPGA_XILINX=1 } [get_filesets sources_1]
54985d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Adam11072000 ,
it's unfortunate but there went something wrong, @nasahlpa is currently working on fixing that.