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

Subversion Repositories usbhostslave

[/] [usbhostslave/] [tags/] [rel_00_06_alpha/] [RTL/] [include/] [usbHostControl_h.v] - Blame information for rev 5

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

Line No. Rev Author Line
1 2 sfielding
//////////////////////////////////////////////////////////////////////
2 5 sfielding
// usbHostControl_h.v                                          
3
// $Id: usbHostControl_h.v,v 1.2 2004-12-18 14:36:13 sfielding Exp $
4 2 sfielding
//
5
// CVS Revision History
6
//
7
// $Log: not supported by cvs2svn $
8 5 sfielding
// Revision 1.1.1.1  2004/10/11 04:00:57  sfielding
9
// Created
10
//////////////////////////////////////////////////////////////////////
11 2 sfielding
 
12 5 sfielding
`ifdef usbHostControl_h_vdefined
13
`else
14
`define usbHostControl_h_vdefined
15 2 sfielding
 
16
//HCRegIndices
17
`define TX_CONTROL_REG 4'h0
18
`define TX_TRANS_TYPE_REG 4'h1
19
`define TX_LINE_CONTROL_REG 4'h2
20
`define TX_SOF_ENABLE_REG 4'h3
21
`define TX_ADDR_REG 4'h4
22
`define TX_ENDP_REG 4'h5
23
`define FRAME_NUM_MSB_REG 4'h6
24
`define FRAME_NUM_LSB_REG 4'h7
25
`define INTERRUPT_STATUS_REG 4'h8
26
`define INTERRUPT_MASK_REG 4'h9
27
`define RX_STATUS_REG 4'ha
28
`define RX_PID_REG 4'hb
29
`define RX_ADDR_REG 4'hc
30
`define RX_ENDP_REG 4'hd
31
`define RX_CONNECT_STATE_REG 4'he
32
`define HCREG_BUFFER_LEN 4'hf
33
`define HCREG_MASK 4'hf
34
 
35
//TXControlRegIndices
36
`define TRANS_REQ_BIT 0
37
`define SOF_SYNC_BIT 1
38
`define PREAMBLE_ENABLE_BIT 2
39
 
40
//interruptRegIndices
41
`define TRANS_DONE_BIT 0
42
`define RESUME_INT_BIT 1
43
`define CONNECTION_EVENT_BIT 2
44
`define SOF_SENT_BIT 3
45
 
46
//TXTransactionTypes
47
`define SETUP_TRANS 0
48
`define IN_TRANS 1
49
`define OUTDATA0_TRANS 2
50
`define OUTDATA1_TRANS 3
51
 
52
 //TXLineControlIndices
53
`define TX_LINE_STATE_LSBIT 0
54
`define TX_LINE_STATE_MSBIT 1
55
`define DIRECT_CONTROL_BIT 2
56
`define FULL_SPEED_LINE_POLARITY_BIT 3
57
`define FULL_SPEED_LINE_RATE_BIT 4
58
 
59
//TXSOFEnableIndices
60
`define SOF_EN_BIT 0
61
 
62
//SOFTimeConstants 
63
`define SOF_TX_TIME 80     //Fix this. Need correct SOF TX interval
64
`define SOF_TX_MARGIN 2
65
 
66
//Host RXStatusRegIndices 
67
`define HC_CRC_ERROR_BIT 0
68
`define HC_BIT_STUFF_ERROR_BIT 1
69
`define HC_RX_OVERFLOW_BIT 2
70
`define HC_RX_TIME_OUT_BIT 3
71
`define HC_NAK_RXED_BIT 4
72
`define HC_STALL_RXED_BIT 5
73
`define HC_ACK_RXED_BIT 6
74
`define HC_DATA_SEQUENCE_BIT 7
75
 
76 5 sfielding
`endif //usbHostControl_h_vdefined

powered by: WebSVN 2.1.0

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