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

Subversion Repositories socgen

[/] [socgen/] [trunk/] [Projects/] [opencores.org/] [logic/] [ip/] [uart/] [sim/] [icarus/] [divide/] [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
 test.cg.next(100);
41
 test.uart_host.rcv_byte(8'h66);
42
 test.cg.next(100);
43
 
44
 test.uart_host.rcv_byte(8'h12);
45
 test.cg.next(100);
46
 
47
 test.uart_host.rcv_byte(8'h34);
48
 test.cg.next(100);
49
 
50
 test.uart_host.rcv_byte(8'h56);
51
 test.cg.next(100);
52
 
53
  end
54
 
55
 
56
 begin
57
 test.cg.next(20);
58
 test.uart_model.rx_parity_enable  <= 1'b1;
59
 test.uart_model.txd_parity_enable <= 1'b1;
60
 test.uart_model.rx_parity         <= 1'b1;
61
 test.uart_model.txd_parity        <= 1'b1;
62
 
63
 test.cg.next(10);
64
 test.uart_model.rcv_byte(8'h12);
65
 test.cg.next(10);
66
 test.uart_model.rcv_byte(8'h34);
67
 test.cg.next(10);
68
 test.uart_model.rcv_byte(8'h56);
69
 test.cg.next(10);
70
 test.uart_model.rcv_byte(8'h78);
71
 test.cg.next(10);
72
 test.uart_model.rcv_byte(8'h9a);
73
 test.cg.next(10);
74
 test.uart_model.rcv_byte(8'hbc);
75
 test.cg.next(10);
76
 test.uart_model.rcv_byte(8'hde);
77
 test.cg.next(10);
78
 test.uart_model.rcv_byte(8'hf0);
79
 test.cg.next(10);
80
 test.uart_model.rcv_byte(8'h12);
81
 test.cg.next(10);
82
 test.uart_model.rcv_byte(8'h34);
83
 test.cg.next(100);
84
 test.uart_model.send_byte(8'h66);
85
 test.cg.next(100);
86
 test.uart_model.send_byte(8'h12);
87
 test.cg.next(100);
88
 test.uart_model.send_byte(8'h34);
89
 test.cg.next(100);
90
 test.uart_model.send_byte(8'h56);
91
 end
92
 
93
 join
94
 test.cg.exit;
95
end
96
 
97
 
98
 
99
 

powered by: WebSVN 2.1.0

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