【正文】
理論與實(shí)踐是截然不同的兩門學(xué)問,均需要認(rèn)真學(xué)習(xí)。 本次課程設(shè)計(jì)已經(jīng)是我大學(xué)以后第二次課程設(shè)計(jì)了,我對(duì)整個(gè)過程都比較了解,不再像第一次那樣茫然,不知所措。另外, VHDL 具有并發(fā)性,采用 自上而下的結(jié)構(gòu)式設(shè)計(jì)方法,適合大型設(shè)計(jì)工程的分工合作。 end cw_arc。 end case。 when 1000000000000000=q=1111。 when 0010000000000000=q=1101。 when 0000100000000000=q=1011。 when 0000001000000000=q=1001。 when 0000000010000000=q=0111。 when 0000000000100000=q=0101。 when 0000000000001000=q=0011。 18 when 0000000000000010=q=0001。 end cw。 entity cw is port( a: in std_logic_vector(15 downto 0)。 use 。 end t_arc。 q=tmp1。 end if。 then if tmp=1111 then tmp:=0000。event and clk=39。 architecture t_arc of ta is begin process(clk) variable tmp:std_logic_vector(3 downto 0)。 q:out std_logic_vector (3 downto 0))。 use 。 列 選控制模塊源程序 library ieee。 end process。 when others=null。 when others=null。 when 1110=q=0000000000000000。 when 1100=q=0011111111111100。 when 1010=q=0000001100001100。 when 1000=q=0000001100001100。 when 0110=q=0000001100001100。 when 0100=q=0000001100001100。 when 0010=q=0000000000000000。 when 1111= 16 case sel is when 0000=q=0000000000000000。 when others=null。 when 1110=q=0000000000000000。 when 1100=q=0011111111111100。 when 1010=q=0011000110001100。 when 1000=q=0011000110001100。 when 0110=q=0011000110001100。 when 0100=q=0011000110001100。 when 0010=q=0011000110001100。 when 1110= case sel is when 0000=q=0000000000000000。 when others=null。 when 1110=q=0000000000000000。 when 1100=q=0011111111111100。 when 1010=q=0011000000001100。 when 1000=q=0011000000001100。 when 0110=q=0011000000001100。 when 0100=q=0000110000110000。 when 0010=q=0000001111000000。 when 1101= case sel is when 0000=q=0000000000000000。 顯示 C when others=null。 when 1111=q=0000000000000000。 when 1101=q=0000011111100000。 when 1011=q=0001100000011000。 when 1001=q=0011000000001100。 when 0111=q=0011000000001100。 when 0101=q=0011000000001100。 when 0011=q=0000100000100000。 when 0001=q=0000000000000000。 顯示 B end case。 when 1111=q=0000000000000000。 when 1101=q=0011111111111100。 when 1011=q=0011000110001100。 when 1001=q=0011000110001100。 when 0111=q=0011000110001100。 when 0101=q=0011000110001100。 when 0011=q=0001111111111000。 when 0001=q=0000000000000000。 顯示 A end case。 when 1111=q=0000000000000000。 when 1101=q=0000000000000000。 when 1011=q=0001110000000000。 when 1001=q=0000011111000000。 when 0111=q=0000011000011100。 when 0101=q=0000011111000000。 when 0011=q=0001110000000000。 when 0001=q=0000000000000000。 顯示 9 end case。 when 1111=q=0000000000000000。 when 1101=q=0000000000000000。 when 1011=q=0011000111111100。 when 1001=q=0011000110001100。 when 0111=q=0011000110001100。 when 0101=q=0011111111111100。