mirror of
https://github.com/lowobservable/coax.git
synced 2026-04-26 20:27:31 +00:00
Initial attempt at receiver
This commit is contained in:
43
interface2/tests/coax_tx_bit_timer_tb.v
Normal file
43
interface2/tests/coax_tx_bit_timer_tb.v
Normal 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
|
||||
Reference in New Issue
Block a user