Timer for Traffic Light Controller
module Timer(TS, TL, ST, Clk); output TS; output TL; input ST; input Clk; reg[7:0] value; assign TS = (value >= 4); // 5 cycles after reset assign TL = (value >= 14); // 15 cycles after reset always @(posedge ST) value = 0; // async reset always @(posedge Clk) value = value + 1; endmodule