rdram.vh
2.61 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
/************************************************************************\
* *
* 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.1.1 2002/05/17 06:07:45 blythe 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 = 0,
RDRAM_1_DEVICE_ID = 1;
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_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;