VHDL for control
port ( clk,reset: in std_logic;
Used one-hot encoding. Outputs q0, q1, lose, win,q4, q5 correspond to states S0, S1, S2, S3, S4, S5.
The one hot equations were written by inspection. The VHDL file contains boolean equations for DFF inputs and ra,rb, eq,sp outputs.