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

Subversion Repositories usbhostslave

[/] [usbhostslave/] [trunk/] [usbDevice/] [Aldec/] [design0/] [src/] [EP0.asf] - Blame information for rev 43

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 37 sfielding
VERSION=1.15
2
HEADER
3
FILE="EP0.asf"
4
FID=4788d213
5
LANGUAGE=VERILOG
6
ENTITY="EP0"
7
FRAMES=ON
8
FREEOID=1113
9
"LIBRARIES=//////////////////////////////////////////////////////////////////////\n////                                                              ////\n//// EP0.v                                                 ////\n////                                                              ////\n//// This file is part of the usbHostSlave opencores effort.\n////                            ////\n////                                                              ////\n//// Module Description:                                          ////\n//// Implements EP0 control endpoint\n//// Responds to 8-byte SETUP packets\n//// of type GET_STATUS, GET_DESCRIPTOR and\n//// SET_ADDRESS\n////                                                              ////\n//// To Do:                                                       ////\n//// \n////                                                              ////\n//// Author(s):                                                   ////\n//// - Steve Fielding, sfielding@base2designs.com                 ////\n////                                                              ////\n//////////////////////////////////////////////////////////////////////\n////                                                              ////\n//// Copyright (C) 2008 Steve Fielding and OPENCORES.ORG          ////\n////                                                              ////\n//// This source file may be used and distributed without         ////\n//// restriction provided that this copyright statement is not    ////\n//// removed from the file and that any derivative work contains  ////\n//// the original copyright notice and the associated disclaimer. ////\n////                                                              ////\n//// This source file is free software; you can redistribute it   ////\n//// and/or modify it under the terms of the GNU Lesser General   ////\n//// Public License as published by the Free Software Foundation; ////\n//// either version 2.1 of the License, or (at your option) any   ////\n//// later version.                                               ////\n////                                                              ////\n//// This source is distributed in the hope that it will be       ////\n//// useful, but WITHOUT ANY WARRANTY; without even the implied   ////\n//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////\n//// PURPOSE. See the GNU Lesser General Public License for more  ////\n//// details.                                                     ////\n////                                                              ////\n//// You should have received a copy of the GNU Lesser General    ////\n//// Public License along with this source; if not, download it   ////\n//// from                    ////\n////                                                              ////\n//////////////////////////////////////////////////////////////////////\n//\n`include \"timescale.v\"\n`include \"usbHostSlaveReg_define.v\"\n`include \"usbDevice_define.v\"\n\n"
10
END
11
BUNDLES
12
B T "Declarations" 0,0,255 0 0 1 255,255,255 0 3125 0 0000 1  "Arial" 0
13
B T "Conditions" 0,0,0 0 0 0 255,255,255 0 3125 0 0110 1  "Arial" 0
14
B F "States" 0,0,0 0 0 1 0,255,0 1 3527 1480 0000 1  "Arial" 0
15
B T "Actions" 0,0,0 0 0 1 255,255,255 0 3125 0 0000 1  "Arial" 0
16
B T "Labels" 0,0,0 0 0 0 255,255,255 0 3125 0 0000 1  "Arial" 0
17
B L "Transitions" 0,0,0 0 0 1 0,0,0 1 3527 1480 0000 1  "Arial" 0
18
B F "Ports" 0,0,0 0 0 1 0,255,255 1 3527 1480 0000 1  "Arial" 0
19
B L "Errors" 255,0,0 0 3 1 255,255,255 1 3527 1480 0000 1  "Arial" 0
20
B T "State Labels" 0,0,0 0 0 0 255,255,255 0 3125 0 0000 1  "Arial" 4
21
B F "Current State" 255,255,0 0 0 1 255,255,0 1 3527 1480 0000 1  "Arial" 0
22
B T "Comments" 157,157,157 0 0 1 255,255,255 0 3527 1480 0000 1  "Arial" 0
23
B L "Info" 0,255,0 0 3 1 255,255,255 1 3527 1480 0000 1  "Arial" 0
24
END
25
INSTHEADER 1
26
PAGE 25400,25400 215900,279400
27
UPPERLEFT 0,0
28
GRID=OFF
29
GRIDSIZE 5000,5000 10000,10000
30
END
31
INSTHEADER 433
32
PAGE 25400,25400 215900,279400
33
UPPERLEFT 0,0
34
GRID=OFF
35
GRIDSIZE 0,0 10000,10000
36
END
37
INSTHEADER 435
38
PAGE 25400,25400 215900,279400
39
UPPERLEFT 0,0
40
GRID=OFF
41
GRIDSIZE 0,0 10000,10000
42
END
43
INSTHEADER 484
44
PAGE 25400,25400 215900,279400
45
UPPERLEFT 0,0
46
GRID=OFF
47
GRIDSIZE 0,0 10000,10000
48
END
49
INSTHEADER 576
50
PAGE 25400,25400 215900,279400
51
UPPERLEFT 0,0
52
GRID=OFF
53
GRIDSIZE 0,0 10000,10000
54
END
55
INSTHEADER 627
56
PAGE 25400,25400 215900,279400
57
UPPERLEFT 0,0
58
GRID=OFF
59
GRIDSIZE 0,0 10000,10000
60
END
61
INSTHEADER 716
62
PAGE 25400,25400 215900,279400
63
UPPERLEFT 0,0
64
GRID=OFF
65
GRIDSIZE 0,0 10000,10000
66
END
67
INSTHEADER 756
68
PAGE 25400,25400 215900,279400
69
UPPERLEFT 0,0
70
GRID=OFF
71
GRIDSIZE 0,0 10000,10000
72
END
73
INSTHEADER 829
74
PAGE 25400,25400 215900,279400
75
UPPERLEFT 0,0
76
GRID=OFF
77
GRIDSIZE 0,0 10000,10000
78
END
79
INSTHEADER 718
80
PAGE 25400,25400 215900,279400
81
UPPERLEFT 0,0
82
GRID=OFF
83
GRIDSIZE 0,0 10000,10000
84
END
85
INSTHEADER 720
86
PAGE 25400,25400 215900,279400
87
UPPERLEFT 0,0
88
GRID=OFF
89
GRIDSIZE 0,0 10000,10000
90
END
91
OBJECTS
92
S 831 721 151552 ELLIPSE "States" | 145680,171360 6500 6500
93
L 830 831 0 TEXT "State Labels" | 145680,171360 1 0 0 "SET_ADDR\n/33/"
94
S 829 721 147460 ELLIPSE 0,0,0 0 0 1 0,255,255 1 | 146040,194400 6500 6500
95
L 828 829 0 TEXT "State Labels" | 146040,194400 1 0 0 "GET_DESC"
96
S 827 721 143360 ELLIPSE "States" | 145320,213120 6500 6500
97
L 826 827 0 TEXT "State Labels" | 145320,213120 1 0 0 "GET_STAT\n/32/"
98
C 825 823 0 TEXT "Conditions" | 71092,83196 1 0 0 "wb_ack == 1'b1"
99
A 824 823 16 TEXT "Actions" | 78820,70592 1 0 0 "wb_stb <= 1'b0;\nwValue[15:8] <= wb_data_i;"
100
W 823 757 0 792 802 BEZIER "Transitions" | 65559,83939 72275,78603 83788,68016 90251,65831\
101
                                           96714,63646 109134,65578 112653,75008 116172,84438\
102
                                           117828,120226 118357,140857 118886,161488 122227,209160\
103
                                           120341,226084 118456,243008 117042,237676 119071,252228\
104
                                           121101,266780 129059,264211 135366,263925
