eda课程设计,游戏机!vhdl语言,Quartus II 7.0
begin
if(clk_1'event and clk_1='0') then case leds_state is
when "100"=> tmp_leds<="0001000"; when "011"=> tmp_leds<="0010000"; when "010"=> tmp_leds<="0100000"; when "001"=> tmp_leds<="1000000";
when "101"=> tmp_leds<="0000100"; when "110"=> tmp_leds<="0000010"; when "111"=> tmp_leds<="0000001"; when others =>tmp_leds<="0001000"; end case; end if;
if(clk_1'event and clk_1='0') then case nixie_state1 is
when "00"=>tmp_nixie1<="1111110"; when "01"=>tmp_nixie1<="0110000"; when "10"=>tmp_nixie1<="1101101"; when "11"=>tmp_nixie1<="1111001"; end case; end if;
if(clk_1'event and clk_1='0') then case nixie_state2 is
when "00"=>tmp_nixie2<="1111110"; when "01"=>tmp_nixie2<="0110000"; when "10"=>tmp_nixie2<="1101101"; when "11"=>tmp_nixie2<="1111001"; end case; end if; end process;
nixie1<=tmp_nixiea; nixie2<=tmp_nixieb;
process(clk_1,tmp_nixie1,tmp_nixie2,tmp_nixiea,tmp_nixieb) begin
if(clk_1='1')then
tmp_nixiea<=tmp_nixie1; else