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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [boards/] [actel/] [ordb1a3pe1500/] [rtl/] [verilog/] [versatile_mem_ctrl/] [rtl/] [verilog/] [sdr_16_defines.v] - Blame information for rev 408

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 408 julius
//
2
// Specify either type of memory
3
// or
4
// BA_SIZE, ROW_SIZE, COL_SIZE and SDRAM_DATA_WIDTH
5
//
6
// either in this file or as command line option; +define+MT48LC16M16
7
//
8
 
9
// Most of these defines have an effect on things in fsm_sdr_16.v
10
 
11
//`define MT48LC32M16   // 64MB part
12
`define MT48LC16M16   // 32MB part
13
//`define MT48LC4M16    //  8MB part
14
 
15
// Define this to allow indication that a burst read is still going
16
// to the wishbone state machine, so it doesn't start emptying the
17
// ingress fifo after a aborted burst before the burst read is
18
// actually finished.
19
`define SDRAM_WB_SAME_CLOCKS
20
 
21
// If intending to burst write, and the wishbone clock is about 1/4 the speed
22
// of the SDRAM clock, then the data may come late, and this triggers a bug
23
// during write. To avoid this we can just wait a little longer for data when
24
// burst reading (there's no almost_empty signal from the FIFO)
25
`define SLOW_WB_CLOCK
26
 
27
 
28
`ifdef MT48LC32M16
29
// using 1 of MT48LC32M16
30
// SDRAM data width is 16
31
 
32
`define SDRAM_DATA_WIDTH 16
33
`define COL_SIZE 10
34
`define ROW_SIZE 13
35
`define BA_SIZE 2
36
 
37
`endif //  `ifdef MT48LC16M16
38
 
39
`ifdef MT48LC16M16
40
// using 1 of MT48LC16M16
41
// SDRAM data width is 16
42
 
43
`define SDRAM_DATA_WIDTH 16
44
`define COL_SIZE 9
45
`define ROW_SIZE 13
46
`define BA_SIZE 2
47
 
48
`endif //  `ifdef MT48LC16M16
49
 
50
`ifdef MT48LC4M16
51
// using 1 of MT48LC4M16
52
// SDRAM data width is 16
53
 
54
`define SDRAM_DATA_WIDTH 16
55
`define COL_SIZE 8
56
`define ROW_SIZE 12
57
`define BA_SIZE 2
58
 
59
`endif //  `ifdef MT48LC4M16
60
 
61
// LMR
62
// [12:10] reserved
63
// [9]     WB, write burst; 0 - programmed burst length, 1 - single location
64
// [8:7]   OP Mode, 2'b00
65
// [6:4]   CAS Latency; 3'b010 - 2, 3'b011 - 3
66
// [3]     BT, Burst Type; 1'b0 - sequential, 1'b1 - interleaved
67
// [2:0]   Burst length; 3'b000 - 1, 3'b001 - 2, 3'b010 - 4, 3'b011 - 8, 3'b111 - full page
68
`define INIT_WB 1'b0
69
`define INIT_CL 3'b010
70
`define INIT_BT 1'b0
71
`define INIT_BL 3'b001

powered by: WebSVN 2.1.0

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