commit | 33c012057d0aee0a5d897974cfdb852a0542938d | [log] [tgz] |
---|---|---|
author | Jakub Jatczak <jjatczak@antmicro.com> | Wed Mar 01 15:49:27 2023 +0100 |
committer | Jakub Jatczak <jjatczak@antmicro.com> | Thu Mar 09 09:08:39 2023 +0100 |
tree | f823590100fe0a13860fbe779056297991523b8a | |
parent | 7c0ce88eec6588d57cc86cfb882784d57572b9f8 [diff] |
Add gentrace-renode: elaborates Renode traces This adds script based on `gentrace-spike.py` and Renode `execution_tracer_reader.py` Change-Id: I8a7f3cf7584fce222b65029242a1cfbafcaa3859
NOTE: currently TBM includes a single model for each of the building block units. The intention is that other models will be added in the future to cover uArchs that are not supported by the current models. interfaces.py defines (what we expect to be) the API of the building blocks.
$OUT/springbok/riscv-tests
.$OUT/springbok/rvv_for_tbm/tests
.Before running any of the TBM tools you must run make all
.
To update the RISC-V pipe-maps in pipe_maps/riscv
run make riscv_pipe_maps
. This will import missing opcodes from $ROOTDIR/toolchain/riscv-opcodes
, and will remove spurious ones. New opcodes are mapped to “UNKNOWN”. You can also update individual RISC-V pipe-maps like this: make pipe_maps/riscv/rv32a.json
.
To run a linter on all the Python files in tbm/
run make lint
.
To type-check all the Python scripts run make type-check
. After running the type checker you can merge inferred types back to the .py
files by running make merge-pyi
to merge into all .py
files, or make merge-pyi-MOD
to merge into tbm/MOD.py
.
make -f integration-tests.mk integration_tests
- most of these tests are actually not very good for integration testing as they take far too long to complete.make -f riscv_tests.mk riscv_tests_isa
- run some of the tests from $ROOTDIR/out/springbok/riscv-tests/isa
.make -f riscv_tests.mk riscv_tests_benchmarks
- run the tests from $ROOTDIR/out/springbok/riscv-tests/benchmarks
.make -f riscv_tests.mk riscv_tests
- run the two previous targets.make -f riscv_tests.mk benchmarks
- runs the above benchmarks and generates the file benchmarks.md
with all the results.make -f rvv_tests.mk rvv_tests
- run the tests from $ROOTDIR/out/springbok/rvv_for_tbm/tests/
.