commit | 0835686fb613a73e389d8b4fd70e9e96f24255de | [log] [tgz] |
---|---|---|
author | Shaked Flur <sflur@google.com> | Wed Feb 22 09:28:51 2023 +0000 |
committer | Shaked Flur <sflur@google.com> | Wed Feb 22 10:29:45 2023 +0000 |
tree | e10e3fd62af0c9532005dcff17d73451f0d0442c | |
parent | f348812cb96d280df245c0dedc5bd67c368543f0 [diff] |
Add license and contributing files In preparation to open sourcing TMB. Headers were add using: `addlicense -c "Google LLC" -l apache .` LICENSE was downloaded from https://www.apache.org/license/LICENSE-2.0.txt Change-Id: Ib52d24c287d4b918edb26f6aeea42a56165e3402
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/
.