Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- Follow this your entity should have: XOUT : out std_logic_vector(13 downto 0); YOUT : out std_logic_vector(13 downto 0); -- adc 14 bit data inputs XIN : in std_logic_vector(13 downto 0); YIN : in std_logic_vector(13 downto 0); -- Setup ADC and DAC DAC_MODE : out std_logic; -- DAC mode, 1 for dual DAC_WRTA : out std_logic; -- Write signal Channel A DAC_WRTB : out std_logic; -- Write signal Channel B ADC_OEA : out std_logic; -- Channel A enable ADC_OEB : out std_logic; -- Channel b enable PLL_OUT_ADC : out std_logic_vector(1 downto 0); PLL_OUT_DAC : out std_logic_vector(1 downto 0)); -- Clock from HSMC your interface: --Clock processing--------------------------- process(CLOCK_50) begin if falling_edge(CLOCK_50) then clockF <= not(clockF); end if; if rising_edge(CLOCK_50) then clockR <= not(clockR); end if; end process; --DAC and ADC interface---------------------- PLL_OUT_ADC(0) <= clockR; PLL_OUT_ADC(1) <= clockR; PLL_OUT_DAC(0) <= clockF; PLL_OUT_DAC(1) <= clockF; DAC_WRTA <= clockF; DAC_WRTB <= clockF; DAC_MODE <= '1'; -- Dual mode ADC_OEA <= '0'; ADC_OEB <= '0'; --your outputs YOUT <= YIN;; XOUT <= XIN; The whole thing should work. Here is pins the assignment ADC_OEA Location PIN_T25 ADC_OEB Location PIN_T26 CLOCK_50 Location PIN_Y2 DAC_MODE Location PIN_H24 DAC_WRTA Location PIN_H23 DAC_WRTB Location PIN_M25 PLL_OUT_ADC[0] Location PIN_G23 PLL_OUT_ADC[1] Location PIN_G24 PLL_OUT_DAC[0] Location PIN_V24 PLL_OUT_DAC[1] Location PIN_V23 RESET Location PIN_AB28 XIN[0] Location PIN_T22 XIN[1] Location PIN_T21 XIN[2] Location PIN_R23 XIN[3] Location PIN_R22 XIN[4] Location PIN_R21 XIN[5] Location PIN_P21 XIN[6] Location PIN_P26 XIN[7] Location PIN_P25 XIN[8] Location PIN_N26 XIN[9] Location PIN_N25 XIN[10] Location PIN_L22 XIN[11] Location PIN_L21 XIN[12] Location PIN_U26 XIN[13] Location PIN_U25 XOUT[0] Location PIN_D27 XOUT[1] Location PIN_D28 XOUT[2] Location PIN_E27 XOUT[3] Location PIN_E28 XOUT[4] Location PIN_F27 XOUT[5] Location PIN_F28 XOUT[6] Location PIN_G27 XOUT[7] Location PIN_G28 XOUT[8] Location PIN_K27 XOUT[9] Location PIN_K28 XOUT[10] Location PIN_M27 XOUT[11] Location PIN_M28 XOUT[12] Location PIN_K21 XOUT[13] Location PIN_K22 YIN[0] Location PIN_V22 YIN[1] Location PIN_U22 YIN[2] Location PIN_V28 YIN[3] Location PIN_V27 YIN[4] Location PIN_U28 YIN[5] Location PIN_U27 YIN[6] Location PIN_R28 YIN[7] Location PIN_R27 YIN[8] Location PIN_V26 YIN[9] Location PIN_V25 YIN[10] Location PIN_L28 YIN[11] Location PIN_L27 YIN[12] Location PIN_J26 YIN[13] Location PIN_J25 YOUT[0] Location PIN_F24 YOUT[1] Location PIN_F25 YOUT[2] Location PIN_D26 YOUT[3] Location PIN_C27 YOUT[4] Location PIN_F26 YOUT[5] Location PIN_E26 YOUT[6] Location PIN_G25 YOUT[7] Location PIN_G26 YOUT[8] Location PIN_H25 YOUT[9] Location PIN_H26 YOUT[10] Location PIN_K25 YOUT[11] Location PIN_K26 YOUT[12] Location PIN_L23 YOUT[13] Location PIN_L24 --- Quote End --- I tried to test the program. However it doesnt work. I am using the altera DE2 board and the terasic daughter board. I checked the pin assignment. I cant see anything in the output. Could you help me with this???