`timescale 1ns / 1ps
module traffic_light_tb();
reg clk;
reg reset;
wire red;
wire yellow;
wire green;
traffic_light_controller dut( .clk(clk), .reset(reset), .red(red), .yellow(yellow),
.green(green) );
always #5 clk = ~clk;
initial begin
clk = 0;
reset = 1;
#10 reset = 0;
#100 $finish;
end
always @(posedge clk) begin
$display("RED=%b YELLOW=%b GREEN=%b", red, yellow, green);
end
endmodule.
This comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDelete