2023-10-25 00:00:42 +00:00
# RISC-V Verilog
2023-10-10 07:17:16 +00:00
This project is an educative project with the goal to implement a basic RISC-V CPU in Verilog for an educative purpose.
2023-10-25 00:01:54 +00:00
2023-10-25 00:03:02 +00:00
This CPU will implement the RV32I ISA, with the following goals:
2023-10-26 08:43:49 +00:00
- [X] Single cycle RISC-V RVI32I CPU
2023-10-25 00:02:19 +00:00
- [ ] Multi cycle CPU
- [ ] Pipelining
2023-11-25 10:46:58 +00:00
- [ ] (Bonus) RISC-V privileged ISA
# How to Run the Test
2023-11-25 10:48:46 +00:00
Use the command : ```make TARGET=< test_bench > -< sub_test > ```
2023-11-25 10:46:58 +00:00
2023-11-25 10:48:46 +00:00
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_<test_bench>` directory. \
2023-11-29 02:14:42 +00:00
Example: `make TARGET=risc_v_cpu-alu_instruction`
2023-11-25 10:46:58 +00:00
2023-11-25 10:48:46 +00:00
You can remove the dash and `sub_test` argument to run only the non source code based test. \
Example: `make TARGET=risc_v_cpu`
2023-11-25 10:46:58 +00:00
2023-11-25 10:48:46 +00:00
Or use `all` as a `sub_test` to run all test associated to a `test_bench` . \
Example: `make TARGET=risc_v_cpu-all`
2023-11-29 02:14:42 +00:00
You can add the flag `debug` at the end of the command to open ModelSim interface. \
Example: `make TARGET=risc_v_cpu-alu_instruction debug`