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