Closed mkosunen closed 3 years ago
@chiplet I think now it works. Can you confirm?
@mkosunen JTAG programming in simulation still works after these changes. 👍
When running the sv model for the inv_sim entity I can see a delay of one cycle. Should this happen? This behaviour doesn't seem to depend on the changes in this PR though as reverting to the preceding rtl
commit still shows the one cycle delay.
Thatis controlled with the 'latency' vector in main guard. For rtl simulations, latency should be 1 as file IO is syncronous to clock. This is ugly, but most of the designs are syncronous anyway. Asychronous inverter is an exception.
I'l' merge this anyway as I see it is clear and good. Let's handle that spice feature independently.
I already merged this after throughly testing it (I thought). However, it seems that it breaks Non event-based IO's. Try to run inverter sv sim with it.
@chiplet