Altera_Forum
Honored Contributor
18 years ago2S60 Demo Design that Came with DSP Builder
This definitely caused me (and my Altera FAE) alot of sleepless nights. I thought I would share what I learned with everyone here.
With version 7.0, it seems like there are some mistakes with the 2S60 demo design that came with DSP Builder. If I just run the design as it is then ADC1 output is pure noise. Mainly, this was due to the fact that the 2S60 board block from DSP Builder library had the wrong clock assignments. If you double click on the 2S60 block, the following parameters are set: --- Quote Start ---- Clock Pin In: Pin_AM17
- Clock Pin Out (D2A_2_CLK): Pin_C16
- Clock Pin Out (D2A_1_CLK): Pin_B15
- Clock Pin Out: Pin_B18
- Clock Pin Out: Pin_C15
- Clock Pin Out (inverted): Pin_D16
- Clock Pin Out (inverted): Pin_D18
- Global Reset Pin: Pin_AG19
- AM17 -> PLD_CLKIN0
- C16 -> DAC_PLLCLK2
- B15 -> DAC_PLLCLK1
- B18 -> ADC_PLLCLK1
- C15 -> DAC_PLLCLK1_N
- D16 -> DAC_PLLCLK2_N
- D18 -> ADC_PLLCLK2
- AG19 -> PLD_CLEAR_N
- Clock Pin In: Pin_AM17
- Clock Pin Out (D2A_2_CLK): Pin_C16
- Clock Pin Out (D2A_1_CLK): Pin_B15
- Clock Pin Out: Pin_D18
- Clock Pin Out: Pin_B18
- Clock Pin Out (inverted): None
- Clock Pin Out (inverted): None
- Global Reset Pin: Pin_AG19
- Close MATLAB/Simulink
- Place the attached files in the <Default DSP Builder root>/altlib (go ahead and replace the old files.
- Restart MATLAB/Simulink
- Replace the old DAC/ADC blocks with new ones from the DSP Builder library list.
- Open up the automatically generated Quartus project.
- Expand the project architecture and double click on the PLL block to bring up the PLL megawizard GUI.
- Add an 180 degrees phase-shift to the output clock.
- Regenerate the PLL and recompile the Quartus project.
- Reprogram the board and re-run Signal Tap II.