05-29-2017 08:26 AM
I have a vivado project generated through the git repository of analog devices for the PicoZed SDR. After I compiled the project, I exported into sdk and added the files also made available by analog devices related of no-OS, I was able to transmit a sinusoid at a given frequency.
Now I wanted to take the next step in my project and pass samples of a chain that I coded myself using VHDL. But I did not want to lose the functionality of transmitting the sinusoid that the system already transmits. So I created a module that serves as a multiplexer (Figure below) with a select bit to switch between the two sample sources.
What I intended to do would be to access the select through the SDK so I can configure it as I configure the rest of the system. At this point I can change frequency of transmission, reception, gains, etc. through a terminal connected to the uart (all this is made available by no-OS, I just put together the reference design of the card with no-OS). I've done some research, but I'm not sure what I'm looking for either. I'm still very new to FPGAs, especially to SDK. If someone could point me in the rigth direction I would be very grateful. I think I have to associate the select bit to a register and then access it in the SDK, but I do not know how to do that.
Thank you for you're time.
05-30-2017 12:28 AM
As how your IP is made (external sel pin), I would suggest to use an AXI GPIO IP connected to the picozed. The you can use the AXI interface to change the values of the GPIOs output so the value of the sel pin.
Another suggestion would be to create an AXI interface in the IP to have registers accessible from the pricozed (the the sel pin would not be external but a register bit inside the IP).
Hope that helps,