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

Subversion Repositories wdsp

[/] [wdsp/] [trunk/] [rtl/] [verilog/] [minsoc/] [mc/] [mc_top_for_vhdl.v] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 parrado
/*
2
 * Xiang Li, olivercamel@gmail.com
3
 * Last Revised: 2008/08/01
4
 *
5
 * This file is created as the new top level entity of
6
 * Memory Controller IP Core, which is nothing
7
 * but a wrapper of mc_top with some port names changed.
8
 * The reason of doing so is because identifiers in the
9
 * format of "xxx_" are not supported in VHDL,
10
 * but are valid in Verilog. So we have to use the wrapper
11
 * to make MC can be used in higher level VHDL entities.
12
 */
13
 
14
module mc_top_for_vhdl(
15
        clk_i, rst_i,
16
 
17
        wb_data_i, wb_data_o, wb_addr_i, wb_sel_i, wb_we_i, wb_cyc_i,
18
        wb_stb_i, wb_ack_o, wb_err_o,
19
 
20
        susp_req_i, resume_req_i, suspended_o, poc_o,
21
 
22
        mc_clk_i, mc_br_pad_i, mc_bg_pad_o, mc_ack_pad_i,
23
        mc_addr_pad_o, mc_data_pad_i, mc_data_pad_o, mc_dp_pad_i,
24
        mc_dp_pad_o, mc_doe_pad_doe_o, mc_dqm_pad_o, mc_oe_pad_o,
25
        mc_we_pad_o, mc_cas_pad_o, mc_ras_pad_o, mc_cke_pad_o,
26
        mc_cs_pad_o, mc_sts_pad_i, mc_rp_pad_o, mc_vpen_pad_o,
27
        mc_adsc_pad_o, mc_adv_pad_o, mc_zz_pad_o, mc_coe_pad_coe_o
28
        );
29
 
30
input             clk_i, rst_i;
31
 
32
// --------------------------------------
33
// WISHBONE SLAVE INTERFACE 
34
input  [31:0]     wb_data_i;
35
output [31:0]     wb_data_o;
36
input  [31:0]     wb_addr_i;
37
input  [3:0]      wb_sel_i;
38
input             wb_we_i;
39
input             wb_cyc_i;
40
input             wb_stb_i;
41
output            wb_ack_o;
42
output            wb_err_o;
43
 
44
// --------------------------------------
45
// Suspend Resume Interface
46
input             susp_req_i;
47
input             resume_req_i;
48
output            suspended_o;
49
 
50
// POC
51
output [31:0]     poc_o;
52
 
53
// --------------------------------------
54
// Memory Bus Signals
55
input             mc_clk_i;
56
input             mc_br_pad_i;
57
output            mc_bg_pad_o;
58
input             mc_ack_pad_i;
59
output [23:0]     mc_addr_pad_o;
60
input  [31:0]     mc_data_pad_i;
61
output [31:0]     mc_data_pad_o;
62
input  [3:0]      mc_dp_pad_i;
63
output [3:0]      mc_dp_pad_o;
64
output            mc_doe_pad_doe_o;
65
output [3:0]      mc_dqm_pad_o;
66
output            mc_oe_pad_o;
67
output            mc_we_pad_o;
68
output            mc_cas_pad_o;
69
output            mc_ras_pad_o;
70
output            mc_cke_pad_o;
71
output [7:0]      mc_cs_pad_o;
72
input             mc_sts_pad_i;
73
output            mc_rp_pad_o;
74
output            mc_vpen_pad_o;
75
output            mc_adsc_pad_o;
76
output            mc_adv_pad_o;
77
output            mc_zz_pad_o;
78
output            mc_coe_pad_coe_o;
79
 
80
mc_top u0(
81
.clk_i            (clk_i),
82
.rst_i            (rst_i),
83
 
84
.wb_data_i        (wb_data_i),
85
.wb_data_o        (wb_data_o),
86
.wb_addr_i        (wb_addr_i),
87
.wb_sel_i         (wb_sel_i),
88
.wb_we_i          (wb_we_i),
89
.wb_cyc_i         (wb_cyc_i),
90
.wb_stb_i         (wb_stb_i),
91
.wb_ack_o         (wb_ack_o),
92
.wb_err_o         (wb_err_o),
93
 
94
.susp_req_i       (susp_req_i),
95
.resume_req_i     (resume_req_i),
96
.suspended_o      (suspended_o),
97
.poc_o            (poc_o),
98
 
99
.mc_clk_i         (mc_clk_i),
100
.mc_br_pad_i      (mc_br_pad_i),
101
.mc_bg_pad_o      (mc_bg_pad_o),
102
.mc_ack_pad_i     (mc_ack_pad_i),
103
.mc_addr_pad_o    (mc_addr_pad_o),
104
.mc_data_pad_i    (mc_data_pad_i),
105
.mc_data_pad_o    (mc_data_pad_o),
106
.mc_dp_pad_i      (mc_dp_pad_i),
107
.mc_dp_pad_o      (mc_dp_pad_o),
108
.mc_doe_pad_doe_o (mc_doe_pad_doe_o),
109
.mc_dqm_pad_o     (mc_dqm_pad_o),
110
.mc_oe_pad_o_     (mc_oe_pad_o),
111
.mc_we_pad_o_     (mc_we_pad_o),
112
.mc_cas_pad_o_    (mc_cas_pad_o),
113
.mc_ras_pad_o_    (mc_ras_pad_o),
114
.mc_cke_pad_o_    (mc_cke_pad_o),
115
.mc_cs_pad_o_     (mc_cs_pad_o),
116
.mc_sts_pad_i     (mc_sts_pad_i),
117
.mc_rp_pad_o_     (mc_rp_pad_o),
118
.mc_vpen_pad_o    (mc_vpen_pad_o),
119
.mc_adsc_pad_o_   (mc_adsc_pad_o),
120
.mc_adv_pad_o_    (mc_adv_pad_o),
121
.mc_zz_pad_o      (mc_zz_pad_o),
122
.mc_coe_pad_coe_o (mc_coe_pad_coe_o)
123
);
124
 
125
endmodule

powered by: WebSVN 2.1.0

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