usb_dv.html
2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Mozilla/4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) [Netscape]">
</head>
<body>
<center><font size=+1>USB Test Plan</font></center>
(1) What <a href="arc_usb_test.html">ARC Test</a> includes?
<br> * After reset, check if 31 registers are set to
default value.
<br> * Try read/write 9 r/w register.
<br> * Device test
<br> Test three transactions: SETUP/IN/OUT
with 1/2/3/8 packet length.
<br> Check NULL data IN transactions
All tests are only using endpoint and "control transfer"
<br> * Line state test: SE0 J and unstable state
<br> * OTG test:
<br> "ID_PIN", "OTG_disconnect", "otg_session_valid"
and "otg_session_end" interrupts
<br> * Host echo Test SOF OUT token (send out 64 bytes)
IN token (read back and compare -- echo)
<br> There are <a href="arc_usb_in_host_ctrl">more tests
</a>in vusb_host_ctrl.v, but we do not have "C(pp)" side code responding
those tests.
<p>(2) What we need to add?
<br> * Test all registers for default value, r/w and
walk through
<br> * Device and Host test
<br> Different tx/rx buf addr(cross
2k page, bank, not n bytes align, etc)
<br> Different packet length(from
0-byte to 1024) Different endpoints 0-max(4/16?)
<br> Different transfer mode,
at least we need to add bulk transfer. (At least we need to port some of
ch9 functions to setup each endpoint)
<br> * USB mode(device/host)
switch.
<br> * Error cases.
<p>(3) What we might delete?
<br> * OTG Test
<p>(4) More
<br> * Rand test
<br> * Stress and performance test
<br> * System level test(we might end
up with all ch9 tests.)
</body>
</html>