Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: niu_smx_resp_ff.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 ============================================ | |
35 | module niu_smx_resp_ff( | |
36 | /*AUTOARG*/ | |
37 | // Outputs | |
38 | resp_cmdff_full, resp_cmdff_rdata, resp_cmdff_empty, | |
39 | resp_dataff_full, resp_dataff_rdata, resp_dataff_empty, | |
40 | mb0_smx_store_32x146_scan_out, niu_mb0_smx_store_data_out, | |
41 | // Inputs | |
42 | clk, iol2clk, reset_l, resp_cmdff_wr, resp_cmdff_wdata, resp_cmdff_rd, | |
43 | resp_dataff_wr, resp_dataff_wdata, resp_dataff_rd, | |
44 | tcu_aclk, tcu_bclk, tcu_se_scancollar_in, | |
45 | tcu_array_wr_inhibit, mb0_smx_store_32x146_scan_in, | |
46 | niu_mb0_smx_store_32x146_wdata, niu_mb0_smx_store_32x146_rd_addr, | |
47 | niu_mb0_smx_store_32x146_wr_addr, niu_mb0_smx_store_32x146_wr_en, | |
48 | niu_mb0_smx_store_32x146_rd_en, niu_mb0_run | |
49 | ); | |
50 | ||
51 | input clk; | |
52 | input iol2clk; | |
53 | input reset_l; | |
54 | ||
55 | // resp if; cmdff | |
56 | input resp_cmdff_wr; | |
57 | input [21:0] resp_cmdff_wdata; | |
58 | output resp_cmdff_full; | |
59 | input resp_cmdff_rd; | |
60 | output [21:0] resp_cmdff_rdata; | |
61 | output resp_cmdff_empty; | |
62 | ||
63 | // resp if; data ff | |
64 | input resp_dataff_wr; | |
65 | input [143:0] resp_dataff_wdata; | |
66 | output resp_dataff_full; // right now not use ??? | |
67 | input resp_dataff_rd; | |
68 | output [143:0] resp_dataff_rdata; | |
69 | output resp_dataff_empty; | |
70 | ||
71 | // mbist if | |
72 | input tcu_aclk; | |
73 | input tcu_bclk; | |
74 | input tcu_se_scancollar_in; | |
75 | input tcu_array_wr_inhibit; | |
76 | input mb0_smx_store_32x146_scan_in; | |
77 | output mb0_smx_store_32x146_scan_out; | |
78 | ||
79 | input [7:0] niu_mb0_smx_store_32x146_wdata; | |
80 | input [4:0] niu_mb0_smx_store_32x146_rd_addr; | |
81 | input [4:0] niu_mb0_smx_store_32x146_wr_addr; | |
82 | input niu_mb0_smx_store_32x146_wr_en; | |
83 | input niu_mb0_smx_store_32x146_rd_en; | |
84 | input niu_mb0_run; | |
85 | ||
86 | output [145:0] niu_mb0_smx_store_data_out; | |
87 | ||
88 | /* | |
89 | niu_smx_ff_regfl #(129,4) resp_dataff_129bx16( | |
90 | .clk (clk), | |
91 | .reset_l (reset_l), | |
92 | .wr (resp_dataff_wr), | |
93 | .wdata ({resp_dataff_wdata_err, resp_dataff_wdata[127:0]}), | |
94 | .full (resp_dataff_full), | |
95 | .rd (resp_dataff_rd), | |
96 | .empty (resp_dataff_empty), | |
97 | .rdata (dataff_rdata[128:0]) | |
98 | ); | |
99 | */ | |
100 | ||
101 | niu_smx_ff_ram32x144 resp_dataff_144bx32( | |
102 | .tcu_aclk (tcu_aclk), | |
103 | .tcu_bclk (tcu_bclk), | |
104 | .tcu_se_scancollar_in (tcu_se_scancollar_in), | |
105 | .tcu_array_wr_inhibit (tcu_array_wr_inhibit), | |
106 | .mb0_smx_store_32x146_scan_in (mb0_smx_store_32x146_scan_in), | |
107 | .mb0_smx_store_32x146_scan_out (mb0_smx_store_32x146_scan_out), | |
108 | .niu_mb0_smx_store_32x146_wdata (niu_mb0_smx_store_32x146_wdata [7:0]), | |
109 | .niu_mb0_smx_store_32x146_rd_addr (niu_mb0_smx_store_32x146_rd_addr [4:0]), | |
110 | .niu_mb0_smx_store_32x146_wr_addr (niu_mb0_smx_store_32x146_wr_addr [4:0]), | |
111 | .niu_mb0_smx_store_32x146_wr_en (niu_mb0_smx_store_32x146_wr_en), | |
112 | .niu_mb0_smx_store_32x146_rd_en (niu_mb0_smx_store_32x146_rd_en), | |
113 | .niu_mb0_run (niu_mb0_run), | |
114 | .niu_mb0_smx_store_data_out (niu_mb0_smx_store_data_out[145:0]), | |
115 | .iol2clk (iol2clk), | |
116 | .clk (clk), | |
117 | .reset_l (reset_l), | |
118 | .wr (resp_dataff_wr), | |
119 | .wdata (resp_dataff_wdata[143:0]), | |
120 | .full (resp_dataff_full), | |
121 | .rd (resp_dataff_rd), | |
122 | .empty (resp_dataff_empty), | |
123 | .rdata (resp_dataff_rdata[143:0]) | |
124 | ); | |
125 | ||
126 | ||
127 | niu_smx_ff_regfl #(22,2) resp_cmdff_22bx4( | |
128 | .clk (clk), | |
129 | .reset_l (reset_l), | |
130 | .wr (resp_cmdff_wr), | |
131 | .wdata (resp_cmdff_wdata[21:0]), | |
132 | .full (resp_cmdff_full), | |
133 | .rd (resp_cmdff_rd), | |
134 | .empty (resp_cmdff_empty), | |
135 | .rdata (resp_cmdff_rdata[21:0]) | |
136 | ); | |
137 | ||
138 | endmodule |