Initial attempt at receiver

This commit is contained in:
Andrew Kay
2020-02-15 17:08:55 -06:00
parent 2b81a4a961
commit 811a048685
10 changed files with 247 additions and 16 deletions

View File

@@ -0,0 +1,43 @@
`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