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

Subversion Repositories socgen

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 131 jt_eaton
 
2
 
3
initial
4
 begin
5
 $display("              ");
6
 $display("          ===================================================");
7
 $display("%t    Start Test  ",$realtime );
8
 $display("          ===================================================");
9
 $display("              ");
10
 
11
 
12
 fork
13
 begin
14
 
15
 test.cg.next(12);
16
 
17
 test.cg.next(88);
18
 test.uart_host.txd_parity <= 1'b1;
19
 test.uart_host.rxd_parity <= 1'b1;
20
 test.uart_host.parity_enable <= 1'b1;
21
 test.uart_host.send_byte(8'h12);
22
 test.cg.next(30);
23
 test.uart_host.send_byte(8'h34);
24
 test.cg.next(30);
25
 test.uart_host.send_byte(8'h56);
26
 test.cg.next(30);
27
 test.uart_host.send_byte(8'h78);
28
 test.cg.next(30);
29
 test.uart_host.send_byte(8'h9a);
30
 test.cg.next(30);
31
 test.uart_host.send_byte(8'hbc);
32
 test.cg.next(30);
33
 test.uart_host.send_byte(8'hde);
34
 test.cg.next(30);
35
 test.uart_host.send_byte(8'hf0);
36
 test.cg.next(30);
37
 test.uart_host.send_byte(8'h12);
38
 test.cg.next(30);
39
 test.uart_host.send_byte(8'h34);
40
 
41
 
42
 test.cg.next(80000);
43
 test.uart_host.rcv_byte(8'h66);
44
 test.cg.next(100);
45
 
46
 test.uart_host.rcv_byte(8'h12);
47
 test.cg.next(100);
48
 
49
 test.uart_host.rcv_byte(8'h34);
50
 test.cg.next(100);
51
 
52
 test.uart_host.rcv_byte(8'h56);
53
 test.cg.next(100);
54
 test.uart_host.rcv_byte(8'h78);
55
 test.cg.next(100);
56
 test.uart_host.rcv_byte(8'h9a);
57
 test.cg.next(100);
58
 test.uart_host.rcv_byte(8'hbc);
59
 test.cg.next(100);
60
 
61
  end
62
 
63
 
64
 begin
65
 
66
 test.cg.next(20);
67
 test.uart_model.rx_parity_enable  <= 1'b1;
68
 test.uart_model.txd_parity_enable <= 1'b1;
69
 test.uart_model.rx_parity         <= 1'b1;
70
 test.uart_model.txd_parity        <= 1'b1;
71
 
72
 test.cg.next(10);
73
 test.uart_model.rcv_byte(8'h12);
74
 test.cg.next(10);
75
 test.uart_model.rcv_byte(8'h34);
76
 test.cg.next(10);
77
 test.uart_model.rcv_byte(8'h56);
78
 test.cg.next(10);
79
 test.uart_model.rcv_byte(8'h78);
80
 test.cg.next(10);
81
 test.uart_model.rcv_byte(8'h9a);
82
 test.cg.next(10);
83
 test.uart_model.rcv_byte(8'hbc);
84
 test.cg.next(10);
85
 test.uart_model.rcv_byte(8'hde);
86
 test.cg.next(10);
87
 test.uart_model.rcv_byte(8'hf0);
88
 test.cg.next(10);
89
 test.uart_model.rcv_byte(8'h12);
90
 test.cg.next(10);
91
 test.uart_model.rcv_byte(8'h34);
92
 test.cg.next(10);
93
 test.uart_model.send_byte(8'h66);
94
 test.cg.next(10);
95
 test.uart_model.send_byte(8'h12);
96
 test.cg.next(10);
97
 test.uart_model.send_byte(8'h34);
98
 test.cg.next(10);
99
 test.uart_model.send_byte(8'h56);
100
 test.cg.next(10);
101
 test.uart_model.send_byte(8'h78);
102
 test.cg.next(10);
103
 test.uart_model.send_byte(8'h9a);
104
 test.cg.next(10);
105
 test.uart_model.send_byte(8'hbc);
106
 
107
 
108
 
109
 
110
 
111
 
112
 end
113
 
114
 join
115
 test.cg.exit;
116
end
117
 
118
 
119
 
120
 

powered by: WebSVN 2.1.0

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