105
C 822 821 0 TEXT "Conditions" | 155548,85404 1 0 0 "wbBusGnt == 1'b0"
106
W 821 757 0 820 761 BEZIER "Transitions" | 150160,89614 163592,76044 186060,47668 199492,34098
107
S 820 757 139264 ELLIPSE "States" | 145888,94512 6500 6500
108
L 819 820 0 TEXT "State Labels" | 145888,94512 1 0 0 "WT_UNGNT\n/31/"
109
A 818 807 16 TEXT "Actions" | 146478,123188 1 0 0 "wb_stb <= 1'b0;\nwLength[15:8] <= wb_data_i;\nwbBusReq <= 1'b0;"
110
C 817 807 0 TEXT "Conditions" | 144878,132753 1 0 0 "wb_ack == 1'b1"
111
A 816 814 4 TEXT "Actions" | 155960,185231 1 0 0 "wb_stb <= 1'b1;"
112
G 1 0 0 TEXT 0,0,0 0 0 0 255,255,255 0 3527 1480 0000 1  "Arial" 0 | 110650,276400 1 0 0 "Module: EP0"
113
A 5 0 1 TEXT "Actions" | 30400,271392 1 0 0 "-- diagram ACTION"
114
F 6 0 512 72 0 RECT 0,0,0 0 0 1 255,255,255 0 | 28400,28400 212900,212603
115
L 7 6 0 TEXT "Labels" | 31673,209974 1 0 0 "EP0St"
116
W 1089 485 0 1085 1095 BEZIER "Transitions" | 125212,139108 125596,133108 49427,119475 42131,114819
117
C 1090 1089 0 TEXT "Conditions" | 115920,133773 1 0 0 "wb_ack == 1'b1"
118
A 1091 1089 16 TEXT "Actions" | 76138,128516 1 0 0 "wb_stb <= 1'b0;"
119
W 1092 485 0 508 515 BEZIER "Transitions" | 59048,201412 59144,196948 59459,190379 59555,185915
120
C 1093 1092 0 TEXT "Conditions" | 58512,198480 1 0 0 "cnt == 8'hff"
121
S 1095 485 229376 ELLIPSE "States" | 42368,108336 6500 6500
122
A 1096 1095 4 TEXT "Actions" | 55936,113636 1 0 0 "wb_addr <= `RA_SC_LINE_STATUS_REG;\nwb_stb <= 1'b1;\nwb_we <= 1'b0;"
123
L 1097 1095 0 TEXT "State Labels" | 42368,108336 1 0 0 "WT_CONN\n/46/"
124
W 1098 485 0 1095 524 BEZIER "Transitions" | 46784,103569 58928,95505 79104,78768 92568,77568\
125
                                             106032,76368 134712,86356 149496,92020
126
C 1099 1098 0 TEXT "Conditions" | 42576,75984 1 0 0 "(wb_ack == 1'b1) && (wb_data_i[1:0] == `FULL_SPEED_CONNECT)"
127
A 1101 1098 16 TEXT "Actions" | 62352,94128 1 0 0 "wb_stb <= 1'b0;"
128
L 1102 1103 0 TEXT "State Labels" | 142449,164834 1 0 0 "DEL\n/47/"
129
S 1103 443 233472 ELLIPSE "States" | 142449,164834 6500 6500
130
C 833 832 0 TEXT "Conditions" | 88800,217260 1 0 0 "bRequest == `GET_STATUS"
131
W 832 721 1 756 827 BEZIER "Transitions" | 76438,243508 76438,236758 76200,225270 77055,220995\
132
                                           77910,216720 81330,213120 89430,212400 97530,211680\
133
                                           124335,212512 138825,212872
134
L 570 571 0 TEXT "Labels" | 77651,239593 1 0 0 "txDataSize[7:0]"
135
I 571 0 130 Builtin Signal | 74651,239593 "" ""
136
I 572 0 130 Builtin Signal | 74747,234627 "" ""
137
L 573 572 0 TEXT "Labels" | 77747,234627 1 0 0 "txDataIndex[7:0]"
138
A 1104 1103 4 TEXT "Actions" | 160690,166171 1 0 0 "memRdEn <= 1'b0;"
139
W 1105 443 0 604 1103 BEZIER "Transitions" | 134066,177905 135641,175375 137374,172840 138949,170310
140
W 1106 443 0 1103 607 BEZIER "Transitions" | 138698,159527 136693,156806 135613,154644 133608,151923
141
L 1107 1108 0 TEXT "State Labels" | 152381,67042 1 0 0 "PTR_SET\n/48/"
142
S 1108 721 237568 ELLIPSE "States" | 152381,67042 6500 6500
143
A 1110 1108 4 TEXT "Actions" | 78942,102568 1 0 0 "if (txPacketRemSize > `MAX_RESP_SIZE) begin\n  txDataSize <= `MAX_RESP_SIZE;\n  txPacketRemSize <= txPacketRemSize - `MAX_RESP_SIZE;\nend\nelse begin\n  txDataSize <= txPacketRemSize;\n  txPacketRemSize <= 8'h00;\nend"
144
W 1111 721 0 1108 725 BEZIER "Transitions" | 157931,63661 168818,58361 189435,47130 195069,43955\
145
                                             200704,40780 200486,38998 200868,37948
146
W 1112 721 0 963 1108 BEZIER "Transitions" | 177140,79165 171649,76444 163667,72705 158176,69984
147
S 576 443 28676 ELLIPSE 0,0,0 0 0 1 255,0,0 1 | 67019,183707 3780 3780
148
L 577 576 0 TEXT "State Labels" | 66785,183895 1 0 0 "J2"
149
W 578 443 0 589 581 BEZIER "Transitions" | 50089,271133 53640,267847 58870,261756 62421,258470
150
S 579 443 24576 ELLIPSE "States" | 66317,231102 6500 6500
151
A 580 579 4 TEXT "Actions" | 78943,227786 1 0 0 "wb_addr <= `RA_EP0_TX_FIFO_CONTROL_REG;\nwb_data_o <= 8'h01; //force tx fifo empty\nwb_stb <= 1'b1;\nwb_we <= 1'b1;"
152
S 581 443 20480 ELLIPSE "States" | 65707,252862 6500 6500
153
L 582 581 0 TEXT "State Labels" | 65707,252862 1 0 0 "WT_GNT\n/5/"
154
A 583 581 4 TEXT "Actions" | 83515,254558 1 0 0 "wbBusReq <= 1'b1;"
155
W 585 443 1 576 604 BEZIER "Transitions" | 70798,183705 82453,183705 112107,183343 123816,183367
156
C 587 585 0 TEXT "Conditions" | 76226,189478 1 0 0 "txDataSize != 8'h00"
157
I 588 443 0 Builtin Exit | 202013,33571
158
I 589 443 0 Builtin Entry | 46379,271133
159
W 590 443 0 581 579 BEZIER "Transitions" | 65586,246409 65639,243865 65740,240120 65793,237576
160
C 591 590 0 TEXT "Conditions" | 67827,244806 1 0 0 "wbBusGnt == 1'b1"
161
H 599 576 0 RECT 0,0,0 0 0 1 255,255,255 0 | 28400,28400 212900,276400
162
L 595 579 0 TEXT "State Labels" | 66317,231102 1 0 0 "TX_EMPTY\n/6/"
163
W 596 599 0 598 597 BEZIER "Transitions" | 100230,182880 105316,175905 109388,157925 120824,149056
164
I 597 599 0 Builtin Exit | 123580,149056
165
I 598 599 0 Builtin Entry | 96520,182880
166
L 603 604 0 TEXT "State Labels" | 130314,183210 1 0 0 "RD_MEM\n/8/"
167
S 604 443 36864 ELLIPSE "States" | 130314,183210 6500 6500
168
A 605 604 4 TEXT "Actions" | 147534,185940 1 0 0 "memAddr <= txDataIndex;\nmemRdEn <= 1'b1;\ntxDataSize <= txDataSize - 1'b1;\ntxDataIndex <= txDataIndex + 1'b1;"
169
L 606 607 0 TEXT "State Labels" | 131708,145710 1 0 0 "WR_TX_FIFO\n/7/"
170
S 607 443 32768 ELLIPSE "States" | 131708,145710 6500 6500
171
I 892 889 0 Builtin Entry | 38008,268256
172
H 889 829 0 RECT 0,0,0 0 0 1 255,255,255 0 | 28400,28400 212900,276400
173
I 74 0 2 Builtin InPort | 195700,267632 "" ""
174
L 73 74 0 TEXT "Labels" | 201700,267632 1 0 0 "rst"
175
I 72 0 3 Builtin InPort | 195700,272800 "" ""
176
L 71 72 0 TEXT "Labels" | 201700,272800 1 0 0 "clk"
177
A 610 607 4 TEXT "Actions" | 144806,154759 1 0 0 "wb_data_o <= memData;\nwb_addr <= `RA_EP0_TX_FIFO_DATA_REG;\nwb_stb <= 1'b1;\nwb_we <= 1'b1;"
178
L 611 612 0 TEXT "State Labels" | 133464,116430 1 0 0 "CHK_TX_DONE\n/9/"
179
S 612 443 40960 ELLIPSE "States" | 133464,116430 6500 6500
180
W 613 443 0 607 612 BEZIER "Transitions" | 131632,139220 131812,133487 132447,128407 132428,122842
181
C 614 613 0 TEXT "Conditions" | 109920,137705 1 0 0 "wb_ack == 1'b1"
182
A 615 613 16 TEXT "Actions" | 131042,132247 1 0 0 "wb_stb <= 1'b0;"
183
S 616 443 45056 ELLIPSE "States" | 56781,109882 6500 6500
184
A 617 616 4 TEXT "Actions" | 75530,105258 1 0 0 "wb_addr <= `RA_EP0_CONTROL_REG;\nif (dataSeq == 1'b1)\n  wb_data_o <= 8'h07; \nelse\n  wb_data_o <= 8'h03; \nwb_stb <= 1'b1;\nwb_we <= 1'b1;"
185
L 618 616 0 TEXT "State Labels" | 56781,109882 1 0 0 "TRANS_GO\n/10/"
186
W 619 443 0 616 627 BEZIER "Transitions" | 56746,103393 56799,100213 58679,65431 58646,61903
187
A 620 619 16 TEXT "Actions" | 37650,86574 1 0 0 "wb_stb <= 1'b0;"
188
C 621 619 0 TEXT "Conditions" | 34482,100249 1 0 0 "wb_ack == 1'b1"
189
W 622 443 1 612 616 BEZIER "Transitions" | 127111,117802 118659,119219 102226,122363 93695,121890\
190
                                           85164,121418 70939,115628 62329,113266
