This blog follows up the Vivado Hardware design for the AD9467 created in Vivado 2014.2. I then tried to open up the Vivado project in 2014.4, which ran fine. Before exporting to SDK in 2014.4, I had to update some of the ip-blocks in the Block Design because they were designed for 2014.2. There were 13 blocks total that needed to be upgraded. Only 7 upgraded without manual intervention. I was unable to update the last 6 with an error telling me that the blocks could not be found in the IP Catalog. From some research, I found that I had to add another IP Repository with the 6 "locked" blocks. Since they were not upgraded, I was unable to customize them; therefore locked.
I am still working on this problem but I wanted to export the project and program the FPGA with the software from:
http://wiki.analog.com/resources/fpga/xilinx/fmc/ad9467#using_the_hdl_reference_design
Select AD9467-FMC-EBZ Reference Design the following menu:
You will be brought to a Github repository similar to the one found in the Hardware Design. Click the double arrow on the right-hand side of the page and download the ZIP file.
1. Extract the files to your download directory and copy them to wherever you'd like.
2. Make sure the bitstream is written in Vivado (it should be done for you if you follow the directions in the hardware blog).
3. Export Hardware.
4. Launch SDK ensuring the workspace is the same as the one you've been saving your other projects too.
5. Create a new Empty Application
6. Import the following files to the "src" folder:
/home/zynquser/Downloads/no-OS-master/drivers/AD9467/AD9467.c
/home/zynquser/Downloads/no-OS-master/drivers/AD9467/AD9467.h
/home/zynquser/Downloads/no-OS-master/drivers/AD9517/AD9517.c
/home/zynquser/Downloads/no-OS-master/drivers/AD9517/AD9517.h
/home/zynquser/Downloads/no-OS-master/drivers/AD9517/AD9517_cfg.h
/home/zynquser/Downloads/no-OS-master/AD9467-FMC-EBZ/cf_ad9467.c
/home/zynquser/Downloads/no-OS-master/AD9467-FMC-EBZcf_ad9467.h
/home/zynquser/Downloads/no-OS-master/AD9467-FMC-EBZ/main.c
/home/zynquser/Downloads/no-OS-master/AD9467-FMC-EBZ/spi.c
/home/zynquser/Downloads/no-OS-master/AD9467-FMC-EBZ/spi.h
7. Program the FPGA - there should be no issues here
8. In order to see the output (if you check the main.c file you will see that there are some initial tests the code runs to ensure proper connection and driver installation), open up gtkterm from the terminal.
9. Check to see which port the UART cable is connected to, usually ttyACM0. Change the permissions using sudo chmod 666 /dev/ttyACM0.
10. Run as -> Launch on Hardware (you should see the program output some print statements)
***Note: We have not connected the AD9467 to any function generator yet, this is just the instructions to load the software onto the Zedboard. Once we get the cables to connect to a function generator, we can practice with some example frequencies and take some data. Then move it to MATLAB, plot it, and see if we can get some meaningful graphs.***
No comments:
Post a Comment