reg [1:0] state variable with initial value 2'b00reg [2:0] lights variable to represent red, yellow, and green lightscase statement on state with cases for 2'b00, 2'b01, 2'b10default case that turns off all lightslights after the case statement