191
C 623 622 0 TEXT "Conditions" | 87054,125880 1 0 0 "txDataSize == 8'h00"
192
C 897 896 0 TEXT "Conditions" | 86815,197702 1 0 0 "bRequest == `GET_DESCRIPTOR"
193
W 896 721 2 756 829 BEZIER "Transitions" | 76084,243537 76173,230972 75238,208651 75731,201965\
194
                                           76224,195279 78020,193662 86501,193303 94982,192944\
195
                                           123490,193875 139555,193964
196
W 624 443 2 612 604 BEZIER "Transitions" | 128097,120095 118385,125397 100126,136538 95742,142837\
197
                                           91359,149137 93249,163733 97764,168536 102279,173340\
198
                                           116285,178270 124370,180580
199
W 625 443 2 576 616 BEZIER "Transitions" | 66405,179981 64200,163339 59790,132966 57585,116324
200
L 626 627 0 TEXT "State Labels" | 59948,55540 1 0 0 "WT_TRANS_DONE"
201
S 627 443 49156 ELLIPSE 0,0,0 0 0 1 0,255,255 1 | 59948,55540 6500 6500
202
S 100 6 196608 ELLIPSE "States" | 112176,193512 6500 6500
203
L 99 100 0 TEXT "State Labels" | 112176,193512 1 0 0 "START\n/44/"
204
H 650 627 0 RECT 0,0,0 0 0 1 255,255,255 0 | 28400,28400 212900,276400
205
I 653 650 0 Builtin Entry | 41566,267228
206
I 654 650 0 Builtin Exit | 197817,37572
207
C 389 388 0 TEXT "Conditions" | 60416,196339 1 0 0 "rst == 1'b1"
208
W 388 6 0 387 100 BEZIER "Transitions" | 49555,202550 64193,201024 91216,196545 105854,195019
209
I 387 6 0 Builtin Reset | 49555,202550
210
W 657 443 0 627 588 BEZIER "Transitions" | 66297,56929 80114,57860 104701,61151 121933,57942\
211
                                           139166,54734 178674,40919 199322,33571
212
W 658 650 0 660 663 BEZIER "Transitions" | 80070,185399 80123,182855 80224,179110 80277,176566
213
C 659 658 0 TEXT "Conditions" | 82311,183796 1 0 0 "wbBusGnt == 1'b1"
214
S 660 650 53248 ELLIPSE "States" | 80191,191852 6500 6500
215
A 661 660 4 TEXT "Actions" | 97999,193548 1 0 0 "wbBusReq <= 1'b1;"
216
L 662 660 0 TEXT "State Labels" | 80191,191852 1 0 0 "WT_GNT\n/11/"
217
S 663 650 57344 ELLIPSE "States" | 80801,170092 6500 6500
218
A 664 663 4 TEXT "Actions" | 97363,177436 1 0 0 "wb_addr <= `RA_EP0_CONTROL_REG;\nwb_stb <= 1'b1;\nwb_we <= 1'b0;"
219
L 665 663 0 TEXT "State Labels" | 80801,170092 1 0 0 "GET_RDY_STS\n/12/"
220
W 666 650 0 663 671 BEZIER "Transitions" | 80766,163603 80819,160423 75553,87685 75520,84157
221
A 667 666 16 TEXT "Actions" | 64401,127355 1 0 0 "wb_stb <= 1'b0;\ntransDone <= ~wb_data_i[`ENDPOINT_READY_BIT];"
222
C 668 666 0 TEXT "Conditions" | 57855,156703 1 0 0 "wb_ack == 1'b1"
223
L 670 671 0 TEXT "State Labels" | 74949,77688 1 0 0 "WT_UNGNT\n/13/"
224
S 671 650 61440 ELLIPSE "States" | 74949,77688 6500 6500
225
W 958 889 0 954 957 BEZIER "Transitions" | 96605,229505 96649,223961 97092,214792 97136,209248
226
I 957 889 0 Builtin Exit | 97136,207312
227
W 956 889 0 892 954 BEZIER "Transitions" | 38008,266320 37964,258576 37692,243392 38572,239036\
228
                                           39452,234680 43060,232744 50100,232678 57140,232612\
229
                                           78050,234430 90326,235266
230
A 955 954 4 TEXT "Actions" | 134536,257560 1 0 0 "case (wValue[15:8])\n  `DEV_DESC: begin\n    txPacketRemSize <= `DEV_DESC_SIZE;\n    txDataIndex <= `DEV_DESC_INDEX;\n  end\n  `CFG_DESC: begin\n    txPacketRemSize <= `CFG_DESC_SIZE;\n    txDataIndex <= `CFG_DESC_INDEX;\n  end\n  `REP_DESC: begin\n    txPacketRemSize <= `REP_DESC_SIZE;\n    txDataIndex <= `REP_DESC_INDEX;\n  end\n  `STRING_DESC: begin\n    case (wValue[3:0])\n      4'h0: begin\n        txPacketRemSize <= `LANGID_DESC_SIZE;\n        txDataIndex <= `LANGID_DESC_INDEX;\n      end\n      4'h1: begin\n        txPacketRemSize <= `STRING1_DESC_SIZE;\n        txDataIndex <= `STRING1_DESC_INDEX;\n      end\n      4'h2: begin\n        txPacketRemSize <= `STRING2_DESC_SIZE;\n        txDataIndex <= `STRING2_DESC_INDEX;\n      end\n      4'h3: begin\n        txPacketRemSize <= `STRING3_DESC_SIZE;\n        txDataIndex <= `STRING3_DESC_INDEX;\n      end\n    endcase\n  end\nendcase"
231
S 954 889 155648 ELLIPSE "States" | 96784,236000 6500 6500
232
L 953 954 0 TEXT "State Labels" | 96784,236000 1 0 0 "S1\n/34/"
233
A 952 827 4 TEXT "Actions" | 110300,270290 1 0 0 "if (bm_req_type == 2'b00)  begin\n  txPacketRemSize <= 8'h02;\n  if (bm_req_recp == 5'b00000)\n    txDataIndex <= `ONE_ZERO_STAT_INDEX;\n  else\n    txDataIndex <= `ZERO_ZERO_STAT_INDEX;\nend\nelse if (bm_req_type == 2'b10) begin\n  txDataIndex <= `VENDOR_DATA_STAT_INDEX;\n  txPacketRemSize <= 8'h02;\nend"
234
C 951 950 0 TEXT "Conditions" | 85803,175564 1 0 0 "bRequest == `SET_ADDRESS"
235
W 950 721 3 756 831 BEZIER "Transitions" | 76316,243513 76063,225937 74733,192802 75831,183169\
236
                                           76930,173536 81832,170156 90112,169649 98393,169142\
