Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / design / sys / iop / dmu / rtl / dmu_mmu_csr_tsb.v
CommitLineData
86530b38
AT
1// ========== Copyright Header Begin ==========================================
2//
3// OpenSPARC T2 Processor File: dmu_mmu_csr_tsb.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 dmu_mmu_csr_tsb
36 (
37 clk,
38 rst_l,
39 tsb_w_ld,
40 csrbus_wr_data,
41 tsb_csrbus_read_data,
42 tsb_tb_hw_read,
43 tsb_ps_hw_read,
44 tsb_ts_hw_read
45 );
46
47//====================================================================
48// Polarity declarations
49//====================================================================
50input clk; // Clock
51input rst_l; // Reset signal
52input tsb_w_ld; // SW load bus
53input [`FIRE_CSRBUS_DATA_WIDTH-1:0] csrbus_wr_data; // SW write data
54output [`FIRE_DLC_MMU_CSR_TSB_WIDTH-1:0] tsb_csrbus_read_data; // SW read data
55output [`FIRE_DLC_MMU_CSR_TSB_TB_INT_SLC] tsb_tb_hw_read; // This signal
56 // provides the
57 // current value of
58 // tsb_tb.
59output tsb_ps_hw_read; // This signal provides the current value of tsb_ps.
60output [`FIRE_DLC_MMU_CSR_TSB_TS_INT_SLC] tsb_ts_hw_read; // This signal
61 // provides the
62 // current value of
63 // tsb_ts.
64
65//====================================================================
66// Type declarations
67//====================================================================
68wire clk; // Clock
69wire rst_l; // Reset signal
70wire tsb_w_ld; // SW load bus
71wire [`FIRE_CSRBUS_DATA_WIDTH-1:0] csrbus_wr_data; // SW write data
72wire [`FIRE_DLC_MMU_CSR_TSB_WIDTH-1:0] tsb_csrbus_read_data; // SW read data
73wire [`FIRE_DLC_MMU_CSR_TSB_TB_INT_SLC] tsb_tb_hw_read; // This signal provides
74 // the current value of
75 // tsb_tb.
76wire tsb_ps_hw_read; // This signal provides the current value of tsb_ps.
77wire [`FIRE_DLC_MMU_CSR_TSB_TS_INT_SLC] tsb_ts_hw_read; // This signal provides
78 // the current value of
79 // tsb_ts.
80
81//====================================================================
82// Logic
83//====================================================================
84
85// synopsys translate_off
86// verilint 123 off
87// verilint 498 off
88reg omni_ld;
89reg [`FIRE_DLC_MMU_CSR_TSB_WIDTH-1:0] omni_data;
90
91// vlint flag_unsynthesizable_initial off
92initial
93 begin
94 omni_ld = 1'b0;
95 omni_data = `FIRE_DLC_MMU_CSR_TSB_WIDTH'b0;
96 end// vlint flag_unsynthesizable_initial on
97
98// verilint 123 on
99// verilint 498 on
100// synopsys translate_on
101
102//----- Hardware Data Out Mux Assignments
103assign tsb_tb_hw_read=
104 tsb_csrbus_read_data
105 [`FIRE_DLC_MMU_CSR_TSB_TB_SLC];
106assign tsb_ps_hw_read=
107 tsb_csrbus_read_data [8];
108assign tsb_ts_hw_read=
109 tsb_csrbus_read_data
110 [`FIRE_DLC_MMU_CSR_TSB_TS_SLC];
111
112//====================================================================
113// Instantiation of entries
114//====================================================================
115
116//----- Entry 0
117dmu_mmu_csr_tsb_entry tsb_0
118 (
119 // synopsys translate_off
120 .omni_ld (omni_ld),
121 .omni_data (omni_data),
122 // synopsys translate_on
123 .clk (clk),
124 .rst_l (rst_l),
125 .w_ld (tsb_w_ld),
126 .csrbus_wr_data (csrbus_wr_data),
127 .tsb_csrbus_read_data (tsb_csrbus_read_data)
128 );
129
130endmodule // dmu_mmu_csr_tsb