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

Subversion Repositories ao486

[/] [ao486/] [trunk/] [syn/] [components/] [sd_card/] [sd.v] - Blame information for rev 8

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 8 alfik
 
2
module sd(
3
    input               CLOCK_50,
4
 
5
    //SDRAM
6
    output      [12:0]  DRAM_ADDR,
7
    output      [1:0]   DRAM_BA,
8
    output              DRAM_CAS_N,
9
    output              DRAM_CKE,
10
    output              DRAM_CLK,
11
    output              DRAM_CS_N,
12
    inout       [31:0]  DRAM_DQ,
13
    output      [3:0]   DRAM_DQM,
14
    output              DRAM_RAS_N,
15
    output              DRAM_WE_N,
16
 
17
    //SD
18
    output              SD_CLK,
19
    inout               SD_CMD,
20
    inout       [3:0]   SD_DAT,
21
    input               SD_WP_N
22
);
23
 
24
//------------------------------------------------------------------------------
25
 
26
assign DRAM_CLK = clk_sys;
27
 
28
//------------------------------------------------------------------------------
29
 
30
wire clk_sys;
31
 
32
wire rst_n;
33
 
34
pll pll_inst(
35
    .inclk0     (CLOCK_50),
36
    .c0         (clk_sys),
37
    .locked     (rst_n)
38
);
39
 
40
system u0 (
41
    .clk_clk          (clk_sys),
42
    .reset_reset_n    (rst_n),
43
 
44
    .sdram_wire_addr  (DRAM_ADDR),
45
    .sdram_wire_ba    (DRAM_BA),
46
    .sdram_wire_cas_n (DRAM_CAS_N),
47
    .sdram_wire_cke   (DRAM_CKE),
48
    .sdram_wire_cs_n  (DRAM_CS_N),
49
    .sdram_wire_dq    (DRAM_DQ),
50
    .sdram_wire_dqm   (DRAM_DQM),
51
    .sdram_wire_ras_n (DRAM_RAS_N),
52
    .sdram_wire_we_n  (DRAM_WE_N),
53
 
54
    .conduit_clk_export (SD_CLK),
55
    .conduit_cmd_export (SD_CMD),
56
    .conduit_dat_export (SD_DAT)
57
);
58
 
59
//------------------------------------------------------------------------------
60
 
61
endmodule

powered by: WebSVN 2.1.0

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