Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

vhdl 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    And you cannot just assign it to itself to remember its state - that is a latch.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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