237
                                           125076,170390 139187,171066
238
A 949 831 4 TEXT "Actions" | 51283,157308 1 0 0 "if ( (wValue[15:7] == {9{1'b0}}) && (wIndex == 16'h0000) && (wLength == 16'h0000) ) begin\n  USBAddress <= wValue[7:0];\n  updateUSBAddress <= 1'b1; \nend"
239
C 687 686 0 TEXT "Conditions" | 70215,206772 1 0 0 "wb_ack == 1'b1"
240
W 686 450 0 683 699 BEZIER "Transitions" | 67876,208091 68035,204540 69445,190397 69388,186682
241
A 685 683 4 TEXT "Actions" | 81161,219883 1 0 0 "wb_addr <= `RA_EP0_STATUS_REG;\nwb_stb <= 1'b1;\nwb_we <= 1'b0;"
242
L 684 683 0 TEXT "State Labels" | 67593,214583 1 0 0 "RD_STAT\n/15/"
243
S 683 450 69632 ELLIPSE "States" | 67593,214583 6500 6500
244
A 672 671 4 TEXT "Actions" | 93930,80240 1 0 0 "wbBusReq <= 1'b0;"
245
L 674 675 0 TEXT "State Labels" | 75587,50892 1 0 0 "CHK_DONE\n/14/"
246
S 675 650 65536 ELLIPSE "States" | 75587,50892 6500 6500
247
W 676 650 0 671 675 BEZIER "Transitions" | 74787,71229 74866,66763 74949,61824 75028,57358
248
C 677 676 0 TEXT "Conditions" | 74152,69075 1 0 0 "wbBusGnt == 1'b0"
249
W 678 650 1 675 654 BEZIER "Transitions" | 82063,50346 110842,47087 166335,40831 195114,37572
250
C 679 678 0 TEXT "Conditions" | 109319,51405 1 0 0 "transDone == 1'b1"
251
W 680 650 0 653 660 BEZIER "Transitions" | 45528,267228 54483,249952 68565,215051 77520,197775
252
A 681 680 16 TEXT "Actions" | 53844,248262 1 0 0 "transDone <= 1'b0;"
253
I 974 970 0 Builtin Exit | 201084,36544
254
I 973 970 0 Builtin Entry | 37640,268992
255
H 970 718 0 RECT 0,0,0 0 0 1 255,255,255 0 | 28400,28400 212900,276400
256
W 969 721 4 756 725 BEZIER "Transitions" | 73449,244406 67774,232316 56014,209963 52272,201574\
257
                                           48530,193185 44910,183808 44211,174637 43512,165467\
258
                                           44335,138159 48529,122326 52724,106494 68681,70467\
259
                                           82128,61502 95576,52537 133412,52702 146736,51838\
260
                                           160060,50975 175524,47355 181240,45299 186956,43243\
261
                                           194206,38246 197907,35943
262
W 967 721 0 827 963 BEZIER "Transitions" | 151749,212167 162226,211177 181853,208830 188164,207345\
263
                                           194475,205860 198765,201900 197857,186761 196950,171623\
264
                                           188193,116474 184233,88177
265
W 966 721 0 829 963 BEZIER "Transitions" | 152536,194612 160868,194447 175088,194475 180079,193650\
266
                                           185070,192825 188370,189855 188535,176531 188700,163208\
267
                                           185027,113403 183707,88241
268
W 965 721 0 831 963 BEZIER "Transitions" | 152161,171855 160246,171030 175005,170715 179088,169106\
269
                                           183172,167498 183338,162712 183090,152317 182843,141923\
270
                                           183278,106650 182701,88253
271
A 964 963 4 TEXT "Actions" | 132945,115035 1 0 0 "if (txPacketRemSize > wLength)\n  txPacketRemSize <= wLength;"
272
S 963 721 159744 ELLIPSE "States" | 183090,81780 6500 6500
273
L 962 963 0 TEXT "State Labels" | 183090,81780 1 0 0 "CHK_MAX_LEN\n/35/"
274
W 703 450 0 705 711 BEZIER "Transitions" | 72094,140370 72253,136819 74502,121202 74445,117487
275
A 702 697 16 TEXT "Actions" | 67545,166122 1 0 0 "wb_stb <= 1'b0;\nrxDataSize[15:8] <= wb_data_i;"
276
L 701 699 0 TEXT "State Labels" | 69399,180714 1 0 0 "RD_RX_SIZE1\n/17/"
277
A 700 699 4 TEXT "Actions" | 82967,186014 1 0 0 "wb_addr <= `RA_EP0_RX_FIFO_DATA_COUNT_MSB;\nwb_stb <= 1'b1;\nwb_we <= 1'b0;"
278
S 699 450 77824 ELLIPSE "States" | 69399,180714 6500 6500
279
C 698 697 0 TEXT "Conditions" | 72107,172903 1 0 0 "wb_ack == 1'b1"
280
W 697 450 0 699 705 BEZIER "Transitions" | 69682,174222 69841,170671 72070,157057 72013,153342
281
C 696 695 0 TEXT "Conditions" | 66173,233440 1 0 0 "wbBusGnt == 1'b1"
282
W 695 450 0 692 683 BEZIER "Transitions" | 66810,236404 66810,231900 67051,225557 67051,221053
283
A 694 693 16 TEXT "Actions" | 51431,263561 1 0 0 "wbBusReq <= 1'b1;"
284
W 693 450 0 453 692 BEZIER "Transitions" | 45899,268890 51404,263203 58036,254207 63541,248520
285
S 692 450 73728 ELLIPSE "States" | 66810,242904 6500 6500
286
L 691 692 0 TEXT "State Labels" | 66810,242904 1 0 0 "WT_GNT\n/16/"
287
A 688 686 16 TEXT "Actions" | 65257,200004 1 0 0 "wb_stb <= 1'b0;\nepStatus <= wb_data_i;"
288
L 991 992 0 TEXT "State Labels" | 38750,241828 1 0 0 "CHK_ACK\n/37/"
289
C 990 985 0 TEXT "Conditions" | 70644,44491 1 0 0 "epTransType == `SC_OUTDATA_TRANS"
290
C 989 984 0 TEXT "Conditions" | 70644,62738 1 0 0 "epTransType == `SC_IN_TRANS"
291
W 988 6 5 435 433 BEZIER "Transitions" | 68713,91889 78159,90820 94604,86977 107197,87883\
292
                                         119791,88790 151260,94359 158156,99797 165052,105236\
293
                                         161166,121425 155533,127996 149900,134568 131252,144670\
294
                                         121119,145414 110986,146159 89099,139036 82171,136155\
295
                                         75244,133274 71271,130287 68358,128086
296
C 987 986 0 TEXT "Conditions" | 80782,97297 1 0 0 "(epStatus & 8'h0f) != 8'h00"
297
W 986 6 1 435 433 BEZIER "Transitions" | 69121,93300 85505,93256 116425,90863 126363,93355\
298
                                         136302,95848 143296,105690 144040,109963 144785,114237\
299
                                         140770,121489 138245,123528 135720,125568 129633,126475\
300
                                         120536,126733 111439,126992 84705,125187 69554,125251
301
W 985 6 4 435 720 BEZIER "Transitions" | 62339,87911 62513,76035 61993,54233 62811,47683\
302
                                         63630,41133 66774,38251 76828,37956 86882,37661\
303
                                         122506,38677 141042,39528
304
W 984 6 3 435 718 BEZIER "Transitions" | 62077,87922 62307,80316 61927,67398 62942,63042\
305
                                         63957,58687 67757,56329 77843,56001 87930,55674\
306
                                         121635,57270 139909,57794
