Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: niu_smx_req_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 | ||
36 | module niu_smx_req_ff( | |
37 | /*AUTOARG*/ | |
38 | // Outputs | |
39 | rdreq_cmdff_full, rdreq_cmdff_rdata, rdreq_cmdff_empty, | |
40 | wreq_cmdff_full, wreq_cmdff_rdata, wreq_cmdff_empty, | |
41 | wreq_dataff_full, wreq_dataff_rdata, wreq_dataff_empty, | |
42 | wreq_pcmd_ff_full, wreq_pcmd_ff_rdata, wreq_pcmd_ff_empty, | |
43 | // Inputs | |
44 | clk, reset_l, rdreq_cmdff_wr, rdreq_cmdff_wdata, rdreq_cmdff_rd, | |
45 | wreq_cmdff_wr, wreq_cmdff_wdata, wreq_cmdff_rd, wreq_dataff_wr, | |
46 | wreq_dataff_wdata, wreq_dataff_rd, wreq_pcmd_ff_wr, | |
47 | wreq_pcmd_ff_wdata, wreq_pcmd_ff_rd | |
48 | ); | |
49 | ||
50 | input clk; | |
51 | input reset_l; | |
52 | ||
53 | // rdreq if; cmdff | |
54 | input rdreq_cmdff_wr; | |
55 | input [65:0] rdreq_cmdff_wdata; | |
56 | output rdreq_cmdff_full; | |
57 | input rdreq_cmdff_rd; | |
58 | output [65:0] rdreq_cmdff_rdata; | |
59 | output rdreq_cmdff_empty; | |
60 | ||
61 | // wreq if; cmd ff | |
62 | input wreq_cmdff_wr; | |
63 | input [65:0] wreq_cmdff_wdata; | |
64 | output wreq_cmdff_full; | |
65 | input wreq_cmdff_rd; | |
66 | output [65:0] wreq_cmdff_rdata; | |
67 | output wreq_cmdff_empty; // not use | |
68 | ||
69 | ||
70 | // wreq if; data ff | |
71 | input wreq_dataff_wr; | |
72 | input [127:0] wreq_dataff_wdata; | |
73 | output wreq_dataff_full; // right now not use ??? | |
74 | input wreq_dataff_rd; | |
75 | output [127:0] wreq_dataff_rdata; | |
76 | output wreq_dataff_empty; | |
77 | ||
78 | ||
79 | // pcmd ff | |
80 | input wreq_pcmd_ff_wr; | |
81 | input [3:0] wreq_pcmd_ff_wdata; | |
82 | output wreq_pcmd_ff_full; // right now not use ??? | |
83 | input wreq_pcmd_ff_rd; | |
84 | output [3:0] wreq_pcmd_ff_rdata; | |
85 | output wreq_pcmd_ff_empty; | |
86 | ||
87 | niu_smx_ff_regfl #(128,4) wreq_dataff_128bx16( | |
88 | .clk (clk), | |
89 | .reset_l (reset_l), | |
90 | .wr (wreq_dataff_wr), | |
91 | .wdata (wreq_dataff_wdata[127:0]), | |
92 | .full (wreq_dataff_full), | |
93 | .rd (wreq_dataff_rd), | |
94 | .empty (wreq_dataff_empty), | |
95 | .rdata (wreq_dataff_rdata[127:0]) | |
96 | ); | |
97 | ||
98 | niu_smx_ff_regfl #(66,2) wreq_cmdff_66bx4( | |
99 | .clk (clk), | |
100 | .reset_l (reset_l), | |
101 | .wr (wreq_cmdff_wr), | |
102 | .wdata (wreq_cmdff_wdata[65:0]), | |
103 | .full (wreq_cmdff_full), | |
104 | .rd (wreq_cmdff_rd), | |
105 | .empty (wreq_cmdff_empty), | |
106 | .rdata (wreq_cmdff_rdata[65:0]) | |
107 | ); | |
108 | ||
109 | niu_smx_ff_regfl #(66,2) rdreq_cmdff_66bx4( | |
110 | .clk (clk), | |
111 | .reset_l (reset_l), | |
112 | .wr (rdreq_cmdff_wr), | |
113 | .wdata (rdreq_cmdff_wdata[65:0]), | |
114 | .full (rdreq_cmdff_full), | |
115 | .rd (rdreq_cmdff_rd), | |
116 | .empty (rdreq_cmdff_empty), | |
117 | .rdata (rdreq_cmdff_rdata[65:0]) | |
118 | ); | |
119 | ||
120 | niu_smx_ff_regfl #(4,2) wreq_pcmd_ff_4bx4( | |
121 | .clk (clk), | |
122 | .reset_l (reset_l), | |
123 | .wr (wreq_pcmd_ff_wr), | |
124 | .wdata (wreq_pcmd_ff_wdata[3:0]), | |
125 | .full (wreq_pcmd_ff_full), | |
126 | .rd (wreq_pcmd_ff_rd), | |
127 | .empty (wreq_pcmd_ff_empty), | |
128 | .rdata (wreq_pcmd_ff_rdata[3:0]) | |
129 | ); | |
130 | ||
131 | endmodule |