You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The following has been recently tested with both Verilator and DSim, but it has been some time since other simulators have been used. Bit-rot may have set in.
15
+
-**_Icarus_** verilog cannot compile the RTL and there are no plans to support Icarus in the future.
15
16
16
17
RISC-V GCC Compiler "Toolchain"
17
18
-------------------------------
18
19
Pointers to the recommended toolchain for CV32E40P are in `../TOOLCHAIN`.
19
20
20
-
Running your own C programs
21
-
---------------------
22
-
A hello world program is available and you can run it in the CV32E40P Core testbench.
23
-
Invoke the `dsim-hello_world` or `hello-world-veri-run` makefile rules to run it with
24
-
`dsim` or `verilator` respectively.
25
-
26
-
The hello world program is located in the `custom` folder. The relevant sections
27
-
in the Makefile on how to compile and link this program can be found under `Running
28
-
custom programs`. Make sure you have a working C compiler (see above) and keep in
29
-
mind that you are running on a very basic machine.
30
-
31
21
Running the testbench with [verilator](https://www.veripool.org/wiki/verilator)
32
22
----------------------
33
-
Point your environment variable `RISCV` to your RISC-V toolchain. Call `make`
34
-
to run the default test (hello_world).
23
+
Point your environment variable `RISCV` to your RISC-V toolchain.
24
+
Call `make`to run the default test with Verilator.
35
25
36
-
Running your own Assembler programs
26
+
Running your own C and/or RISC-V Assembler programs
37
27
-----------------------------
38
28
If you have a C or assembly program in `../../tests/programs/custom`
39
29
then the following will work with Verilator:<br>
40
30
```
31
+
make veri-test TEST=hello-world
41
32
make veri-test TEST=dhrystone
42
33
make veri-test TEST=misalign
43
34
make veri-test TEST=fibonacci
@@ -51,6 +42,7 @@ Point your environment variable `RISCV` to your RISC-V toolchain. Call
51
42
`make dsim-sanity` to build and run the testbench with the hello_world
52
43
test in the custom directory. Other test targets of interest:<br>
53
44
```
45
+
make dsim-test TEST=hello-world
54
46
make dsim-test TEST=dhrystone
55
47
make dsim-test TEST=misalign
56
48
make dsim-test TEST=fibonacci
@@ -124,16 +116,3 @@ riviera-hello-world` to build the testbench and the firmware, and run it. Use
124
116
`ASIM_FLAGS` to configure the simulator e.g. `make custom-asim-run
125
117
ASIM_FLAGS="-gui"`.
126
118
127
-
Options
128
-
-------
129
-
A few plusarg options are supported:
130
-
*`+verbose` to show all memory read and writes and other miscellaneous information.
131
-
132
-
*`+vcd` to produce a vcd file called `riscy_tb.vcd`. Verilator always produces
0 commit comments