mubase Posted February 17, 2013 Report Share Posted February 17, 2013 Hi all. Back again with a question about the IntroToSPartanFPGA tutorials from Mike.I have been trying to understand this chapter on 8 bit DAC and output of waveforms in the audio range.I get the 8 bit DAC code:library IEEE;use IEEE.STD_LOGIC_1164.ALL;use IEEE.STD_LOGIC_ARITH.ALL;use IEEE.STD_LOGIC_UNSIGNED.ALL;entity dac8 isPort ( Clk : in STD_LOGIC;Data : in STD_LOGIC_VECTOR (7 downto 0);PulseStream : out STD_LOGIC);end dac8;architecture Behavioral of dac8 issignal sum : STD_LOGIC_VECTOR (8 downto 0);beginPulseStream <= sum(8);process (clk, sum)beginif rising_edge(Clk) thensum <= ("0" & sum(7 downto 0)) + ("0" &data);end if;end process;end Behavioral; and have generated a .COE file containing 128 numbers in decimal from 28 to 228 for a lookupt table for the ROM block. Do I now need to generate a counter using the Core gen? Also, how do I send the wave out of the P41 mono audio output on the logicstart (i.e what do i send to it?) Ive tried sending the douta to it but I don't think I know what I am doing... Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.