Forum Discussion
Altera_Forum
Honored Contributor
13 years agovhdl code for tic tac game
i am going to do project on simple game tic tac on vhdl. I am using 9 switch and and nine led for display and 2 led to indicate the winner. i am thinking to distinguish to play by flashing of LED. if first player press the switch than led will be on and when 2nd player press the switch than led will start to flash for infinite time. So any one please help me for this project. i am quite new for vhdl.
13 Replies
- Altera_Forum
Honored Contributor
In your code - every if statement must have an else, and ALL signals assigned ANYWHERE in the process MUST be assigned in EVERY if or elsif or else branch.
- Altera_Forum
Honored Contributor
And you cannot just assign it to itself to remember its state - that is a latch.
- Altera_Forum
Honored Contributor
Hey, i found this code very helpful.
Thanks for that. it runs without any error but can u please tell me how to implement it on hardware. i have FPGA board available with me. But i dont know how to make interface between FPGA board and my LED board. please do rly