ibex icon indicating copy to clipboard operation
ibex copied to clipboard

[Component:DV] running directed c/asm tests

Open mescoba1 opened this issue 4 years ago • 1 comments

Is there a way to run directed tests with the ibex dv environment?

I noticed that riscv-dv run.py allows for directed tests to be ran with the ISS directly (runs gcc compile/iss directly).

It looks like the ibex/dv/uvm/core_ibex/Makefile does not support directed test arguments, same goes for ibex/dv/uvm/core_ibex/sim.py, which require test and testlist to be provided. Is there an easy way to hack the sim.py args to run a directed binary? Are there any plans to potentially support directed tests in the ibex flow?

mescoba1 avatar Apr 01 '21 21:04 mescoba1

Hmm, you're right: it doesn't look like that would be easy to do cleanly. A quick hack would be to override matched_list to just contain a "test" matching your binary just after line 709. It seems that we don't document the data structure for this object nicely anywhere, but it's a dictionary as parsed from e.g. dv/uvm/core_ibex/riscv_dv_extension/testlist.yaml (which should give you the fields you need).

rswarbrick avatar Apr 05 '21 08:04 rswarbrick