URL
https://opencores.org/ocsvn/socgen/socgen/trunk
Subversion Repositories socgen
[/] [socgen/] [trunk/] [Projects/] [opencores.org/] [Mos6502/] [ip/] [T6502/] [sim/] [icarus/] [tim_2/] [test_define] - Rev 131
Compare with Previous | Blame | View Log
initial
begin
$display(" ");
$display(" ===================================================");
$display(" Test Start");
$display(" ===================================================");
$display(" ");
test.cg.next(20);
fork
begin
test.ps2_model.rcv_byte(8'hff,1'b1);
test.cg.next(5000);
test.ps2_model.send_byte(8'hfa);
test.cg.next(20000);
test.ps2_model.send_byte(8'haa);
test.cg.next(20000);
test.ps2_model.send_byte(8'h00);
test.ps2_model.rcv_byte(8'hf3,1'b1);
test.cg.next(2000);
test.ps2_model.send_byte(8'hfa);
test.ps2_model.rcv_byte(8'hc8,1'b0);
test.cg.next(2000);
test.ps2_model.send_byte(8'hfa);
test.ps2_model.rcv_byte(8'hf3,1'b1);
test.cg.next(2000);
test.ps2_model.send_byte(8'hfa);
test.ps2_model.rcv_byte(8'h64,1'b0);
test.cg.next(2000);
test.ps2_model.send_byte(8'hfa);
test.ps2_model.rcv_byte(8'hf3,1'b1);
test.cg.next(2000);
test.ps2_model.send_byte(8'hfa);
test.ps2_model.rcv_byte(8'h50,1'b1);
test.cg.next(2000);
test.ps2_model.send_byte(8'hfa);
test.ps2_model.rcv_byte(8'hf2,1'b0);
test.cg.next(2000);
test.ps2_model.send_byte(8'hfa);
test.cg.next(20000);
test.ps2_model.send_byte(8'h03);
test.ps2_model.rcv_byte(8'he8,1'b1);
test.cg.next(2000);
test.ps2_model.send_byte(8'hfa);
test.ps2_model.rcv_byte(8'h03,1'b1);
test.cg.next(2000);
test.ps2_model.send_byte(8'hfa);
test.ps2_model.rcv_byte(8'hf3,1'b1);
test.cg.next(2000);
test.ps2_model.send_byte(8'hfa);
test.ps2_model.rcv_byte(8'h28,1'b1);
test.cg.next(2000);
test.ps2_model.send_byte(8'hfa);
test.ps2_model.rcv_byte(8'hf4,1'b0);
test.cg.next(2000);
test.ps2_model.send_byte(8'hfa);
test.cg.next(20000);
test.ps2_model.send_byte(8'h12);
test.cg.next(20000);
test.ps2_model.send_byte(8'h34);
test.cg.next(20000);
test.ps2_model.send_byte(8'h56);
test.cg.next(20000);
test.ps2_model.send_byte(8'h78);
test.cg.next(20000);
test.ps2_model.send_byte(8'h9a);
test.cg.next(20000);
test.ps2_model.send_byte(8'hbc);
test.cg.next(20000);
end
begin
test.cg.next(20);
test.uart_model.rcv_byte(8'h46);
test.cg.next(20);
test.uart_model.rcv_byte(8'h46);
test.cg.next(20);
test.uart_model.rcv_byte(8'h46);
test.cg.next(20);
test.uart_model.rcv_byte(8'h41);
test.cg.next(20);
test.uart_model.rcv_byte(8'h20);
test.cg.next(20);
test.uart_model.rcv_byte(8'h34);
test.cg.next(20);
test.uart_model.rcv_byte(8'h37);
test.cg.next(20);
test.uart_model.rcv_byte(8'h20);
test.cg.next(20);
test.uart_model.rcv_byte(8'h4d);
test.cg.next(20);
test.uart_model.rcv_byte(8'h65);
test.cg.next(20);
test.uart_model.rcv_byte(8'h6d);
test.cg.next(20);
test.uart_model.rcv_byte(8'h20);
test.cg.next(20);
test.uart_model.rcv_byte(8'h20);
test.cg.next(20);
test.uart_model.rcv_byte(8'h0d);
test.cg.next(20);
test.uart_model.rcv_byte(8'h0a);
test.cg.next(2000);
test.uart_model.send_byte(8'h35);
test.uart_model.rcv_byte(8'h46);
test.cg.next(20);
test.uart_model.rcv_byte(8'h46);
test.cg.next(20);
test.uart_model.rcv_byte(8'h46);
test.cg.next(20);
test.uart_model.rcv_byte(8'h42);
test.cg.next(20);
test.uart_model.rcv_byte(8'h20);
test.cg.next(20);
test.uart_model.rcv_byte(8'h46);
test.cg.next(20);
test.uart_model.rcv_byte(8'h31);
test.cg.next(20);
test.uart_model.rcv_byte(8'h20);
test.cg.next(20);
test.uart_model.rcv_byte(8'h4d);
test.cg.next(20);
test.uart_model.rcv_byte(8'h65);
test.cg.next(20);
test.uart_model.rcv_byte(8'h6d);
test.cg.next(20);
test.uart_model.rcv_byte(8'h20);
test.cg.next(20);
test.uart_model.rcv_byte(8'h20);
test.cg.next(20);
test.uart_model.rcv_byte(8'h0d);
test.cg.next(20);
test.uart_model.rcv_byte(8'h0a);
test.cg.next(2000);
test.uart_model.send_byte(8'h36);
test.cg.next(40000);
test.uart_model.send_byte(8'h37);
test.cg.next(40000);
test.uart_model.send_byte(8'h38);
test.cg.next(40000);
end
join
test.cg.exit;
end