Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / verif / model / verilog / mem / fbdimm / design / sys_fbdimm8.v
CommitLineData
86530b38
AT
1// ========== Copyright Header Begin ==========================================
2//
3// OpenSPARC T2 Processor File: sys_fbdimm8.v
4// Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved
5// 4150 Network Circle, Santa Clara, California 95054, U.S.A.
6//
7// * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8//
9// This program is free software; you can redistribute it and/or modify
10// it under the terms of the GNU General Public License as published by
11// the Free Software Foundation; version 2 of the License.
12//
13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU General Public License for more details.
17//
18// You should have received a copy of the GNU General Public License
19// along with this program; if not, write to the Free Software
20// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21//
22// For the avoidance of doubt, and except that if any non-GPL license
23// choice is available it will apply instead, Sun elects to use only
24// the General Public License version 2 (GPLv2) at this time for any
25// software where a choice of GPL license versions is made
26// available with the language indicating that GPLv2 or any later version
27// may be used, or where a choice of which version of the GPL is applied is
28// otherwise unspecified.
29//
30// Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
31// CA 95054 USA or visit www.sun.com if you need additional information or
32// have any questions.
33//
34// ========== Copyright Header End ============================================
35module sys_fbdimm8 ( ps , ps_bar, sn , sn_bar, pn, pn_bar, ss , ss_bar , // channel interface
36 sclk);
37// Parameters
38parameter NB_LINK = 14;
39parameter SB_LINK = 10;
40
41// Inputs/Outputs
42output [NB_LINK-1:0] pn,pn_bar; // primary northbound
43input [NB_LINK-1:0] sn,sn_bar; // secondary northbound
44output [SB_LINK-1:0] ss,ss_bar; // secondary southbound
45input [SB_LINK-1:0] ps,ps_bar; // primary southbound
46input sclk;
47
48// internal registers/wires
49wire [NB_LINK-1:0] fbdimm0_sn,fbdimm1_sn,fbdimm2_sn,fbdimm3_sn;
50wire [NB_LINK-1:0] fbdimm4_sn,fbdimm5_sn,fbdimm6_sn,fbdimm7_sn;
51wire [SB_LINK-1:0] fbdimm0_ss,fbdimm1_ss,fbdimm2_ss,fbdimm3_ss;
52wire [SB_LINK-1:0] fbdimm4_ss,fbdimm5_ss,fbdimm6_ss,fbdimm7_ss;
53wire [SB_LINK-1:0] fbdimm0_ss_bar,fbdimm1_ss_bar,fbdimm2_ss_bar,fbdimm3_ss_bar;
54wire [SB_LINK-1:0] fbdimm4_ss_bar,fbdimm5_ss_bar,fbdimm6_ss_bar,fbdimm7_ss_bar;
55
56fbdimm #(NB_LINK,SB_LINK,0) fbdimm0 ( .ps (ps),
57 .ps_bar (ps_bar),
58 .sn (fbdimm0_sn),
59 .pn (pn),
60 .ss (fbdimm0_ss),
61 .ss_bar (fbdimm0_ss_bar),
62 .sclk (sclk));
63
64fbdimm #(NB_LINK,SB_LINK,1) fbdimm1 ( .ps (fbdimm0_ss),
65 .ps_bar (fbdimm0_ss_bar),
66 .sn (fbdimm1_sn),
67 .pn (fbdimm0_sn),
68 .ss (fbdimm1_ss),
69 .ss_bar (fbdimm1_ss_bar),
70 .sclk (sclk));
71
72fbdimm #(NB_LINK,SB_LINK,2) fbdimm2 ( .ps (fbdimm1_ss),
73 .ps_bar (fbdimm1_ss_bar),
74 .sn (fbdimm2_sn),
75 .pn (fbdimm1_sn),
76 .ss (fbdimm2_ss),
77 .ss_bar (fbdimm2_ss_bar),
78 .sclk (sclk));
79
80fbdimm #(NB_LINK,SB_LINK,3) fbdimm3 ( .ps (fbdimm2_ss),
81 .ps_bar ( fbdimm2_ss_bar),
82 .sn (fbdimm3_sn),
83 .pn (fbdimm2_sn),
84 .ss (fbdimm3_ss),
85 .ss_bar (fbdimm3_ss_bar),
86 .sclk (sclk));
87
88fbdimm #(NB_LINK,SB_LINK,4) fbdimm4 ( .ps (fbdimm3_ss),
89 .ps_bar (fbdimm3_ss_bar),
90 .sn (fbdimm4_sn),
91 .pn (fbdimm3_sn),
92 .ss (fbdimm4_ss),
93 .ss_bar (fbdimm4_ss_bar),
94 .sclk (sclk));
95
96
97fbdimm #(NB_LINK,SB_LINK,5) fbdimm5 ( .ps (fbdimm4_ss),
98 .ps_bar (fbdimm4_ss_bar),
99 .sn (fbdimm5_sn),
100 .pn (fbdimm4_sn),
101 .ss (fbdimm5_ss),
102 .ss_bar (fbdimm5_ss_bar),
103 .sclk (sclk));
104
105fbdimm #(NB_LINK,SB_LINK,6) fbdimm6 ( .ps (fbdimm5_ss),
106 .ps_bar (fbdimm5_ss_bar ),
107 .sn (fbdimm6_sn),
108 .pn (fbdimm5_sn),
109 .ss (fbdimm6_ss),
110 .ss_bar (fbdimm6_ss_bar),
111 .sclk (sclk));
112
113fbdimm #(NB_LINK,SB_LINK,7) fbdimm7 ( .ps (fbdimm6_ss),
114 .ps_bar (fbdimm6_ss_bar),
115 .sn (fbdimm7_sn),
116 .pn (fbdimm6_sn),
117 .ss (fbdimm7_ss),
118 .ss_bar (fbdimm7_ss_bar),
119 .sclk (sclk));
120
121
122endmodule