From 0a032b36b0ca91da285f49b5d1add69cfd463db2 Mon Sep 17 00:00:00 2001 From: "brice.boisson" Date: Sat, 25 Nov 2023 19:46:58 +0900 Subject: [PATCH] Add: test command readme --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 14b05b1..19b90be 100644 --- a/README.md +++ b/README.md @@ -6,4 +6,18 @@ This CPU will implement the RV32I ISA, with the following goals: - [X] Single cycle RISC-V RVI32I CPU - [ ] Multi cycle CPU - [ ] Pipelining -- [ ] (Bonus) RISC-V privileged ISA \ No newline at end of file +- [ ] (Bonus) RISC-V privileged ISA + +# How to Run the Test + +Use the command :\ +```make TARGET=-``` + +With `test_bench` among the listed test bench in the `tb` directory and `sub_test` a source code file in the `tb/test_source_code/tb_` directory. +```make TARGET=risc_v_cpu-test``` + +You can remove the dash and `sub_test` argument to run only the non source code based test. +```make TARGET=risc_v_cpu``` + +Or use `all` as a `sub_test` to run all test associated to a `test_bench`. +```make TARGET=risc_v_cpu-all```