正在加载图片...
co11<=”00000001” co12<=”00100001” col3<=”01111111” col4<=” 11111111 c0l5<=” 00000001” Col6<=” 00000001 ;; elsif(location=1)then --display 2 co11<=”01100011” col2<=”11100111” col3<=” 10001101” ;;; col4<=”10011001” C0l5<=” 11110011” ;; C0l6(=” 01100111” elsif(location=2)then --display 3 co11<=”01000010” co12<-”110110i1” Col3<=" 10011001” co14=”10011001” C0l5=” 1111111i” col6<=”01100110” end if; end if; end process; process(clk) accumulate dcount begin if(clk'event and clk='1')then dcount<=dcount+l; end if: end process; process(clk) begin if(clk'event and clk='1')then sa<=dcount (0); sdeount cas6edcu"=displav<=”00000000”: when 。车。8。中 when others=>display<=”00000000”: end case; end if; end process; process(clk) --In this process,a,b,c,d,e,f,g and dot will output begin if(clk'event and clk='1')then r0<=display(7); r7<=display(0); end if; end process; end behave; 七、实验报告要求 1、仔细分析该实验程序,了解FPGA是如何来控制电梯的。 2、仔细分析该实验程序,了解点阵显示的工作原理。 可以编写一个点阵的驱动程序来控制点阵,如通过按键来控制其中的一个亮点按要求的方向 运动:或者设计一个点阵按一定的规律显示的舞台灯光设计程序。col1<=”00000001”; col2<=”00100001”; col3<=”01111111”; col4<=”11111111”; col5<=”00000001”; col6<=”00000001”; elsif(location=1) then --display 2 col1<=”01100011”; col2<=”11100111”; col3<=”10001101”; col4<=”10011001”; col5<=”11110011”; col6<=”01100111”; elsif(location=2) then --display 3 col1<=”01000010”; col2<=”11011011”; col3<=”10011001”; col4<=”10011001”; col5<=”11111111”; col6<=”01100110”; end if; end if; end process; process(clk) --accumulate dcount begin if(clk’event and clk=’1’) then dcount<=dcount+1; end if; end process; process(clk) begin if(clk’event and clk=’1’) then sa<=dcount(0); sb<=dcount(1); sc<=dcount(2); case dcount is when “111”=>display<=”00000000”; …… when others=>display<=”00000000”; end case; end if; end process; process(clk) --In this process, a,b,c,d,e,f,g and dot will output begin if(clk’event and clk=’1’) then r0<=display(7); …… r7<=display(0); end if; end process; end behave; 七、实验报告要求 1、 仔细分析该实验程序,了解 FPGA 是如何来控制电梯的。 2、 仔细分析该实验程序,了解点阵显示的工作原理。 可以编写一个点阵的驱动程序来控制点阵,如通过按键来控制其中的一个亮点按要求的方向 运动;或者设计一个点阵按一定的规律显示的舞台灯光设计程序
<<向上翻页
©2008-现在 cucdc.com 高等教育资讯网 版权所有