Grammar mistakes
This commit is contained in:
@@ -1,30 +1,30 @@
|
||||
# Example
|
||||
|
||||
This directory shows how to flash a system verilog program (A full-adder) on a Zybo `xc7z010clg400-1` card.
|
||||
This directory shows how to flash a SystemVerilog program (a full-adder) on a Zybo `xc7z010clg400-1` board.
|
||||
|
||||
## Build
|
||||
|
||||
Firstly, the system verilog file needs to be converted to verilog in order to use it with yosys :
|
||||
Firstly, the SystemVerilog file needs to be converted to verilog to use it with Yosys :
|
||||
|
||||
```bash
|
||||
podman run --mount=type=bind,source=.,target=/root/code fmn_alpine sv2v adder.sv -w adder.v
|
||||
```
|
||||
|
||||
The mount parameter is used to provide to podman the current directory.
|
||||
The mount parameter is used to provide the current directory to podman.
|
||||
|
||||
Then, yosys can achieve the RTL synthesis of the program :
|
||||
Then, Yosys can perform the RTL synthesis of the program :
|
||||
|
||||
```bash
|
||||
podman run --mount=type=bind,source=.,target=/root/code fmn_alpine yosys adder.v -p "synth_xilinx; write_json synthesis.json"
|
||||
```
|
||||
|
||||
Nextpnr can now place and route each components using the xdc constraints file :
|
||||
Nextpnr can now place and route each component using the XDC constraints file :
|
||||
|
||||
```bash
|
||||
podman run --mount=type=bind,source=.,target=/root/code fmn_alpine nextpnr-himbaechel --json synthesis.json -o xdc=adder.xdc -o fasm=out.fasm --device xc7z010clg400-1
|
||||
```
|
||||
|
||||
Now the fasm file can be converted in a frames file and then in a bitstream :
|
||||
Now the FASM file can be converted to a frames file and then to a bitstream :
|
||||
|
||||
```bash
|
||||
podman run --mount=type=bind,source=.,target=/root/code fmn_alpine fasm2frames --part xc7z010clg400-1 --db-root /usr/share/xray/database/zynq7 out.fasm out.frames
|
||||
@@ -33,9 +33,9 @@ podman run --mount=type=bind,source=.,target=/root/code fmn_alpine xc7frames2bit
|
||||
|
||||
## Flashing the FPGA
|
||||
|
||||
Finally, we can flash the bitstream on the card with `openFPGALoader`.
|
||||
Finally, we can flash the bitstream on the board with `openFPGALoader`.
|
||||
|
||||
Podman requires a device argument to allow openFPGALoader to access the usb interface. You can find this path with `lsusb` :
|
||||
Podman requires a device argument to allow `openFPGALoader` to access the USB interface. You can find this path with `lsusb` :
|
||||
|
||||
```txt
|
||||
Bus 003 Device 005: ID 0403:6010 Future Technology Devices International, Ltd FT2232C/D/H Dual UART/FIFO IC
|
||||
|
||||
Reference in New Issue
Block a user