OpenCores
URL https://opencores.org/ocsvn/socgen/socgen/trunk

Subversion Repositories socgen

[/] [socgen/] [trunk/] [Projects/] [opencores.org/] [logic/] [ip/] [ps2_interface/] [sim/] [icarus/] [mouse/] [test_define] - Blame information for rev 131

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 131 jt_eaton
initial
2
 begin
3
 $display("              ");
4
 $display("          ===================================================");
5
 $display("%t  Test Start",$realtime);
6
 $display("          ===================================================");
7
 $display("              ");
8
 
9
 test.cg.next(20);
10
 
11
 test.cg.next(10);
12
 fork
13
 begin
14
 
15
 
16
 
17
 test.ps2_host.send_byte   (8'hff);
18
 
19
 test.cg.next(100);
20
 test.ps2_host.clear_rx_host;
21
 test.ps2_host.rcv_byte(8'hfa);
22
 test.cg.next(100);
23
 test.ps2_host.clear_rx_host;
24
 test.ps2_host.rcv_byte(8'haa);
25
 test.cg.next(100);
26
 test.ps2_host.clear_rx_host;
27
 test.ps2_host.rcv_byte(8'h00);
28
 test.cg.next(100);
29
 test.ps2_host.send_byte   (8'hf3);
30
 test.cg.next(100);
31
 test.ps2_host.send_byte   (8'hc8);
32
 test.cg.next(100);
33
 test.ps2_host.send_byte   (8'hf3);
34
 test.cg.next(100);
35
 test.ps2_host.send_byte   (8'h64);
36
 test.cg.next(100);
37
 test.ps2_host.send_byte   (8'hf3);
38
 test.cg.next(100);
39
 test.ps2_host.send_byte   (8'h50);
40
 test.cg.next(100);
41
 test.ps2_host.send_byte   (8'hf2);
42
 test.cg.next(1000);
43
 test.ps2_host.clear_rx_host;
44
 test.ps2_host.rcv_byte(8'hfa);
45
 test.cg.next(100);
46
 test.ps2_host.send_byte   (8'he8);
47
 test.cg.next(100);
48
 test.ps2_host.send_byte   (8'h03);
49
 test.cg.next(100);
50
 test.ps2_host.send_byte   (8'hf3);
51
 test.cg.next(100);
52
 test.ps2_host.send_byte   (8'h28);
53
 test.cg.next(100);
54
 test.ps2_host.send_byte   (8'hf4);
55
 end
56
 
57
 
58
 begin
59
 test.ps2_model.rcv_byte(8'hff,1'b1);
60
 test.cg.next(5000);
61
 test.ps2_model.send_byte(8'hfa);
62
 test.cg.next(20000);
63
 test.ps2_model.send_byte(8'haa);
64
 test.cg.next(20000);
65
 test.ps2_model.send_byte(8'h00);
66
 test.cg.next(2000);
67
 test.ps2_model.rcv_byte(8'hf3,1'b1);
68
 test.cg.next(2000);
69
 test.ps2_model.rcv_byte(8'hc8,1'b0);
70
 test.cg.next(2000);
71
 test.ps2_model.rcv_byte(8'hf3,1'b1);
72
 test.cg.next(2000);
73
 test.ps2_model.rcv_byte(8'h64,1'b0);
74
 test.cg.next(2000);
75
 test.ps2_model.rcv_byte(8'hf3,1'b1);
76
 test.cg.next(2000);
77
 test.ps2_model.rcv_byte(8'h50,1'b1);
78
 test.cg.next(2000);
79
 test.ps2_model.rcv_byte(8'hf2,1'b0);
80
 test.cg.next(4000);
81
 test.ps2_model.send_byte(8'hfa);
82
 test.cg.next(1000);
83
 test.ps2_model.rcv_byte(8'he8,1'b1);
84
 test.cg.next(2000);
85
 test.ps2_model.rcv_byte(8'h03,1'b1);
86
 test.cg.next(2000);
87
 test.ps2_model.rcv_byte(8'hf3,1'b1);
88
 test.cg.next(2000);
89
 test.ps2_model.rcv_byte(8'h28,1'b1);
90
 test.cg.next(2000);
91
 test.ps2_model.rcv_byte(8'hf4,1'b0);
92
 
93
// Now send mice packets
94
 test.ps2_model.send_byte(8'h12);
95
 test.cg.next(2000);
96
 test.ps2_model.send_byte(8'h34);
97
 test.cg.next(2000);
98
 test.ps2_model.send_byte(8'h56);
99
 test.cg.next(2000);
100
 
101
 test.ps2_model.send_byte(8'h78);
102
 test.cg.next(2000);
103
 test.ps2_model.send_byte(8'h9a);
104
 test.cg.next(2000);
105
 test.ps2_model.send_byte(8'hbc);
106
 test.cg.next(2000);
107
 
108
 test.ps2_model.send_byte(8'hde);
109
 test.cg.next(2000);
110
 test.ps2_model.send_byte(8'hf0);
111
 test.cg.next(2000);
112
 test.ps2_model.send_byte(8'h01);
113
 test.cg.next(2000);
114
 
115
 test.ps2_model.send_byte(8'h23);
116
 test.cg.next(2000);
117
 test.ps2_model.send_byte(8'h45);
118
 test.cg.next(2000);
119
 test.ps2_model.send_byte(8'h67);
120
 test.cg.next(2000);
121
 
122
 test.ps2_model.send_byte(8'h89);
123
 test.cg.next(2000);
124
 test.ps2_model.send_byte(8'hab);
125
 test.cg.next(2000);
126
 test.ps2_model.send_byte(8'hcd);
127
 test.cg.next(2000);
128
 
129
 
130
 end
131
 join
132
 
133
 
134
 
135
test.cg.exit;
136
end
137
 
138
 
139
 
140
 
141
 
142
 
143
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.