cvw/fpga
2024-12-31 00:57:58 -08:00
..
constraints Added new debug scripts. 2024-12-03 12:17:10 -06:00
generator Added new tsm for debuggin the plic. 2024-12-03 15:28:39 -06:00
rvvidaemon Updated email address authorship for my files. 2024-10-15 10:27:53 -05:00
src Remove old unused file. 2024-12-02 15:24:46 -06:00
zsbl Don't create imperas-riscv-tests for zsbl 2024-12-31 00:57:58 -08:00
comport.setup More name updates. 2024-08-21 10:51:24 -07:00
probe Update python shebangs to use /usr/bin/env python3 so virtual environment can be used (also aids in general portability) 2024-07-03 20:42:55 -07:00
proberange Update python shebangs to use /usr/bin/env python3 so virtual environment can be used (also aids in general portability) 2024-07-03 20:42:55 -07:00
probes Update python shebangs to use /usr/bin/env python3 so virtual environment can be used (also aids in general portability) 2024-07-03 20:42:55 -07:00
README.md Update fpga README formatting 2024-10-17 15:08:32 -07:00
renumber.py Update python shebangs to use /usr/bin/env python3 so virtual environment can be used (also aids in general portability) 2024-07-03 20:42:55 -07:00
trigger_issues.tsm Renamed wallypipelinedhart to wallypipelinedcore 2022-01-20 16:02:08 +00:00

Wally supports the following boards

  1. ArtyA7
  2. vcu108
  3. vcu118 (Do not recommend.)

Quick Start

Build FPGA

cd generator
make <board name>

Example:

make vcu108

Make flash card image

ls /dev/sd* or ls /dev/mmc* to see which flash card devices you have. Insert the flash card into the reader and ls /dev/sd* or /dev/mmc* again. The new device is the one you want to use. Make sure you select the root device (i.e. /dev/sdb) not the partition (i.e. /dev/sdb1).

cd $WALLY/linux/sd-card

This following script requires root.

./flash-sd.sh -b <path to buildroot> -d <path to compiled device tree file> <flash card device>

Example with vcu108, buildroot installed to /opt/riscv/buildroot, and the flash card is device /dev/sdc

./flash-sd.sh -b /opt/riscv/buildroot -d /opt/riscv/buildroot/output/images/wally-vcu108.dtb /dev/sdc

Wait until the the script completes then remove the card.

FPGA setup

For the Arty A7 insert the PMOD daughter board into the right most slot and insert the sd card.

For the VCU108 and VCU118 boards insert the PMOD daughter board into the only PMOD slot on the right side of the boards.

Power on the boards. For Arty A7 just plug in the USB connector. For the VCU boards make sure the power supply is connected and the two usb cables are connected. Flip on the switch. The VCU118's on board UART converter does not work. Use a spark fun FTDI usb to UART adapter and plug into the mail PMOD on the right side of the board. Also the level sifters on the VCU118 do not work correctly with the digilent sd PMOD board. We have a custom board which works instead.

cd $WALLY/fpga/generator
vivado &

Open the design in the current directory WallyFPGA.xpr.

Then click "Open Target" under "PROGRAM AND DEBUG". Then Program the device.

Connect to UART

In another terminal ls /dev/ttyUSB*. One of these devices will be the UART connected to Wally. You may have to experiment by the running the following command multiple times.

screen /dev/ttyUSB1 115200

Swap out the USB1 for USB0 or USB1 as needed.