openhwgroup / cvw

CORE-V Wally is a configurable RISC-V Processor associated with RISC-V System-on-Chip Design textbook. Contains a 5-stage pipeline, support for A, B, C, D, F, M and Q extensions, and optional caches, BP, FPU, VM/MMU, AHB, RAMs, and peripherals.
Other
277 stars 198 forks source link

Review wsim flags #1171

Open jordancarlin opened 3 hours ago

jordancarlin commented 3 hours ago

Several of the options to wsim are either broken or of questionable value

rosethompson commented 2 hours ago

I would like --vcd to produce a vcd file for all simulators. The vcd file can be used for more than just gtkwaves such as vector based power analysis using voltus.

locksteplog is an old version of lockstepverbose which can be removed.

I'm not sure what covlog is.

jordancarlin commented 2 hours ago

Sounds good. I'll remove locksteplog and look into why vcd is broken right now. Will try to get it working for all the simulators.

jordancarlin commented 2 hours ago

@davidharrishmc Any idea about covlog?

jordancarlin commented 1 hour ago

@rosethompson had to make a few changes to the testbench, but I got vcd dumps working for all the simulators. Something seems fishy with the Questa one though. It is an order of magnitude smaller than the dumps from Verilator and VCS...

Verilator: 4 GB Questa: 9 MB VCS: 6.3 GB

davidharrishmc commented 1 hour ago

I’ve never used covlog.

I think Huda may have originally added it. @Huda, do you still want this flag?

If you don’t have a use for it, we can take it out.

David

parser.add_argument("--covlog", "-d", help="Log coverage after n instructions.", default=0)

On Dec 2, 2024, at 1:37 PM, Jordan Carlin @.***> wrote:

@davidharrishmc https://github.com/davidharrishmc Any idea about covlog?

— Reply to this email directly, view it on GitHub https://github.com/openhwgroup/cvw/issues/1171#issuecomment-2512965982, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR4AA32UD6KSMB5SIUYV4NT2DTHKXAVCNFSM6AAAAABS4HGMYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJSHE3DKOJYGI. You are receiving this because you were mentioned.

rosethompson commented 1 hour ago

That's definitely wrong. VCD files are very large. What level of the device hierarchy is it logging?