Xilinx XADC core

dedicated to the FPGA topics for all Red Pitaya programmers
Post Reply
ansh
Posts: 5
Joined: Fri Mar 31, 2023 4:40 pm

Xilinx XADC core

Post by ansh » Mon Apr 10, 2023 11:56 pm

Hi,

I am programming the FPGA on the red pitaya and want to read values from the slow ADC(Analog input). I have been trying to understand how to use the Xilinx XADC core to accomplish this but do not yet understand the Xilinx XADC documentation and how AXI streaming works. If someone could point me to the right resources to learn about it I would be very grateful.

Best,
Ansh

User avatar
redpitaya
Site Admin
Posts: 897
Joined: Wed Mar 26, 2014 7:04 pm

Re: Xilinx XADC core

Post by redpitaya » Wed Apr 12, 2023 2:41 pm

Hello Ansh,

I would suggest using the Verilog/VHDL code to create your FPGA program. The Vivado cores are a nice start but might not be very useful for advanced applications. Otherwise, I would suggest looking into the Xilinx documentation.

Also, next time, please post FPGA-related topics under the FPGA topics section :D

juretrn
Posts: 107
Joined: Tue Nov 16, 2021 11:38 am

Re: Xilinx XADC core

Post by juretrn » Fri Apr 14, 2023 1:59 pm

Hi,
the use of XADC depends on what you are trying to do. Do you just need to read a value every once in a while or do you need to sample it as quickly as possible?
Keep in mind the data rate goes down with the number of enabled channels - the conversion rate is fixed at 1 MSPS and multiple channels are multiplexed into a single converter. This means enabling 4 channels will result in a data rate of 250 kS for each channel.
You can enable the M_AXIS interface and get your values from that - it only has 4 lines: data, channel ID, valid and ready. You can try to find examples on how to use it.
I believe the XADC setup is already done by our software. Otherwise, you will have to write the internal registers as needed.

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 2 guests