Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: fflp_fcram_sched.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 | /*project name: NIU */ | |
37 | /*module name: fflp_fcram_arb */ | |
38 | /*description: Aabitration between CPU access and flow */ | |
39 | /* classification */ | |
40 | /* */ | |
41 | /*child modules in: none */ | |
42 | /*interface modules: */ | |
43 | /*author name: Jeanne Cai */ | |
44 | /*date created: 16-03-2004 */ | |
45 | /* */ | |
46 | /* Copyright (c) 2004, Sun Microsystems, Inc. */ | |
47 | /* Sun Proprietary and Confidential */ | |
48 | /* */ | |
49 | /*modifications: */ | |
50 | /**********************************************************************/ | |
51 | ||
52 | module fflp_fcram_sched | |
53 | ( | |
54 | cclk, | |
55 | reset, | |
56 | fcram_lookup_ratio, | |
57 | cpu_fcram_req_sync, | |
58 | fc_fifo_empty_sync, | |
59 | fc_fifo_fc_lookup, | |
60 | srch_burst_done, | |
61 | cpu_burst_done_sm, | |
62 | ||
63 | srch_no_fc_done, | |
64 | fwd_sched, | |
65 | do_srch_cycle, | |
66 | do_cpu_cycle, | |
67 | fc_fifo_ren | |
68 | ); | |
69 | ||
70 | input cclk; | |
71 | input reset; | |
72 | input[3:0] fcram_lookup_ratio; | |
73 | input cpu_fcram_req_sync; | |
74 | input fc_fifo_empty_sync; | |
75 | input fc_fifo_fc_lookup; | |
76 | input srch_burst_done; | |
77 | input cpu_burst_done_sm; | |
78 | ||
79 | output srch_no_fc_done; | |
80 | output fwd_sched; | |
81 | output do_srch_cycle; | |
82 | output do_cpu_cycle; | |
83 | output fc_fifo_ren; | |
84 | ||
85 | ||
86 | wire fc_lookup_req; | |
87 | wire fwd_no_fc_sched_sm; | |
88 | wire srch_no_fc_done; | |
89 | wire fwd_sched; | |
90 | wire do_srch_cycle; | |
91 | wire do_cpu_cycle; | |
92 | ||
93 | ||
94 | ||
95 | fflp_fcram_fwd_arb fflp_fcram_fwd_arb_inst ( | |
96 | .cclk (cclk), | |
97 | .reset (reset), | |
98 | .fc_fifo_empty_sync (fc_fifo_empty_sync), | |
99 | .fc_fifo_fc_lookup (fc_fifo_fc_lookup), | |
100 | .srch_burst_done (srch_burst_done), | |
101 | ||
102 | .fc_lookup_req (fc_lookup_req), | |
103 | .fwd_no_fc_sched_sm (fwd_no_fc_sched_sm), | |
104 | .srch_no_fc_done (srch_no_fc_done) | |
105 | ||
106 | ); | |
107 | ||
108 | ||
109 | fflp_fcram_arb fflp_fcram_arb_inst ( | |
110 | .cclk (cclk), | |
111 | .reset (reset), | |
112 | .fcram_lookup_ratio (fcram_lookup_ratio), | |
113 | .fc_lookup_req (fc_lookup_req), | |
114 | .fwd_no_fc_sched_sm (fwd_no_fc_sched_sm), | |
115 | .cpu_fcram_req_sync (cpu_fcram_req_sync), | |
116 | .srch_burst_done (srch_burst_done), | |
117 | .cpu_burst_done_sm (cpu_burst_done_sm), | |
118 | ||
119 | .fwd_sched (fwd_sched), | |
120 | .do_srch_cycle (do_srch_cycle), | |
121 | .do_cpu_cycle (do_cpu_cycle), | |
122 | .fc_fifo_ren (fc_fifo_ren) | |
123 | ||
124 | ); | |
125 | ||
126 | ||
127 | endmodule |