mirror of
https://github.com/alangarf/apple-one.git
synced 2025-03-13 09:32:41 +00:00
added pretend UART RX waveform
This commit is contained in:
parent
b42567e759
commit
f081eb674f
@ -106,7 +106,7 @@ module apple1_tb;
|
||||
force core_top.my_cpu.arlet_cpu.ALU.temp_h = 0;
|
||||
|
||||
clk25 = 1'b0;
|
||||
uart_rx = 1'b0;
|
||||
uart_rx = 1'b1;
|
||||
rst_n = 1'b0;
|
||||
#40 rst_n = 1'b1;
|
||||
|
||||
@ -186,6 +186,21 @@ module apple1_tb;
|
||||
$display("Starting...");
|
||||
$dumpfile("apple1_top_tb.vcd");
|
||||
$dumpvars;
|
||||
|
||||
#180000
|
||||
uart_rx = 1'b0;
|
||||
#400
|
||||
uart_rx = 1'b1;
|
||||
#400
|
||||
uart_rx = 1'b0;
|
||||
#400
|
||||
uart_rx = 1'b1;
|
||||
#800
|
||||
uart_rx = 1'b0;
|
||||
#1600
|
||||
uart_rx = 1'b1;
|
||||
|
||||
|
||||
#1000000 $display("Stopping...");
|
||||
$finish;
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user