Skip to content

Commit 2ecd89a

Browse files
[doc] Quick start guide updated
Now using the hello_word_verilator inside examples tar.
1 parent f13e22d commit 2ecd89a

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

doc/ref/dev_guide.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,27 @@ Then follow the following steps to test on FPGA:
3030
You should press the RESET button on the Genesys 2 board (BTN1) to see bootloader message "Boot ROM!". To exit screen press `ctrl`-`a` then `k` and confirm with `y`.
3131

3232
In simulation you can do the following:
33-
1. Make the simulator executable and run the UART smoke test by running the following command:
33+
1. Extract the example software:
34+
```sh
35+
tar -xzvf examples.tar.gz
36+
```
37+
2. Make the simulator executable and run the UART smoke test by running the following command:
3438
```sh
3539
chmod +x Vtop_chip_verilator
36-
./Vtop_chip_verilator -E hello_world_verilator
40+
./Vtop_chip_verilator -E release/hello_world_verilator
3741
```
38-
2. Check the UART output:
42+
3. Check the UART output:
3943
```sh
4044
cat uart0.log
4145
```
4246
Which should contain content including "Hello CHERI Mocha!"
4347

4448
Programming new software over SPI is also possible using the boot ROM. Here are the steps to run the hello world example:
45-
1. Extract the example software:
46-
```sh
47-
tar -xzvf examples.tar.gz
48-
```
49-
2. Open up a screen terminal in parallel:
49+
1. Open up a screen terminal in parallel:
5050
```sh
5151
screen $(ls /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_*-port0) 1000000
5252
```
53-
3. In another terminal program the SPI (note you must run this command twice and it is expected that the second run reports "Fail":
53+
2. In another terminal program the SPI (note you must run this command twice and it is expected that the second run reports "Fail":
5454
```sh
5555
openFPGALoader --spi --offset 0x4000 --write-flash release/hello_world.bin
5656
openFPGALoader --spi --offset 0x4000 --write-flash release/hello_world.bin

0 commit comments

Comments
 (0)