307
I 981 977 0 Builtin Exit | 202766,35308
308
I 980 977 0 Builtin Entry | 37800,268391
309
L 979 978 0 TEXT "State Labels" | 38809,237911 1 0 0 "CHK_SEQ\n/36/"
310
S 978 977 163840 ELLIPSE "States" | 38809,237911 6500 6500
311
H 977 720 0 RECT 0,0,0 0 0 1 255,255,255 0 | 28400,28400 212900,276400
312
L 719 720 0 TEXT "State Labels" | 147541,39589 1 0 0 "OUT"
313
S 718 6 212996 ELLIPSE 0,0,0 0 0 1 0,255,255 1 | 146393,58244 6500 6500
314
L 717 718 0 TEXT "State Labels" | 146393,58244 1 0 0 "IN"
315
S 716 6 208900 ELLIPSE 0,0,0 0 0 1 0,255,255 1 | 146967,76612 6500 6500
316
L 715 716 0 TEXT "State Labels" | 146967,76612 1 0 0 "SETUP"
317
C 714 709 0 TEXT "Conditions" | 77240,102705 1 0 0 "wb_ack == 1'b1"
318
A 713 711 4 TEXT "Actions" | 88291,116308 1 0 0 "wb_addr <= `RA_EP0_TRANSTYPE_STATUS_REG;\nwb_stb <= 1'b1;\nwb_we <= 1'b0;"
319
L 712 711 0 TEXT "State Labels" | 74723,111008 1 0 0 "RD_TRANS_TYPE\n/19/"
320
S 711 450 86016 ELLIPSE "States" | 74723,111008 6500 6500
321
A 710 709 16 TEXT "Actions" | 71433,90893 1 0 0 "wb_stb <= 1'b0;\nepTransType <= wb_data_i;"
322
W 709 450 0 711 730 BEZIER "Transitions" | 75072,104520 75292,101661 75496,80446 76628,73323
323
C 708 703 0 TEXT "Conditions" | 74502,138871 1 0 0 "wb_ack == 1'b1"
324
A 707 705 4 TEXT "Actions" | 85379,152162 1 0 0 "wb_addr <= `RA_EP0_RX_FIFO_DATA_COUNT_LSB;\nwb_stb <= 1'b1;\nwb_we <= 1'b0;"
325
L 706 705 0 TEXT "State Labels" | 71811,146862 1 0 0 "RD_RX_SIZE2\n/18/"
326
S 705 450 81920 ELLIPSE "States" | 71811,146862 6500 6500
327
A 704 703 16 TEXT "Actions" | 69860,131262 1 0 0 "wb_stb <= 1'b0;\nrxDataSize[7:0] <= wb_data_i;"
328
L 432 433 0 TEXT "State Labels" | 63138,124215 1 0 0 "DO_TRANS"
329
S 433 6 204804 ELLIPSE 0,0,0 0 0 1 0,255,255 1 | 63138,124215 6500 6500
330
L 434 435 0 TEXT "State Labels" | 62714,94389 1 0 0 "CHK_TRANS"
331
S 435 6 200708 ELLIPSE 0,0,0 0 0 1 0,255,255 1 | 62714,94389 6500 6500
332
H 443 433 0 RECT 0,0,0 0 0 1 255,255,255 0 | 28400,28400 212900,276400
333
A 1007 1005 4 TEXT "Actions" | 128957,247758 1 0 0 "wbBusReq <= 1'b1;\nupdateUSBAddress <= 1'b0;"
334
L 1006 1005 0 TEXT "State Labels" | 111149,246062 1 0 0 "WT_GNT\n/40/"
335
S 1005 970 180224 ELLIPSE "States" | 111149,246062 6500 6500
336
A 1004 1003 4 TEXT "Actions" | 128321,231646 1 0 0 "wb_addr <= `RA_SC_ADDRESS;\nwb_data_o <= USBAddress; \nwb_stb <= 1'b1;\nwb_we <= 1'b1;"
337
S 1003 970 176128 ELLIPSE "States" | 111759,224302 6500 6500
338
A 1002 1000 4 TEXT "Actions" | 126800,110413 1 0 0 "if (txPacketRemSize > `MAX_RESP_SIZE) begin\n  txDataSize <= `MAX_RESP_SIZE;\n  txPacketRemSize <= txPacketRemSize - `MAX_RESP_SIZE;\nend\nelse begin\n  txDataSize <= txPacketRemSize;\n  txPacketRemSize <= 8'h00;\nend"
339
S 1000 970 172032 ELLIPSE "States" | 108915,107493 6500 6500
340
L 999 1000 0 TEXT "State Labels" | 108915,107493 1 0 0 "SET_PTR\n/38/"
341
I 998 0 130 Builtin Signal | 74850,244256 "" ""
342
L 997 998 0 TEXT "Labels" | 77850,244256 1 0 0 "txPacketRemSize[7:0]"
343
C 996 994 0 TEXT "Conditions" | 62939,41019 1 0 0 "epStatus[`SC_ACK_RXED_BIT] != 1'b1"
344
W 994 970 1 992 974 BEZIER "Transitions" | 38627,235330 37985,186795 36456,91449 37327,65989\
345
                                           38199,40529 43009,35488 61615,34980 80221,34473\
346
                                           159613,35810 198148,36544
347
W 993 970 0 973 992 BEZIER "Transitions" | 37640,266790 37640,261010 37968,254059 37968,248279
348
S 992 970 167936 ELLIPSE "States" | 38750,241828 6500 6500
349
I 735 450 0 Builtin Exit | 78396,39528
350
L 734 730 0 TEXT "State Labels" | 77721,66917 1 0 0 "WT_UNGNT\n/20/"
351
C 733 732 0 TEXT "Conditions" | 77069,57247 1 0 0 "wbBusGnt == 1'b0"
352
W 732 450 0 730 735 BEZIER "Transitions" | 77738,60732 77817,56266 78317,45963 78396,41497
353
A 731 730 4 TEXT "Actions" | 96702,69469 1 0 0 "wbBusReq <= 1'b0;"
354
S 730 450 90112 ELLIPSE "States" | 77721,66917 6500 6500
355
C 729 728 0 TEXT "Conditions" | 69199,80672 1 0 0 "epTransType == `SC_SETUP_TRANS"
356
W 728 6 2 435 716 BEZIER "Transitions" | 62421,87898 62634,84876 62733,80199 63665,78370\
357
                                         64598,76541 68042,75248 74678,75140 81315,75033\
358
                                         128875,76431 140471,76412
359
I 725 721 0 Builtin Exit | 200868,35943
360
I 724 721 0 Builtin Entry | 38956,269226
361
H 721 716 0 RECT 0,0,0 0 0 1 255,255,255 0 | 28400,28400 212900,276400
362
S 720 6 217092 ELLIPSE 0,0,0 0 0 1 0,255,255 1 | 147541,39589 6500 6500
363
H 450 435 0 RECT 0,0,0 0 0 1 255,255,255 0 | 28400,28400 212900,276400
364
I 453 450 0 Builtin Entry | 41986,268890
365
W 459 6 0 433 435 BEZIER "Transitions" | 62976,117735 62976,112485 62852,106294 62762,100805
366
S 1023 443 188416 ELLIPSE "States" | 134708,254716 6500 6500
367
L 1022 1023 0 TEXT "State Labels" | 134708,254716 1 0 0 "RX_EMPTY\n/42/"
368
W 1021 970 0 1000 974 BEZIER "Transitions" | 109274,101015 110184,89367 111582,68912 122911,60676\
369
                                             134241,52441 176423,41367 198172,36544
