Files
super6502/hw/fpga/hvl/uart_testbench.sv
Byron Lathi e063e9f6a3 Add basic UART device
So far the device only transmits the ASCII set on repeat, but will
become fully featured later.
2022-03-13 19:42:41 -05:00

25 lines
328 B
Systemverilog

module testbench();
timeunit 10ns;
timeprecision 1ns;
logic clk_50, clk, rst, cs;
logic [1:0] addr;
logic [7:0] data_in, data_out;
logic rw;
logic RXD, TXD;
uart dut(.*);
always #1 clk_50 = clk_50 === 1'b0;
initial begin
rst <= '1;
repeat(5) @(posedge clk_50);
rst <= '0;
@(posedge clk_50);
end
endmodule