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

Subversion Repositories z80control

[/] [z80control/] [trunk/] [CII_Starter_USB_API_v1/] [HW/] [Multi_Sdram/] [Multi_Sdram.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
module Multi_Sdram(     //      Host Side
14
                                        oHS_DATA,iHS_DATA,iHS_ADDR,iHS_RD,iHS_WR,oHS_Done,
15
                                        //      Async Side 1
16
                                        oAS1_DATA,iAS1_DATA,iAS1_ADDR,iAS1_WR_n,
17
                                        //      Async Side 2
18
                                        oAS2_DATA,iAS2_DATA,iAS2_ADDR,iAS2_WR_n,
19
                                        //      Async Side 3
20
                                        oAS3_DATA,iAS3_DATA,iAS3_ADDR,iAS3_WR_n,
21
                                        //      Control Signals
22
                                        iSelect,iCLK, iRST_n,
23
                                        //      SDRAM Interface
24
                                SA,BA,CS_N,CKE,RAS_N,CAS_N,WE_N,DQ,DQM,SDR_CLK);
25
//      Host Side
26
input   [21:0]   iHS_ADDR;
27
input   [15:0]   iHS_DATA;
28
input                   iHS_RD;
29
input                   iHS_WR;
30
output  [15:0]   oHS_DATA;
31
output                  oHS_Done;
32
//      Async Side 1
33
input   [21:0]   iAS1_ADDR;
34
input   [15:0]   iAS1_DATA;
35
input                   iAS1_WR_n;
36
output  [15:0]   oAS1_DATA;
37
//      Async Side 2
38
input   [21:0]   iAS2_ADDR;
39
input   [15:0]   iAS2_DATA;
40
input                   iAS2_WR_n;
41
output  [15:0]   oAS2_DATA;
42
//      Async Side 3
43
input   [21:0]   iAS3_ADDR;
44
input   [15:0]   iAS3_DATA;
45
input                   iAS3_WR_n;
46
output  [15:0]   oAS3_DATA;
47
//      Control Signals
48
input   [1:0]    iSelect;
49
input                   iCLK;
50
input                   iRST_n;
51
//      SDRAM Interface
52
output  [11:0]   SA;
53
output  [1:0]    BA;
54
output                  CS_N;
55
output                  CKE;
56
output                  RAS_N;
57
output                  CAS_N;
58
output                  WE_N;
59
inout   [15:0]   DQ;
60
output  [1:0]    DQM;
61
output                  SDR_CLK;
62
//      Internal SDRAM Link
63
wire    [21:0]   mSDR_ADDR;
64
wire    [15:0]   mM2C_DATA;
65
wire    [15:0]   mC2M_DATA;
66
wire                    mSDR_RD;
67
wire                    mSDR_WR;
68
wire                    mSDR_Done;
69
 
70
Sdram_Multiplexer       u0      (       //      Host Side
71
                                                        oHS_DATA,iHS_DATA,iHS_ADDR,iHS_RD,iHS_WR,oHS_Done,
72
                                                        //      Async Side 1
73
                                                        oAS1_DATA,iAS1_DATA,iAS1_ADDR,iAS1_WR_n,
74
                                                        //      Async Side 2
75
                                                        oAS2_DATA,iAS2_DATA,iAS2_ADDR,iAS2_WR_n,
76
                                                        //      Async Side 3
77
                                                        oAS3_DATA,iAS3_DATA,iAS3_ADDR,iAS3_WR_n,
78
                                                        //      SDRAM Side
79
                                                        mM2C_DATA,mC2M_DATA,mSDR_ADDR,mSDR_RD,mSDR_WR,mSDR_Done,
80
                                                        //      Control Signals
81
                                                        iSelect,iCLK,iRST_n     );
82
 
83
Sdram_Controller        u1      (       //      HOST
84
                                                .REF_CLK(iCLK),.RESET_N(iRST_n),
85
                                                        .ADDR({1'b0,mSDR_ADDR}),
86
                                                        .WR(mSDR_WR),.RD(mSDR_RD),.DONE(mSDR_Done),
87
                                                .DATAIN(mM2C_DATA),.DATAOUT(mC2M_DATA),
88
                                                        .IN_REQ(),.OUT_VALID(),.DM(2'b00),
89
                                                        .LENGTH(8'h01),
90
                                                        //      SDRAM
91
                                                .SA(SA),
92
                                                .BA(BA),
93
                                                .CS_N(CS_N),
94
                                                .CKE(CKE),
95
                                                .RAS_N(RAS_N),
96
                                                .CAS_N(CAS_N),
97
                                                .WE_N(WE_N),
98
                                                .DQ(DQ),
99
                                                .DQM(DQM),
100
                                                        .SDR_CLK(SDR_CLK)
101
                                                );
102
 
103
endmodule

powered by: WebSVN 2.1.0

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