370
W 1020 970 3 992 1000 BEZIER "Transitions" | 41850,236116 57411,204357 90178,144921 105739,113162
371
C 1019 1018 0 TEXT "Conditions" | 113493,176474 1 0 0 "wbBusGnt == 1'b0"
372
W 1018 970 0 1017 1000 BEZIER "Transitions" | 112403,181095 111448,163714 110127,131350 109172,113969
373
S 1017 970 184320 ELLIPSE "States" | 112674,187576 6500 6500
374
L 1016 1017 0 TEXT "State Labels" | 112674,187576 1 0 0 "WT_UNGNT\n/41/"
375
C 1015 1014 0 TEXT "Conditions" | 48469,252925 1 0 0 "updateUSBAddress == 1'b1"
376
W 1014 970 2 992 1005 BEZIER "Transitions" | 44994,243632 60509,246544 87608,250662 104654,245830
377
L 1013 1003 0 TEXT "State Labels" | 111759,224302 1 0 0 "SET_ADDR\n/39/"
378
A 1012 1010 16 TEXT "Actions" | 98203,208853 1 0 0 "wb_stb <= 1'b0;\nwbBusReq <= 1'b0;"
379
C 1011 1010 0 TEXT "Conditions" | 89366,216390 1 0 0 "wb_ack == 1'b1"
380
W 1010 970 0 1003 1017 BEZIER "Transitions" | 111724,217813 111777,214633 112420,197589 112387,194061
381
C 1009 1008 0 TEXT "Conditions" | 113269,238006 1 0 0 "wbBusGnt == 1'b1"
382
W 1008 970 0 1005 1003 BEZIER "Transitions" | 111028,239609 111081,237065 111182,233320 111235,230776
383
I 745 0 130 Builtin Signal | 74905,218191 "" ""
384
L 744 745 0 TEXT "Labels" | 77521,217999 1 0 0 "rxDataSize[15:0]"
385
I 743 0 130 Builtin Signal | 74936,222496 "" ""
386
L 742 743 0 TEXT "Labels" | 77936,222496 1 0 0 "epStatus[7:0]"
387
I 741 0 130 Builtin Signal | 74714,227615 "" ""
388
L 740 741 0 TEXT "Labels" | 78098,227423 1 0 0 "epTransType[7:0]"
389
S 737 721 94208 ELLIPSE "States" | 40282,250972 6500 6500
390
L 736 737 0 TEXT "State Labels" | 40282,250972 1 0 0 "CHK_ERR\n/21/"
391
I 471 0 130 Builtin OutPort | 120974,258272 "" ""
392
L 472 471 0 TEXT "Labels" | 126974,258272 1 0 0 "wb_addr[7:0]"
393
I 473 0 2 Builtin OutPort | 121470,234129 "" ""
394
L 474 473 0 TEXT "Labels" | 127470,234129 1 0 0 "wb_we"
395
I 475 0 2 Builtin OutPort | 121470,239089 "" ""
396
L 476 475 0 TEXT "Labels" | 127470,239089 1 0 0 "wb_stb"
397
I 477 0 130 Builtin OutPort | 121232,248761 "" ""
398
L 478 477 0 TEXT "Labels" | 127232,248761 1 0 0 "wb_data_o[7:0]"
399
I 479 0 130 Builtin InPort | 123454,253473 "" ""
400
W 1038 6 0 720 433 BEZIER "Transitions" | 151135,45004 155102,52249 162483,64635 166392,74065\
401
                                          170302,83495 178008,106725 179186,115810 180365,124895\
402
                                          177375,138005 173637,142777 169900,147550 157940,153530\
403
                                          151960,155628 145980,157727 134020,160143 127752,160516\
404
                                          121485,160890 108375,159970 101791,158619 95208,157268\
405
                                          81982,152782 77382,150885 72783,148988 67607,145882\
406
                                          66112,143180 64618,140478 64050,134541 63648,130689
407
W 1037 6 0 718 433 BEZIER "Transitions" | 150688,63120 155058,71055 164610,84875 167542,91343\
408
                                          170475,97812 173465,107818 173752,113539 174040,119260\
409
                                          172200,132140 168232,137430 164265,142720 150235,151000\
410
                                          142731,153328 135228,155657 119242,156693 111940,156060\
411
                                          104638,155428 91412,151862 85806,150022 80200,148183\
412
                                          71000,144387 68441,141886 65883,139385 64872,133700\
413
                                          64355,130595
414
W 1036 6 0 716 433 BEZIER "Transitions" | 151320,81438 156092,86728 164898,96490 166766,103016\
415
                                          168635,109542 166565,125068 162482,131651 158400,138235\
416
                                          144140,149045 136464,151287 128788,153530 112342,151690\
417
                                          104292,150051 96243,148413 80487,143697 75600,140995\
418
                                          70713,138293 67816,133136 65919,130089
419
A 1035 1034 16 TEXT "Actions" | 80424,187044 1 0 0 "dataSeq <= ~dataSeq;"
420
W 1034 977 2 978 981 BEZIER "Transitions" | 42955,232907 83215,182582 159578,85633 199838,35308
421
C 1033 1032 0 TEXT "Conditions" | 57366,41559 1 0 0 "epStatus[`SC_DATA_SEQUENCE_BIT] != dataSeq"
422
W 1032 977 1 978 981 BEZIER "Transitions" | 38745,231423 38287,184264 37373,91174 37832,66585\
423
                                            38291,41997 41044,37959 61641,36858 82239,35758\
424
                                            160011,35491 199830,35308
425
W 1031 977 0 980 978 BEZIER "Transitions" | 37800,266189 37891,260042 38628,250536 38719,244389
426
A 1030 1028 16 TEXT "Actions" | 158488,238316 1 0 0 "wb_stb <= 1'b0;"
427
C 1029 1028 0 TEXT "Conditions" | 145614,251518 1 0 0 "wb_ack == 1'b1"
428
W 1028 443 0 1023 576 BEZIER "Transitions" | 139970,250901 147637,245530 161973,235323 166319,229419\
429
                                             170665,223515 172715,210641 168533,207443 164351,204245\
430
                                             145573,204327 132535,204306 119497,204286 86123,204122\
431
                                             77574,203220 69026,202318 68206,198874 67898,196639\
432
                                             67591,194405 67341,190212 67136,187465
433
A 1027 1024 16 TEXT "Actions" | 106992,243728 1 0 0 "wb_stb <= 1'b0;"
434
C 1026 1024 0 TEXT "Conditions" | 82966,232330 1 0 0 "wb_ack == 1'b1"
435
A 1025 1023 4 TEXT "Actions" | 134708,273248 1 0 0 "wb_addr <= `RA_EP0_RX_FIFO_CONTROL_REG;\nwb_data_o <= 8'h01; //force rx fifo empty\nwb_stb <= 1'b1;\nwb_we <= 1'b1;"
436
W 1024 443 0 579 1023 BEZIER "Transitions" | 72756,231983 81981,232721 99735,234626 105454,239197\
437
                                             111174,243769 115602,260579 118287,264863 120973,269148\
438
                                             127287,269476 129111,268287 130936,267098 131897,263328\
439
                                             132389,260786
440
A 767 765 4 TEXT "Actions" | 70225,209519 1 0 0 "wb_stb <= 1'b1;"
441
L 766 765 0 TEXT "State Labels" | 56657,204219 1 0 0 "DAT1\n/22/"
442
S 765 757 102400 ELLIPSE "States" | 56657,204219 6500 6500
443
W 764 721 2 737 756 BEZIER "Transitions" | 46780,251089 53551,251180 63542,250698 70313,250789
444
I 761 757 0 Builtin Exit | 202344,34098
445
I 760 757 0 Builtin Entry | 38956,270702
446
H 757 756 0 RECT 0,0,0 0 0 1 255,255,255 0 | 28400,28400 212900,276400
447
S 756 721 98308 ELLIPSE 0,0,0 0 0 1 0,255,255 1 | 76764,249996 6500 6500
448
L 755 756 0 TEXT "State Labels" | 76764,249996 1 0 0 "GET_DATA"
449
C 754 753 0 TEXT "Conditions" | 58464,41925 1 0 0 "rxDataSize != 16'h0008"
450
W 753 721 1 737 725 BEZIER "Transitions" | 40052,244483 39320,194524 36870,96093 36824,69741\
451
                                           36778,43389 38060,37899 58464,36663 78868,35428\
452
                                           157772,35669 197940,35943
