Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / design / sys / iop / dmu / rtl / dmu_imu_rds_msi_stage_mux_only.v
CommitLineData
86530b38
AT
1// ========== Copyright Header Begin ==========================================
2//
3// OpenSPARC T2 Processor File: dmu_imu_rds_msi_stage_mux_only.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_rds_msi_stage_mux_only
36 (
37 clk,
38 read_data_0,
39 msi_mapping_select,
40 msi_mapping_select_out,
41 msi_clear_reg_select,
42 msi_clear_reg_select_out,
43 int_mondo_data_0_reg_select_pulse,
44 int_mondo_data_0_reg_select_pulse_out,
45 int_mondo_data_1_reg_select_pulse,
46 int_mondo_data_1_reg_select_pulse_out,
47 daemon_csrbus_wr_in,
48 daemon_csrbus_wr_out,
49 daemon_csrbus_wr_data_in,
50 daemon_csrbus_wr_data_out,
51 ext_addr_in,
52 ext_addr_out,
53 read_data_0_out,
54 rst_l,
55 rst_l_out
56 );
57
58//====================================================
59// Polarity declarations
60//====================================================
61input clk; // Clock signal
62input [`FIRE_CSRBUS_DATA_WIDTH - 1:0] read_data_0; // Read Data
63input msi_mapping_select; // select
64output msi_mapping_select_out; // select
65input msi_clear_reg_select; // select
66output msi_clear_reg_select_out; // select
67input int_mondo_data_0_reg_select_pulse; // select
68output int_mondo_data_0_reg_select_pulse_out; // select
69input int_mondo_data_1_reg_select_pulse; // select
70output int_mondo_data_1_reg_select_pulse_out; // select
71input daemon_csrbus_wr_in; // csrbus_wr
72output daemon_csrbus_wr_out; // csrbus_wr
73input [`FIRE_CSRBUS_DATA_WIDTH-1:0] daemon_csrbus_wr_data_in; // SW write data
74output [`FIRE_CSRBUS_DATA_WIDTH-1:0] daemon_csrbus_wr_data_out; // SW write
75 // data
76input [7:0] ext_addr_in; // Ext addr
77output [7:0] ext_addr_out; // Ext addr
78output [`FIRE_CSRBUS_DATA_WIDTH - 1:0] read_data_0_out; // Read Data
79input rst_l; // HW reset
80output rst_l_out; // HW reset
81
82//====================================================
83// Type declarations
84//====================================================
85wire clk; // Clock signal
86wire [`FIRE_CSRBUS_DATA_WIDTH - 1:0] read_data_0; // Read Data
87wire msi_mapping_select; // select
88wire msi_mapping_select_out; // select
89wire msi_clear_reg_select; // select
90wire msi_clear_reg_select_out; // select
91wire int_mondo_data_0_reg_select_pulse; // select
92wire int_mondo_data_0_reg_select_pulse_out; // select
93wire int_mondo_data_1_reg_select_pulse; // select
94wire int_mondo_data_1_reg_select_pulse_out; // select
95wire daemon_csrbus_wr_in; // csrbus_wr
96wire daemon_csrbus_wr_out; // csrbus_wr
97wire [`FIRE_CSRBUS_DATA_WIDTH-1:0] daemon_csrbus_wr_data_in; // SW write data
98wire [`FIRE_CSRBUS_DATA_WIDTH-1:0] daemon_csrbus_wr_data_out; // SW write data
99wire [7:0] ext_addr_in; // Ext addr
100wire [7:0] ext_addr_out; // Ext addr
101wire [`FIRE_CSRBUS_DATA_WIDTH - 1:0] read_data_0_out; // Read Data
102wire rst_l; // HW reset
103wire rst_l_out; // HW reset
104
105
106//====================================================
107// Assignments only
108//====================================================
109assign msi_mapping_select_out = msi_mapping_select;
110assign msi_clear_reg_select_out = msi_clear_reg_select;
111assign int_mondo_data_0_reg_select_pulse_out = int_mondo_data_0_reg_select_pulse;
112assign int_mondo_data_1_reg_select_pulse_out = int_mondo_data_1_reg_select_pulse;
113assign rst_l_out = rst_l;
114assign daemon_csrbus_wr_out = daemon_csrbus_wr_in;
115assign daemon_csrbus_wr_data_out = daemon_csrbus_wr_data_in;
116assign ext_addr_out = ext_addr_in;
117
118
119//=====================================================
120// OUTPUT: read_data_out
121//=====================================================
122dmu_imu_rds_msi_csrpipe_1 dmu_imu_rds_msi_csrpipe_1_inst_1
123 (
124 .clk (clk),
125 .rst_l (rst_l),
126 .reg_in (1'b0),
127 .reg_out (1'b0),
128 .data0 (read_data_0),
129 .sel0 (1'b1),
130 .out (read_data_0_out)
131 );
132
133endmodule // dmu_imu_rds_msi_stage_mux_only