Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: dmu_imu_iss_csr_interrupt_mapping_50.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 dmu_imu_iss_csr_interrupt_mapping_50 | |
36 | ( | |
37 | clk, | |
38 | rst_l, | |
39 | interrupt_mapping_50_w_ld, | |
40 | csrbus_wr_data, | |
41 | interrupt_mapping_50_csrbus_read_data, | |
42 | interrupt_mapping_50_mdo_mode_hw_read, | |
43 | interrupt_mapping_50_v_hw_read, | |
44 | interrupt_mapping_50_t_id_hw_read, | |
45 | interrupt_mapping_50_int_cntrl_num_hw_read | |
46 | ); | |
47 | ||
48 | //==================================================================== | |
49 | // Polarity declarations | |
50 | //==================================================================== | |
51 | input clk; // Clock | |
52 | input rst_l; // Reset signal | |
53 | input interrupt_mapping_50_w_ld; // SW load bus | |
54 | input [`FIRE_CSRBUS_DATA_WIDTH-1:0] csrbus_wr_data; // SW write data | |
55 | output [`FIRE_DLC_IMU_ISS_CSR_INTERRUPT_MAPPING_50_WIDTH-1:0] interrupt_mapping_50_csrbus_read_data; | |
56 | // SW read data | |
57 | output interrupt_mapping_50_mdo_mode_hw_read; // This signal provides the | |
58 | // current value of | |
59 | // interrupt_mapping_50_mdo_mode. | |
60 | output interrupt_mapping_50_v_hw_read; // This signal provides the current | |
61 | // value of interrupt_mapping_50_v. | |
62 | output [`FIRE_DLC_IMU_ISS_CSR_INTERRUPT_MAPPING_50_T_ID_INT_SLC] interrupt_mapping_50_t_id_hw_read; | |
63 | // This signal provides the current value of interrupt_mapping_50_t_id. | |
64 | output [`FIRE_DLC_IMU_ISS_CSR_INTERRUPT_MAPPING_50_INT_CNTRL_NUM_INT_SLC] interrupt_mapping_50_int_cntrl_num_hw_read; | |
65 | // This signal provides the current value of | |
66 | // interrupt_mapping_50_int_cntrl_num. | |
67 | ||
68 | //==================================================================== | |
69 | // Type declarations | |
70 | //==================================================================== | |
71 | wire clk; // Clock | |
72 | wire rst_l; // Reset signal | |
73 | wire interrupt_mapping_50_w_ld; // SW load bus | |
74 | wire [`FIRE_CSRBUS_DATA_WIDTH-1:0] csrbus_wr_data; // SW write data | |
75 | wire [`FIRE_DLC_IMU_ISS_CSR_INTERRUPT_MAPPING_50_WIDTH-1:0] interrupt_mapping_50_csrbus_read_data; | |
76 | // SW read data | |
77 | wire interrupt_mapping_50_mdo_mode_hw_read; // This signal provides the current | |
78 | // value of | |
79 | // interrupt_mapping_50_mdo_mode. | |
80 | wire interrupt_mapping_50_v_hw_read; // This signal provides the current value | |
81 | // of interrupt_mapping_50_v. | |
82 | wire [`FIRE_DLC_IMU_ISS_CSR_INTERRUPT_MAPPING_50_T_ID_INT_SLC] interrupt_mapping_50_t_id_hw_read; | |
83 | // This signal provides the current value of interrupt_mapping_50_t_id. | |
84 | wire [`FIRE_DLC_IMU_ISS_CSR_INTERRUPT_MAPPING_50_INT_CNTRL_NUM_INT_SLC] interrupt_mapping_50_int_cntrl_num_hw_read; | |
85 | // This signal provides the current value of | |
86 | // interrupt_mapping_50_int_cntrl_num. | |
87 | ||
88 | //==================================================================== | |
89 | // Logic | |
90 | //==================================================================== | |
91 | ||
92 | // synopsys translate_off | |
93 | // verilint 123 off | |
94 | // verilint 498 off | |
95 | reg omni_ld; | |
96 | reg [`FIRE_DLC_IMU_ISS_CSR_INTERRUPT_MAPPING_50_WIDTH-1:0] omni_data; | |
97 | ||
98 | // vlint flag_unsynthesizable_initial off | |
99 | initial | |
100 | begin | |
101 | omni_ld = 1'b0; | |
102 | omni_data = `FIRE_DLC_IMU_ISS_CSR_INTERRUPT_MAPPING_50_WIDTH'b0; | |
103 | end// vlint flag_unsynthesizable_initial on | |
104 | ||
105 | // verilint 123 on | |
106 | // verilint 498 on | |
107 | // synopsys translate_on | |
108 | ||
109 | //----- Hardware Data Out Mux Assignments | |
110 | assign interrupt_mapping_50_mdo_mode_hw_read= | |
111 | interrupt_mapping_50_csrbus_read_data [63]; | |
112 | assign interrupt_mapping_50_v_hw_read= | |
113 | interrupt_mapping_50_csrbus_read_data [31]; | |
114 | assign interrupt_mapping_50_t_id_hw_read= | |
115 | interrupt_mapping_50_csrbus_read_data | |
116 | [`FIRE_DLC_IMU_ISS_CSR_INTERRUPT_MAPPING_50_T_ID_SLC]; | |
117 | assign interrupt_mapping_50_int_cntrl_num_hw_read= | |
118 | interrupt_mapping_50_csrbus_read_data | |
119 | [`FIRE_DLC_IMU_ISS_CSR_INTERRUPT_MAPPING_50_INT_CNTRL_NUM_SLC]; | |
120 | ||
121 | //==================================================================== | |
122 | // Instantiation of entries | |
123 | //==================================================================== | |
124 | ||
125 | //----- Entry 0 | |
126 | dmu_imu_iss_csr_interrupt_mapping_50_entry interrupt_mapping_50_0 | |
127 | ( | |
128 | // synopsys translate_off | |
129 | .omni_ld (omni_ld), | |
130 | .omni_data (omni_data), | |
131 | // synopsys translate_on | |
132 | .clk (clk), | |
133 | .rst_l (rst_l), | |
134 | .w_ld (interrupt_mapping_50_w_ld), | |
135 | .csrbus_wr_data (csrbus_wr_data), | |
136 | .interrupt_mapping_50_csrbus_read_data (interrupt_mapping_50_csrbus_read_data) | |
137 | ); | |
138 | ||
139 | endmodule // dmu_imu_iss_csr_interrupt_mapping_50 |