Luca
1) I assume you are using the 2 tap MKID dac yellow block. 2) You need two generators. The idea is that the FPGA runs at 1/2 the DAC sample rate. So you must generate two samples at a time. For now, hook up I0, I1 to same output of dig. oscillator. 3) The config10 port is not an issue, you can ignore it. Default config on DAC is good enough. 4) You need to supply an external clock of 512MHz to the MUSIC board. This clock is then used to sample the DAC. a 128MHz and/or 256MHz are sent to the FPGA as a system clock. I can't remember--- there may be a jumper needed to pick 128 or 256. Check music dac board schematic. 4) Pick a 256MHz mkid dac clock on the yellow config block, NOT system clock. The two tap MKID yellow block works fine. I have developed a 4 tap yellow block for music DAC here: https://github.com/argonnexraydetector/RoachFirmPy/tree/master/ANLYellowBlocks I have working firmware here... it is complex... but it uses music dac board. Waveforms are 4 samples at a time, and generated by roach2 QDR. The two tap version would be similar. https://github.com/argonnexraydetector/RoachFirmPy/blob/master/Roach2DevelopmentTree/qdrdac.slx The yellow block functions to take two samples input at 256MHz and outputs them serially at 512MHz. IOSERDES blocks are need as well as MCIM blocks in FPGA. Because of this you are limited to only a few legal system and clock frequencies. I have only heard of running the DAC at 512MHz and the two tap yellow block at 256MHz. Tim Madden Argonne Lab Chicago USA ________________________________________ From: [email protected] [[email protected]] on behalf of [email protected] [[email protected]] Sent: Monday, November 28, 2016 2:11 PM To: [email protected] Subject: casper Digest, Vol 108, Issue 26 Send casper mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://calmail.berkeley.edu/manage/list/listinfo/[email protected] or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of casper digest..." Today's Topics: 1. MUSIC DAC-ROACH 2 PROBLEM ([email protected]) ---------------------------------------------------------------------- Message: 1 Date: Mon, 28 Nov 2016 10:15:07 -0500 From: <[email protected]> Subject: [casper] MUSIC DAC-ROACH 2 PROBLEM To: "[email protected]" <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset="utf-8" Dear all, How are you? I?m Luca, from Italy, I?m new in this list. I?m a visiting student at Yale University now, and I?ve to work with ROACH 2 board. I have to generate frequency variable sin and cos using MUSIC MKID ADC/DAC board. I wrote the simulink code, I can see the two signals, on a scope, they are frequency variable, and they seems correct. But when I look at the DAC outputs with the oscilloscope, I can just see thw square waves with freq=clk_in/2 and random phase. This is my setup: -I use Xilinx System Generator ISE 14.7 -System clock is 64 MHz -DAC clock in frequency is 128 MHz About DAC Yellow block: -I set reset to 0 (it would be low active but there a not gate inside the Yellow block) -I set SDENB to 1 (so, should be generated a low active pulse with duration of about 2000 simulation steps, in order to configure CONFIG10 register) - I set CONFIG10DATA word to 0xCD (because of 128MHz) I generate sin and cos with DDS 4.0 block, and after about 2000 clock cycles, that?s the time to configure CONFIG10 register, I start to send those signals (type is Fix 16_15) to DAC Yellow block. I use i0 and q0 inputs, while i1 and q1 are connected with a 0 costant (Fix 16_15). I?ve read a lot of times DAC5681 datasheet, and looked inside Yellow block, read the VHDL file of that block, but it doesn?t work. I?m really hoping you can help me with this. Thank you so much. Sincerely, Luca Finazzi. Visiting Student, Yale University, New Haven, CT. -------------- next part -------------- An HTML attachment scrubbed and removed. HTML attachments are only available in MIME digests. End of casper Digest, Vol 108, Issue 26 ***************************************

