rdram.vh
2.92 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: rdram.vh,v 1.1 2002/03/28 00:26:13 berndt Exp $
// RDRAM config registers
parameter
RDRAM_REG_DEVICE_TYPE = 'h00,
RDRAM_REG_DEVICE_ID = 'h04,
RDRAM_REG_DELAY = 'h08,
RDRAM_REG_MODE = 'h0c,
RDRAM_REG_REF_INTERVAL = 'h10,
RDRAM_REG_REF_ROW = 'h14,
RDRAM_REG_RAS_INTERVAL = 'h18,
RDRAM_REG_MIN_INTERVAL = 'h1c,
RDRAM_REG_ADDRESS_SELECT = 'h20,
RDRAM_REG_DEVICE_MANUFACTURE = 'h24;
// RDRAM address space
parameter
RDRAM_LENGTH = 2 * 512 * 2048;
parameter
RDRAM_0_DEVICE_ID = 6'b0,
RDRAM_1_DEVICE_ID = 6'd2,
RDRAM_2_DEVICE_ID = 6'd4,
RDRAM_3_DEVICE_ID = 6'd6,
RDRAM_4_DEVICE_ID = 6'd4,
RDRAM_5_DEVICE_ID = 6'd5;
parameter
RDRAM_0_BASE_ADDRESS = RDRAM_0_DEVICE_ID * RDRAM_LENGTH,
RDRAM_1_BASE_ADDRESS = RDRAM_1_DEVICE_ID * RDRAM_LENGTH;
parameter
RDRAM_0_CONFIG = 'b0000_0000_0000_0000_0000,
RDRAM_1_CONFIG = 'b0000_0000_1000_0000_0000,
RDRAM_2_CONFIG = 'b0000_0001_0000_0000_0000,
RDRAM_3_CONFIG = 'b0000_0001_1000_0000_0000,
RDRAM_4_CONFIG = 'b0000_0001_0000_0000_0000,
RDRAM_5_CONFIG = 'b0000_0001_0100_0000_0000,
RDRAM_GLOBAL_CONFIG = 'b1000_0000_0000_0000_0000;
parameter
BUS_ADDRESS_RDRAM_DEVICE_TYPE = BUS_ADDRESS_RDRAM_CONFIG + RDRAM_REG_DEVICE_TYPE,
BUS_ADDRESS_RDRAM_DEVICE_ID = BUS_ADDRESS_RDRAM_CONFIG + RDRAM_REG_DEVICE_ID,
BUS_ADDRESS_RDRAM_DELAY = BUS_ADDRESS_RDRAM_CONFIG + RDRAM_REG_DELAY,
BUS_ADDRESS_RDRAM_MODE = BUS_ADDRESS_RDRAM_CONFIG + RDRAM_REG_MODE,
BUS_ADDRESS_RDRAM_REF_INTERVAL = BUS_ADDRESS_RDRAM_CONFIG + RDRAM_REG_REF_INTERVAL,
BUS_ADDRESS_RDRAM_REF_ROW = BUS_ADDRESS_RDRAM_CONFIG + RDRAM_REG_REF_ROW,
BUS_ADDRESS_RDRAM_RAS_INTERVAL = BUS_ADDRESS_RDRAM_CONFIG + RDRAM_REG_RAS_INTERVAL,
BUS_ADDRESS_RDRAM_MIN_INTERVAL = BUS_ADDRESS_RDRAM_CONFIG + RDRAM_REG_MIN_INTERVAL,
BUS_ADDRESS_RDRAM_ADDRESS_SELECT = BUS_ADDRESS_RDRAM_CONFIG + RDRAM_REG_ADDRESS_SELECT,
BUS_ADDRESS_RDRAM_DEVICE_MANUFACTURE = BUS_ADDRESS_RDRAM_CONFIG + RDRAM_REG_DEVICE_MANUFACTURE;
parameter
RDRAM_RESET_MODE = 2'd0,
RDRAM_ACTIVE_MODE = 2'd1,
RDRAM_STANDBY_MODE = 2'd2;