similar simon game

Guest #3195684
Dear Experts

my name is luke i need help to make project similar simon game my game 
is 20 levels and eight LEDs which demonstrate for each sequencein vhdl 
but but I'm not getting evolve follows the code I start to evaluate do 
there is an easier way? you guys have any similar project ready

thank you

Lucas




entity Game_sequencia is

   Port ( Botoes_IB : in  STD_LOGIC_VECTOR (0 downto 7);
           Botoes_IB1 : in  STD_LOGIC_VECTOR (0 downto 3);
           Saidas_QB : out  STD_LOGIC_VECTOR (0 downto 7)
        Nivel: out integer  (1 to 20)
        );



end Game_sequencia;


architecture Behavioral of Game_sequencia is

begin

    if (Botoes_IB1 = "1000") then
       Saidas_QB <= "00010000"
       Nivel <= 1
     end if;

    case Nivel
      when = 1
      if IB = ("00010000")
      Nivel <= 2
        elsif
          Nivel<=0
      end if;

      when = 2
      Saidas_QB <= "00010000"
      Saidas_QB <= "01000000"
      if IB = ("01010000") then
      Nivel <= 3
      elsif
          Nivel<=0
      end if;

      when = 3
      Saidas_QB <= "00010000"
      Saidas_QB <= "01000000"
      Saidas_QB <= "00000100"
      if IB = ("01010100") then
      Nivel <= 4
      elsif
          Nivel<=0
      end if;

    when = 4
      Saidas_QB <= "00010000"
      Saidas_QB <= "01000000"
      Saidas_QB <= "00000100"
      Saidas_QB <= "00000001"
      if IB = ("01010101") then
      Nivel <= 5
      elsif
          Nivel<=0
      end if;

Reply

A question of your own? This thread is over 13 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.