ri.vh
2.05 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/************************************************************************\
* *
* Copyright (C) 1994, Silicon Graphics, Inc. *
* *
* These coded instructions, statements, and computer programs contain *
* unpublished proprietary information of Silicon Graphics, Inc., and *
* are protected by Federal copyright law. They may not be disclosed *
* to third parties or copied or duplicated in any form, in whole or *
* in part, without the prior written consent of Silicon Graphics, Inc. *
* *
\************************************************************************/
// $Id: ri.vh,v 1.1 2002/03/28 00:26:13 berndt Exp $
`include "rcp.vh"
// bus widths
parameter RI_REG_ADDRESS_SIZE = 3;
parameter RDRAM_REG_ADDRESS_SIZE = 10;
parameter RDRAM_DEVICE_ID_SIZE = 9;
parameter OPERATING_MODE_SIZE = 2;
parameter NUM_MULTIBANKS = 4;
parameter RBUS_REQUEST_SIZE = RBUS_CONTROL_SIZE
+ RBUS_EXTEND_SIZE
+ RBUS_DATA_SIZE;
// operating modes
parameter
RI_RESET_MODE = 0,
RI_ACTIVE_MODE = 1,
RI_STANDBY_MODE = 2;
// register addresses
parameter
RI_MODE_REG = 0,
RI_CONFIG_REG = 1,
RI_CURRENT_LOAD_REG = 2,
RI_SELECT_REG = 3,
RI_REFRESH_REG = 4,
RI_LATENCY_REG = 5,
RI_ERROR_REG = 6,
RI_VALID_REG = 7;
parameter
BANK_SIZE = 3,
ROW_SIZE = 9,
COLUMN_SIZE = 8,
OFFSET_SIZE = 3;
parameter
REQUEST_OP_SIZE = 6,
REQUEST_ADDRESS_SIZE = 36,
REQUEST_COUNT_SIZE = 8;
parameter
OP_READ_MEM_SEQ = 6'b00_0000,
OP_READ_MEM_NSEQ = 6'b01_0000,
OP_WRITE_MEM_SEQ = 6'b00_0100,
OP_WRITE_MEM_NSEQ = 6'b00_1000,
OP_WRITE_MEM_MASK = 6'b00_1100,
OP_READ_REG = 6'b00_0110,
OP_WRITE_REG = 6'b00_0111,
OP_WRITE_REG_GLOBAL = 6'b00_1111;
parameter
RBUS_ENABLE_SHIFT_SIZE = 3,
SERIAL_ADDRESS_SIZE = 8;