【正文】
三角波 正弦波電路模塊組成部分: 分頻模塊LIBRARY IEEE。ENTITY CT74161 ISPORT(clk : IN STD_LOGIC。clk_div16 : OUT STD_LOGIC)。EVENT AND clk=39。)。END PROCESS。clk_div16 = count(3)。entity tiaopin is port(s1,s0: in std_logic。architecture one of tiaopin is signal s: std_logic_vector(1 downto 0)。 process(s1,s0,a,b,c,d) begin case s is when 00=y_temp=a。 when others=y=39。 y=y_temp。entity DECODER is port(a0,a1,a2,s0,s1,s2:in std_logic。begin a=a2amp。 begin if(s2=39。 and s0=39。 when010=y:=11111011。 when110=y:=10111111。 else y:=11111111。 y2=y(2)。 y6=y(6)。 輸出波形選擇模塊library ieee。 a,b,c,d,e,f,g,h:in std_logic_vector(7 downto 0)。begins=s3amp。when 001=z=b。when 101=