Skip to content
Update Lab 4: Universal Direct Memory Access (UDMA) authored by Werner Florian's avatar Werner Florian
......@@ -234,7 +234,7 @@ Depending on the environment variable name you gave to your python3-pip path.
4. After the install you can execute the application by running `udma` in any terminal. If you get an warning about permissions you will still be able to execute the client but from the indicated location which will be a **bin** folder relative to your User.
5. Another way to launch the CLI is by going into **udma/src** and running the following command in your terminal:
5. After the install you can execute the application by running `udma` in any terminal. Another way to launch the CLI is by going into **udma/src** and running the following command in your terminal:
```py udma.py```
......@@ -242,11 +242,7 @@ Depending on the environment variable name you gave to your python3-pip path.
![image](uploads/a010341fd557982baea3a876928c183a/image.png)
After the install you can execute the application by running `udma` in any terminal.
# Section 7: Download the design into the Zynq SoC
# Section 7: Download the design into the Zynq SoC and connect the UDMA CLI
## For remote connection to the board:
......@@ -254,6 +250,7 @@ After the install you can execute the application by running `udma` in any termi
1. Connect a USB micro cable between the Windows/Linux Host machine and the **ZedBoard JTAG J17 **(on the right side of the power connector). This connection will be used to configure the PL.
2. Connect a USB micro cable to the **USB UART** connector (**J14**) on the ZedBoard (on the left side of the power switch), with the Windows/Linux Host machine.
3. Connect an Ethernet cable from the Zedboard to an active port in a router or switch (if the network has DHCP enabled this will override the configured IP).
2. Check the jumper setting for **J18** in the bottom right corner of the board. The jumper should be set to 2.5V, which is marked as “2V5” on the board.
3. Power-on the board.
4. Set up a serial utility software like Tera Term or Putty.
......@@ -261,9 +258,21 @@ After the install you can execute the application by running `udma` in any termi
6. When PL is successfully programmed, the **ZedBoard DONE LED** (blue LED) will light.
7. Execute the ‘C’ code in the PS part of the Zynq: **Run As -> Launch on Hardware (GDB)**.
8. Check the console of the serial utility that you use for messages from the ‘C’ code.
9. Select **Console** tab and click on the Terminate button (![image](uploads/b5996eb81489f984b3a2a7edbb294250/image.png)) to stop the program.
10. Close **SDK** and **Vivado** programs by selecting **File -> Exit** in each program.
11. **Power OFF** the board.
9. To connect to your board you can type the following command:
```RVI CLI >: connect -s XXX.XXX.XXX.XXX:XXXX```
Substituting the first part XXX.XXX.XXX.XXX with the IP you assigned to your board in the **main.c** file and the last part with the port identified inside the **echo.c** file.
10. Once you successfully connected you should validate your MAC address by using the *x_read_register** command to read the switches and comparing this value to the last part of your MAC.
11. You can use the **x_write_fifo** and **x_read_fifo** to test the FIFO loopback.
12. You can use the **x_read_ram** to check the patter that was written by the counter.
13. You can set the state of the leds to show the last two values of your MAC address by writing in the register 0 with the appropriate command.
14. Select **Console** tab and click on the Terminate button (![image](uploads/b5996eb81489f984b3a2a7edbb294250/image.png)) to stop the program.
15. Close **SDK** and **Vivado** programs by selecting **File -> Exit** in each program.
16. **Power OFF** the board.
## Conclusion
......
......