pi.vh
2.76 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
/************************************************************************\
* *
* 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: pi.vh,v 1.1 2002/03/28 00:26:13 berndt Exp $
// SCCSID: %W% %G%
`include "rcp.vh"
// bus widths
parameter PI_REG_ADDRESS_SIZE = 4;
// register addresses
parameter PI_DRAM_ADDRESS_REG = (BUS_ADDRESS_PI_DRAM_ADDRESS>>2)&32'h0000_000F;
parameter PI_PBUS_ADDRESS_REG = (BUS_ADDRESS_PI_PBUS_ADDRESS>>2)&32'h0000_000F;
parameter PI_READ_LENGTH_REG = (BUS_ADDRESS_PI_READ_LENGTH >>2)&32'h0000_000F;
parameter PI_WRITE_LENGTH_REG = (BUS_ADDRESS_PI_WRITE_LENGTH>>2)&32'h0000_000F;
parameter PI_STATUS_REG = (BUS_ADDRESS_PI_STATUS >>2)&32'h0000_000F;
parameter PI_BSD_DOM1_LAT_REG = (BUS_ADDRESS_PI_DOM1_LAT >>2)&32'h0000_000F;
parameter PI_BSD_DOM1_PWD_REG = (BUS_ADDRESS_PI_DOM1_PWD >>2)&32'h0000_000F;
parameter PI_BSD_DOM1_PGS_REG = (BUS_ADDRESS_PI_DOM1_PGS >>2)&32'h0000_000F;
parameter PI_BSD_DOM1_RLS_REG = (BUS_ADDRESS_PI_DOM1_RLS >>2)&32'h0000_000F;
parameter PI_BSD_DOM2_LAT_REG = (BUS_ADDRESS_PI_DOM2_LAT >>2)&32'h0000_000F;
parameter PI_BSD_DOM2_PWD_REG = (BUS_ADDRESS_PI_DOM2_PWD >>2)&32'h0000_000F;
parameter PI_BSD_DOM2_PGS_REG = (BUS_ADDRESS_PI_DOM2_PGS >>2)&32'h0000_000F;
parameter PI_BSD_DOM2_RLS_REG = (BUS_ADDRESS_PI_DOM2_RLS >>2)&32'h0000_000F;
parameter PI_IO_READ_REG = (BUS_ADDRESS_PI_IO_READ_REG >>2)&32'h0000_000F;
parameter PI_IO_WRITE_REG = (BUS_ADDRESS_PI_IO_WRITE_REG>>2)&32'h0000_000F;
/************************************************************************
MACRO/PARAMETER DEFINES
************************************************************************/
// misc
`define PIC_LENGTH_SIZE 24 // data xfer length reg size
`define PIC_DSM_SIZE 4 // data transfer statemachine size
`define PIC_ASM_SIZE 4 // AD16 statemachine size
// buffer
`define PIC_BUF_ADRSZ 7 // buffer address size (byte)
`define PIC_BUF_LNWDTH 64 // buffer line width (bits)
// AD16 bus
`define PIC_ADB_WIDTH 16 // AD16 bus width (bits)
`define PIC_ADB_CYCTR_SZ 8 // AD16 delay counter size (bits)
`define PIC_ADB_LAREG_SZ 8 // ROM device latency reg size
`define PIC_ADB_PWREG_SZ 8 // ROM device pulsewidth reg size
`define PIC_ADB_PGREG_SZ 4 // ROM device page size reg size
`define PIC_ADB_RLREG_SZ 2 // ROM device release reg size