Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
ADC: take a file with voltage or current values in it, yes a text file. These are your analog values. Then write a vhdl model which will read this file. VHDL has a datatype called 'real' you will be able to read values from file, into a variable which is of type 'real'.
By reading these values you are effectively 'sampling' your analog value. So the frequency at which you will read will be your 'sampling freq'. So txt values in your files must correspond to that 'sampling freq'
now convert this 'real' type into std_logic_vector, and output it.
Thats it.
do the reverse for DAC.
Kr,
Avi http://www.vlsiip.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.