jerryt
Junior Member level 3
I am working on a tic tac toe design for a class project.
I have one VHDL process running to keep track of anytime the player makes a move.
I have another VHDL process running to keep track of anytime the machine makes a move.
I need to be able to keep track of how many moves are made total. The maximum amount of moves in a tictactoe game is 9 moves. If 9 moves are made I need to enable an LED to tell the player and machine that the game ended in a DRAW (meaning nobody one that game).
Should I create a signal in my design and each time a move is made increment it by one? Then I could have a separate process specifically for figuring out if 9 moves were made or not and if so I would enable the LED.
Any suggestions? I really appreciate everyones help.
I have one VHDL process running to keep track of anytime the player makes a move.
I have another VHDL process running to keep track of anytime the machine makes a move.
I need to be able to keep track of how many moves are made total. The maximum amount of moves in a tictactoe game is 9 moves. If 9 moves are made I need to enable an LED to tell the player and machine that the game ended in a DRAW (meaning nobody one that game).
Should I create a signal in my design and each time a move is made increment it by one? Then I could have a separate process specifically for figuring out if 9 moves were made or not and if so I would enable the LED.
Any suggestions? I really appreciate everyones help.