This commit is contained in:
Bee 2023-11-15 22:21:06 -05:00
parent cae3afbc55
commit 3a2c675613

View file

@ -7,19 +7,16 @@
$finish; \ $finish; \
end end
module tb_adding( module tb_adding();
output o_uart_tx
);
reg clk = 0; reg clk = 0;
Beepo #( Beepo #(
.FREQ(1), .FREQ(1),
.UART_BAUD(1_000_000) .UART_BAUD(1_000_000)
) bep ( ) bep (
.i_clk(clk), .i_clk(clk)
.o_uart_tx(o_uart_tx)
); );
localparam CLK_PERIOD = 1.0; localparam CLK_PERIOD = 1.0;
always #(CLK_PERIOD/2) clk=~clk; always #(CLK_PERIOD/2) clk=~clk;
@ -34,7 +31,7 @@ Beepo #(
); );
end end
// should probably do more tests than just the end // should probably do more granular tests
initial #10000 begin initial #10000 begin
`assert(bep.r_registers[1], 64'h2020202040406090); `assert(bep.r_registers[1], 64'h2020202040406090);
$finish; $finish;