Once the tutorial is complete and you type in username root and password root, you are then able to control parts of the Zedboard using the terminal. For example, if you navigate to bin and type ls, you will see all the different commands like poke. Then, in Vivado, open the block design and observe that the LEDs are connected to axi_gpio_0. Then click on the Address Editor tab and find this cell. Notice that the offset Address is 0x4120_0000 which is the address that the LEDs are connected to within the Zedboard.
Then you can go back to the terminal and type the following:
poke 0x4120000 0xFF
which successfully turned on the LEDs on the Zedboard. Then if you type:
poke 0x4120000 0x0
then the LEDs turn off.
To run Pre_Filter and actually get an output at this point, follow the steps below.
Go through the usual steps of making the block design and then launch SDK. Continue as you would normally and open new application, then import src (Pre_Filter.c) and program the FPGA. Then once you run the program, open up a terminal in the virtual machine and navigate to the directory that contains the .c file. Then type:
make Pre_Filter (which makes the file an executable program)
./Pre_Filter (This actually runs the code)
The output looks like this..
No comments:
Post a Comment