Page 1 of 1

beginners project

Posted: Wed May 09, 2018 12:11 pm
by gibokilo
Can someone tell me how to write a vhdl code that gets data from the ADC and store it in a variable, having trouble accessing the ADC.

thanks

Re: beginners project

Posted: Wed May 09, 2018 2:10 pm
by amike88
Take a look over here

It's a tutorial for verilog on STEMlab but i think you will be able to get the idea.

Two points I'd like to make are,
You will need to sync your ADC registers with ADC clock coming from ADC chip.
The second point depends a bit no your application but it is common to store ADC data which are a stream into a buffer (RAM or RAMB on zynq) not a single register.

best of luck