Files
lowobservable.coax/interface2/tests/coax_tx_bit_timer_tb.v
2020-02-17 20:47:46 -06:00

44 lines
736 B
Verilog

`default_nettype none
module coax_tx_bit_timer_tb();
reg clk = 0;
initial
begin
forever
begin
#1 clk <= ~clk;
end
end
reg reset = 0;
wire first_half;
wire second_half;
wire end_strobe;
coax_tx_bit_timer #(
.CLOCKS_PER_BIT(8)
) dut (
.clk(clk),
.reset(reset),
.first_half(first_half),
.second_half(second_half),
.end_strobe(end_strobe)
);
initial
begin
$dumpfile("coax_tx_bit_timer_tb.vcd");
$dumpvars(0, coax_tx_bit_timer_tb);
repeat(100) @(posedge clk);
reset = 1;
#2 reset = 0;
repeat(100) @(posedge clk);
$finish;
end
endmodule