453
W 752 721 0 724 737 BEZIER "Transitions" | 38956,267030 39047,264377 39176,260043 39267,257390
454
L 480 479 0 TEXT "Labels" | 129454,253473 1 0 0 "wb_data_i[7:0]"
455
I 481 0 2 Builtin InPort | 123702,243801 "" ""
456
L 482 481 0 TEXT "Labels" | 129702,243801 1 0 0 "wb_ack"
457
L 483 484 0 TEXT "State Labels" | 46548,147798 1 0 0 "INIT"
458
S 484 6 221188 ELLIPSE 0,0,0 0 0 1 0,255,255 1 | 46548,147798 6500 6500
459
H 485 484 0 RECT 0,0,0 0 0 1 255,255,255 0 | 28400,28400 212900,276400
460
S 486 485 0 ELLIPSE "States" | 58746,236352 6500 6500
461
L 487 486 0 TEXT "State Labels" | 58746,236352 1 0 0 "RST\n/0/"
462
I 488 485 0 Builtin Entry | 38008,268952
463
I 489 485 0 Builtin Exit | 156088,64010
464
L 494 495 0 TEXT "Labels" | 94710,263444 1 0 0 "initComplete"
465
I 495 0 2 Builtin OutPort | 88710,263444 "" ""
466
I 1051 0 130 Builtin Signal | 121948,219040 "" ""
467
L 1050 1051 0 TEXT "Labels" | 124948,219040 1 0 0 "cnt[7:0]"
468
A 1049 1043 4 TEXT "Actions" | 45197,183834 1 0 0 "cnt <= cnt + 1'b1;"
469
C 1048 1047 0 TEXT "Conditions" | 34477,205359 1 0 0 "cnt == `ONE_USEC_DEL"
470
W 1047 650 0 1043 660 BEZIER "Transitions" | 43925,196399 47927,198791 53798,199463 57386,199578\
471
                                             60974,199693 71650,197679 74824,195517
472
A 1046 1045 16 TEXT "Actions" | 41999,121018 1 0 0 "cnt <= 8'h00;"
473
W 1045 650 2 675 1043 BEZIER "Transitions" | 72197,56437 63273,75619 43922,112763 40242,129369\
474
                                             36562,145975 36145,172368 37709,186398
