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

Subversion Repositories z80control

[/] [z80control/] [trunk/] [CII_Starter_USB_API_v1/] [HW/] [Multi_Sdram/] [Params.v] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 tylerapohl
//Legal Notice: (C)2006 Altera Corporation. All rights reserved. Your
2
//use of Altera Corporation's design tools, logic functions and other
3
//software and tools, and its AMPP partner logic functions, and any
4
//output files any of the foregoing (including device programming or
5
//simulation files), and any associated documentation or information are
6
//expressly subject to the terms and conditions of the Altera Program
7
//License Subscription Agreement or other applicable license agreement,
8
//including, without limitation, that your use is for the sole purpose
9
//of programming logic devices manufactured by Altera and sold by Altera
10
//or its authorized distributors.  Please refer to the applicable
11
//agreement for further details.
12
 
13
 
14
`define ROWSTART        8
15
`define ROWSIZE         12
16
`define COLSTART        0
17
`define COLSIZE         8
18
`define BANKSTART       20
19
`define BANKSIZE        2
20
 
21
// Address and Data Bus Sizes
22
 
23
`define  ASIZE           23      // total address width of the SDRAM
24
`define  DSIZE           16      // Width of data bus to SDRAMS
25
 
26
//parameter     INIT_PER        =       100;            //      For Simulation
27
 
28
//      Controller Parameter
29
////////////    133 MHz ///////////////
30
/*
31
parameter       INIT_PER        =       32000;
32
parameter       REF_PER         =       1536;
33
parameter       SC_CL           =       3;
34
parameter       SC_RCD          =       3;
35
parameter       SC_RRD          =       7;
36
parameter       SC_PM           =       1;
37
parameter       SC_BL           =       1;
38
*/
39
///////////////////////////////////////
40
////////////    100 MHz ///////////////
41
/*
42
parameter       INIT_PER        =       24000;
43
parameter       REF_PER         =       1024;
44
parameter       SC_CL           =       3;
45
parameter       SC_RCD          =       3;
46
parameter       SC_RRD          =       7;
47
parameter       SC_PM           =       1;
48
parameter       SC_BL           =       1;
49
*/
50
///////////////////////////////////////
51
////////////    50 MHz  ///////////////
52
parameter       INIT_PER        =       12000;
53
parameter       REF_PER         =       512;
54
parameter       SC_CL           =       3;
55
parameter       SC_RCD          =       3;
56
parameter       SC_RRD          =       7;
57
parameter       SC_PM           =       1;
58
parameter       SC_BL           =       1;
59
///////////////////////////////////////
60
 
61
//      SDRAM Parameter
62
parameter       SDR_BL          =       (SC_PM == 1)?   3'b111  :
63
                                                        (SC_BL == 1)?   3'b000  :
64
                                                        (SC_BL == 2)?   3'b001  :
65
                                                        (SC_BL == 4)?   3'b010  :
66
                                                                                        3'b011  ;
67
parameter       SDR_BT          =       1'b0;   //      Sequential
68
                                                        //      1'b1:   //      Interteave
69
parameter       SDR_CL          =       (SC_CL == 2)?   3'b10:
70
                                                                                        3'b11;
71
 

powered by: WebSVN 2.1.0

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