Commit graph

8 commits

Author SHA1 Message Date
Rupert Swarbrick
d934a4485b Tidy up path name arguments in sim.py
Now the defaults for --testlist and --simulator_yaml should work, no
matter where it's called from.
2020-03-10 09:16:16 +00:00
Rupert Swarbrick
00bc7ca038 Tidy up command substitution in sim.py
This generally tidies up and documents how we substitute options and
environment variables in get_simulator_cmd. It's now slightly laxer,
so it won't moan about a missing environment variable or option if
it's not actually used in the command.
2020-03-10 09:16:16 +00:00
Rupert Swarbrick
341abb9a7a Move main program of sim.py into a function
This means we can wrap main() in a try/except block. That way, future
patches can change code that fails to throw an exception, rather than
having to do the ugly "write to stderr; exit 1" dance.

This also catches a global (cwd) which we were passing implicitly to
rtl_sim. Fortunately, we already have that value in _CORE_IBEX, so can
just use that.
2020-03-10 09:16:16 +00:00
Rupert Swarbrick
411ee3f458 Tidy up imports in sim.py
We now put sys.path back after importing things and no longer import
'*' from anything (which means static analysis tools can now spot when
we've got a name wrong).
2020-03-10 09:16:16 +00:00
Rupert Swarbrick
ca61654261 Re-indent sim.py
This should have no functional change: it just indents the code with
4-space indents and wraps any long lines.
2020-03-10 09:16:16 +00:00
danghai
32ba3cd92e It should give error message instead of info message for failure 2020-03-10 09:16:16 +00:00
Rupert Swarbrick
629c0cbab1 Make sim.py less chatty when just compiling the testbench
The process_regression_list function from riscv-dv is really chatty.
When we're just compiling the testbench, we don't actually need to
figure out what tests we're running, since we'll never run them
anyway. So don't call it.
2020-02-29 12:13:15 +00:00
udinator
24315515f6
Reorganize ibex dv files (#618)
Signed-off-by: Udi <udij@google.com>
2020-02-20 15:56:40 -08:00
Renamed from dv/uvm/sim.py (Browse further)