475
L 1044 1043 0 TEXT "State Labels" | 38481,192850 1 0 0 "DEL\n/43/"
476
S 1043 650 192512 ELLIPSE "States" | 38481,192850 6500 6500
477
W 783 757 0 786 792 BEZIER "Transitions" | 60573,120171 60732,116620 61546,98364 61489,94649
478
C 782 780 0 TEXT "Conditions" | 60690,157992 1 0 0 "wb_ack == 1'b1"
479
A 781 780 16 TEXT "Actions" | 62006,151938 1 0 0 "wb_stb <= 1'b0;\nbRequest = wb_data_i;"
480
W 780 757 0 777 786 BEZIER "Transitions" | 58917,159547 59076,155996 60183,136852 60126,133137
481
L 779 777 0 TEXT "State Labels" | 58634,166039 1 0 0 "DAT2\n/24/"
482
A 778 777 4 TEXT "Actions" | 72202,171339 1 0 0 "wb_stb <= 1'b1;"
483
S 777 757 110592 ELLIPSE "States" | 58634,166039 6500 6500
484
C 776 775 0 TEXT "Conditions" | 54808,221840 1 0 0 "wbBusGnt == 1'b1"
485
W 775 757 0 772 765 BEZIER "Transitions" | 56181,226593 56273,221349 56243,215939 56335,210695
486
A 774 773 16 TEXT "Actions" | 44422,267415 1 0 0 "wbBusReq <= 1'b1;\ntxDataSize <= 8'h00; \ntxPacketRemSize <= 8'h00; //default tx packet size\ndataSeq <= 1'b1;\nwb_addr <= `RA_EP0_RX_FIFO_DATA_REG;\nwb_we <= 1'b0;"
487
W 773 757 0 760 772 BEZIER "Transitions" | 43188,270702 46684,266746 51543,244896 53318,238645
488
S 772 757 106496 ELLIPSE "States" | 56648,233064 6500 6500
489
L 771 772 0 TEXT "State Labels" | 56648,233064 1 0 0 "WT_GNT\n/23/"
490
A 770 768 16 TEXT "Actions" | 60029,189673 1 0 0 "wb_stb <= 1'b0;\nbm_req_dir <= wb_data_i[7]; \nbm_req_type <= wb_data_i[6:5]; \nbm_req_recp <= wb_data_i[4:0];"
491
C 769 768 0 TEXT "Conditions" | 58713,196251 1 0 0 "wb_ack == 1'b1"
492
W 768 757 0 765 777 BEZIER "Transitions" | 56940,197727 57099,194176 58282,176236 58225,172521
493
L 496 497 0 TEXT "Labels" | 94710,259022 1 0 0 "wbBusReq"
494
I 497 0 2 Builtin OutPort | 88710,259022 "" ""
495
L 498 499 0 TEXT "Labels" | 96921,254399 1 0 0 "wbBusGnt"
496
I 499 0 2 Builtin InPort | 90921,254399 "" ""
497
A 500 486 4 TEXT "Actions" | 75308,243696 1 0 0 "wb_addr <= `RA_HOST_SLAVE_MODE;\nwb_data_o <= 8'h2; //reset usbHostSlave\nwb_stb <= 1'b1;\nwb_we <= 1'b1;"
498
L 501 502 0 TEXT "State Labels" | 58136,258112 1 0 0 "WT_GNT\n/1/"
499
S 502 485 4096 ELLIPSE "States" | 58136,258112 6500 6500
500
A 504 502 4 TEXT "Actions" | 75944,259808 1 0 0 "wbBusReq <= 1'b1;"
501
W 505 485 0 502 486 BEZIER "Transitions" | 58015,251659 58068,249115 58169,245370 58222,242826
502
C 506 505 0 TEXT "Conditions" | 60256,250056 1 0 0 "wbBusGnt == 1'b1"
503
L 507 508 0 TEXT "State Labels" | 58984,207868 1 0 0 "WT_RST\n/2/"
504
S 508 485 8192 ELLIPSE "States" | 58984,207868 6500 6500
505
W 509 485 0 486 508 BEZIER "Transitions" | 58314,229881 58367,226701 58553,217874 58520,214346
506
C 510 509 0 TEXT "Conditions" | 35664,229916 1 0 0 "wb_ack == 1'b1"
507
A 511 509 16 TEXT "Actions" | 35028,223980 1 0 0 "wb_stb <= 1'b0;\ncnt <= 8'h00;"
508
W 1040 6 0 100 484 BEZIER "Transitions" | 106850,189787 92302,180454 66213,161139 51665,151806
509
W 1041 6 0 484 433 BEZIER "Transitions" | 49584,142052 52512,138026 55866,133075 58794,129049
510
A 1042 100 4 TEXT "Actions" | 169432,209270 1 0 0 "initComplete <= 1'b0;\nwbBusReq <= 1'b0;\nwb_addr <= 8'h00;\nwb_data_o <= 8'h00;\nwb_stb <= 1'b0;\nwb_we <= 1'b0;\ntxPacketRemSize <= 8'h00;\ntxDataSize <= 8'h00;\ntxDataIndex <= 8'h00;\nepTransType <= 8'h00;\nepStatus <= 8'h00;\nrxDataSize <= 16'h0000;\ncnt <= 8'h00;\nmemRdEn <= 1'b0;\nmemAddr <= 8'h00;\nupdateUSBAddress <= 1'b0;\ntransDone <= 1'b0;\nbm_req_type <= 2'b00;\nbm_req_dir <= 1'b0;\nbm_req_recp <= 5'b00000;\nbRequest <= 8'h00;\nwLength <= 16'h0000;\nwIndex <= 16'h0000;\nwValue <= 16'h0000;\ndataSeq <= 1'b0;\nUSBAddress <= 8'h00;"
511
L 1052 1053 0 TEXT "Labels" | 167321,261694 1 0 0 "memRdEn"
512
I 1053 0 2 Builtin OutPort | 161321,261694 "" ""
513
L 1054 1055 0 TEXT "Labels" | 167321,256622 1 0 0 "memAddr[7:0]"
514
I 1055 0 130 Builtin OutPort | 161321,256622 "" ""
515
W 799 757 0 796 814 BEZIER "Transitions" | 140099,213919 140258,210368 142700,190140 142643,186425
516
L 798 796 0 TEXT "State Labels" | 139816,220411 1 0 0 "DAT6\n/27/"
517
A 797 796 4 TEXT "Actions" | 153384,225711 1 0 0 "wb_stb <= 1'b1;"
518
S 796 757 122880 ELLIPSE "States" | 139816,220411 6500 6500
519
W 795 757 0 802 796 BEZIER "Transitions" | 139731,252375 139890,248824 140629,230581 140572,226866
520
A 794 792 4 TEXT "Actions" | 74226,93507 1 0 0 "wb_stb <= 1'b1;"
521
L 793 792 0 TEXT "State Labels" | 60658,88207 1 0 0 "DAT4\n/26/"
522
S 792 757 118784 ELLIPSE "States" | 60658,88207 6500 6500
523
A 788 786 4 TEXT "Actions" | 73858,131963 1 0 0 "wb_stb <= 1'b1;"
524
L 787 786 0 TEXT "State Labels" | 60290,126663 1 0 0 "DAT3\n/25/"
525
S 786 757 114688 ELLIPSE "States" | 60290,126663 6500 6500
526
A 785 783 16 TEXT "Actions" | 63662,112637 1 0 0 "wb_stb <= 1'b0;\nwValue[7:0] <= wb_data_i;"
527
C 784 783 0 TEXT "Conditions" | 62346,118634 1 0 0 "wb_ack == 1'b1"
528
W 512 485 0 488 502 BEZIER "Transitions" | 41718,268952 45852,267256 49710,264689 53844,262993
529
A 513 508 4 TEXT "Actions" | 69172,209968 1 0 0 "cnt <= cnt + 1'b1;"
530
L 514 515 0 TEXT "State Labels" | 60256,179460 1 0 0 "WT_VBUS\n/3/"
531
S 515 485 12288 ELLIPSE "States" | 60256,179460 6500 6500
532
A 518 515 4 TEXT "Actions" | 73824,187832 1 0 0 "wb_addr <= `RA_SC_LINE_STATUS_REG;\nwb_stb <= 1'b1;\nwb_we <= 1'b0;"
533
W 521 485 0 515 1085 BEZIER "Transitions" | 59880,172978 59605,170845 120032,158243 121840,151345
534
C 522 521 0 TEXT "Conditions" | 78034,171446 1 0 0 "(wb_ack == 1'b1)  && (wb_data_i[`VBUS_PRES_BIT] == 1'b1)"
535
A 523 521 16 TEXT "Actions" | 94249,161439 1 0 0 "wb_stb <= 1'b0;"
536
S 524 485 16384 ELLIPSE "States" | 155702,93951 6500 6500
537
L 525 524 0 TEXT "State Labels" | 155702,93951 1 0 0 "FIN\n/4/"
538
W 526 485 0 524 489 BEZIER "Transitions" | 155567,87487 155620,84307 156121,69428 156088,65900
539
L 1056 1057 0 TEXT "Labels" | 169398,251734 1 0 0 "memData[7:0]"
540
I 1057 0 130 Builtin InPort | 163398,251734 "" ""
541
L 1058 1059 0 TEXT "Labels" | 124776,224384 1 0 0 "localRst"
542
I 1059 0 2 Builtin Signal | 121776,224384 "" ""
543
L 1060 1061 0 TEXT "Labels" | 178925,227382 1 0 0 "updateUSBAddress"
544
I 1061 0 2 Builtin Signal | 175925,227382 "" ""
545
L 1062 1063 0 TEXT "Labels" | 42640,237190 1 0 0 "transDone"
546
I 1063 0 2 Builtin Signal | 39640,237190 "" ""
547
L 1064 1065 0 TEXT "Labels" | 42692,231800 1 0 0 "bm_req_type[1:0]"
548
I 1065 0 130 Builtin Signal | 39692,231800 "" ""
549
L 1066 1067 0 TEXT "Labels" | 42874,227432 1 0 0 "bm_req_dir"
550
I 1067 0 2 Builtin Signal | 39874,227432 "" ""
551
L 1068 1069 0 TEXT "Labels" | 42692,222518 1 0 0 "bm_req_recp[4:0]"
552
I 1069 0 130 Builtin Signal | 39692,222518 "" ""
553
L 1070 1071 0 TEXT "Labels" | 43056,217786 1 0 0 "bRequest[7:0]"
554
I 1071 0 130 Builtin Signal | 40056,217786 "" ""
555
L 815 814 0 TEXT "State Labels" | 142392,179931 1 0 0 "DAT7\n/30/"
556
S 814 757 135168 ELLIPSE "States" | 142392,179931 6500 6500
557
A 813 811 16 TEXT "Actions" | 145555,165828 1 0 0 "wb_stb <= 1'b0;\nwLength[7:0] <= wb_data_i;"
558
C 812 811 0 TEXT "Conditions" | 144402,171884 1 0 0 "wb_ack == 1'b1"
559
W 811 757 0 814 808 BEZIER "Transitions" | 142675,173439 142834,169888 143227,151667 143170,147952
560
A 810 808 4 TEXT "Actions" | 156328,146775 1 0 0 "wb_stb <= 1'b1;"
561
L 809 808 0 TEXT "State Labels" | 142760,141475 1 0 0 "DAT8\n/29/"
562
S 808 757 131072 ELLIPSE "States" | 142760,141475 6500 6500
563
W 807 757 0 808 820 BEZIER "Transitions" | 143043,134983 143202,131432 145225,104683 145168,100968
564
C 806 795 0 TEXT "Conditions" | 141488,250777 1 0 0 "wb_ack == 1'b1"
565
A 805 795 16 TEXT "Actions" | 142751,244567 1 0 0 "wb_stb <= 1'b0;\nwIndex[7:0] <= wb_data_i;"
566
L 804 802 0 TEXT "State Labels" | 139448,258867 1 0 0 "DAT5\n/28/"
567
A 803 802 4 TEXT "Actions" | 153016,264167 1 0 0 "wb_stb <= 1'b1;"
568
S 802 757 126976 ELLIPSE "States" | 139448,258867 6500 6500
569
C 801 799 0 TEXT "Conditions" | 141997,212219 1 0 0 "wb_ack == 1'b1"
570
A 800 799 16 TEXT "Actions" | 143749,205660 1 0 0 "wb_stb <= 1'b0;\nwIndex[15:8] <= wb_data_i;"
571
A 535 524 4 TEXT "Actions" | 174518,95411 1 0 0 "wbBusReq <= 1'b0;\ninitComplete <= 1'b1;"
572
C 536 526 0 TEXT "Conditions" | 155118,83142 1 0 0 "wbBusGnt == 1'b0"
573
L 1072 1073 0 TEXT "Labels" | 148434,218150 1 0 0 "wValue[15:0]"
574
I 1073 0 130 Builtin Signal | 145434,218150 "" ""
575
L 1074 1075 0 TEXT "Labels" | 148616,222882 1 0 0 "wIndex[15:0]"
576
I 1075 0 130 Builtin Signal | 145616,222882 "" ""
577
L 1076 1077 0 TEXT "Labels" | 148616,228342 1 0 0 "wLength[15:0]"
578
I 1077 0 130 Builtin Signal | 145616,228342 "" ""
579
L 1078 1079 0 TEXT "Labels" | 148798,233074 1 0 0 "dataSeq"
580
I 1079 0 2 Builtin Signal | 145798,233074 "" ""
581
L 1080 1081 0 TEXT "Labels" | 178414,233058 1 0 0 "USBAddress[7:0]"
582
I 1081 0 130 Builtin Signal | 175414,233058 "" ""
583
L 1084 1085 0 TEXT "State Labels" | 125040,145776 1 0 0 "CONN\n/45/"
584
S 1085 485 225280 ELLIPSE "States" | 124848,145584 6500 6500
585
A 1086 1085 4 TEXT "Actions" | 142800,149040 1 0 0 "wb_addr <= `RA_SC_CONTROL_REG;\nwb_data_o <= 8'h71; //connect to host, full speed\nwb_stb <= 1'b1;\nwb_we <= 1'b1;"
586
END

powered by: WebSVN 2.1.0

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