in the traffic_light.sv,
localparam COUNT_1S = int'(100000000 / CLK_PER); localparam COUNT_10S = 10 * int'(100000000 / CLK_PER);
because of 1s=1,000,000,000, so the code above lack of one 0.
and all the code don't include the localparam COUNT_1S, in the line 82 and 99 the COUNT_10S should change to COUNT_1S.
in the traffic_light.sv,
localparam COUNT_1S = int'(100000000 / CLK_PER); localparam COUNT_10S = 10 * int'(100000000 / CLK_PER);because of 1s=1,000,000,000, so the code above lack of one 0.
and all the code don't include the localparam
COUNT_1S, in the line 82 and 99 theCOUNT_10Sshould change toCOUNT_1S.