// ========== Copyright Header Begin ==========================================
// OpenSPARC T2 Processor File: tlu_tic_dp.v
// Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved
// 4150 Network Circle, Santa Clara, California 95054, U.S.A.
// * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; version 2 of the License.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
// For the avoidance of doubt, and except that if any non-GPL license
// choice is available it will apply instead, Sun elects to use only
// the General Public License version 2 (GPLv2) at this time for any
// software where a choice of GPL license versions is made
// available with the language indicating that GPLv2 or any later version
// may be used, or where a choice of which version of the GPL is applied is
// otherwise unspecified.
// Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
// CA 95054 USA or visit www.sun.com if you need additional information or
// ========== Copyright Header End ============================================
wire cmpr_addr_lat_scanin;
wire cmpr_addr_lat_scanout;
wire cmpr_data_lat_scanin;
wire cmpr_data_lat_scanout;
wire address0_m_lat_scanin;
wire address0_m_lat_scanout;
wire address1_m_lat_scanin;
wire address1_m_lat_scanout;
input [4:0] asi_tca_addr;
input asi_tca_addr_valid;
input [62:0] asi_wr_data;
input asi_mbist_run; // MBIST
input [1:0] asi_mbist_cmpsel; // MBIST
input [63:0] tca_cmpr_data_in;
input [7:0] cel_ecc; // MBIST
input [47:0] exu_address0_e; // For PCT but here for placement
input [47:0] exu_address1_e; // For PCT but here for placement
output [4:0] tic_cmpr_addr;
output [63:0] tic_asi_data;
output [63:0] tic_cmpr_data;
output [31:0] tic_mbist_data; // MBIST
output [47:2] tic_exu_address0_m; // For PCT but here for placement
output [47:2] tic_exu_address1_m; // For PCT but here for placement
output [1:0] tic_exu_address0_b; // For DFD
output [1:0] tic_exu_address1_b; // For DFD
// 0in bits_on -var {asi_wr_tick, asi_tca_wr} -max 1 -message "Writing TICK and CMPR at same time"
// 0in constant -var (asi_tca_wr & !asi_tca_addr_valid) -message "CMPR write valid without valid address"
////////////////////////////////////////////////////////////////////////////////
assign test = tcu_dectest;
tlu_tic_dp_buff_macro__width_4 clk_control_buf (
// Since bit 63 of the TICK and CMPR registers is stored negative active,
// need to invert write data and read data in tlu_asi_ctl
///////////////////////////////////////////////////////////////////////////////
// TICK.NPT (bit 63) is stored in tlu_asi_ctl and
tlu_tic_dp_or_macro__ports_2__width_1 tick_en_or (
tlu_tic_dp_msff_macro__mux_aope__ports_2__width_63 tick_lat (
.scan_in(tick_lat_scanin),
.scan_out(tick_lat_scanout),
tlu_tic_dp_increment_macro__width_64 tick_inc (
tlu_tic_dp_mux_macro__mux_pgpe__ports_2__width_6 cmpr_addr_mux (
.din0 ({asi_tca_addr [4:0],
.sel0 (asi_tca_addr_valid ),
.dout ({cmpr_addr_in [4:0],
tlu_tic_dp_inv_macro__width_1 cmpr_rd_en_in_inv (
assign tic_cmpr_addr[4:0] =
tlu_tic_dp_msff_macro__width_13 cmpr_addr_lat (
.scan_in(cmpr_addr_lat_scanin),
.scan_out(cmpr_addr_lat_scanout),
tlu_tic_dp_msff_macro__minbuff_1__width_64 cmpr_data_lat (
.scan_in(cmpr_data_lat_scanin),
.scan_out(cmpr_data_lat_scanout),
.din (tca_cmpr_data_in [63:0] ),
.dout (cmpr_data [63:0] ),
assign tic_cmpr_data[63:0] =
///////////////////////////////////////////////////////////////////////////////
// Have to ignore 7 bits because
// - 5 bits for 8 threads x 3 cmpr regs per thread (round to 4)
// - 1 bit for ASI reads or writes
// - 1 more bit because ASI reads and writes are in different ASI pipe stages
tlu_tic_dp_cmp_macro__width_64 tick_cmp (
.din0 ({cmpr_data [63:7],
// INTDIS is stored negative active (effectively an interrupt enable),
// so compare when INTDIS is 1
///////////////////////////////////////////////////////////////////////////////
// Note that bit 63 is inverted!
tlu_tic_dp_mux_macro__dmux_8x__mux_aope__ports_2__width_64 asi_lat (
.din1 (cmpr_data [63:0] ),
assign tic_asi_data[63:0] =
///////////////////////////////////////////////////////////////////////////////
tlu_tic_dp_msff_macro__width_2 cmpsel_lat (
.scan_in(cmpsel_lat_scanin),
.scan_out(cmpsel_lat_scanout),
.din (asi_mbist_cmpsel [1:0] ),
tlu_tic_dp_buff_macro__dbuff_32x__width_1 tst_mux_rep0 (
.dout (tcu_muxtest_rep0 )
tlu_tic_dp_mux_macro__mux_pgpe__ports_3__width_32 mbist_mux (
.din0 (cmpr_data [31:0] ),
.din1 (cmpr_data [63:32] ),
.din2 ({4 {cel_ecc [7:0]}}),
.muxtst (tcu_muxtest_rep0 ),
.dout (mbist_data [31:0] ),
assign tic_mbist_data[31:0] =
///////////////////////////////////////////////////////////////////////////////
// Flop EXU address for PCT
tlu_tic_dp_msff_macro__width_50 address0_m_lat (
.scan_in(address0_m_lat_scanin),
.scan_out(address0_m_lat_scanout),
.din ({exu_address0_e [47:0],
.dout ({tic_exu_address0_m [47:2],
tic_exu_address0_b [1:0]}),
tlu_tic_dp_msff_macro__width_50 address1_m_lat (
.scan_in(address1_m_lat_scanin),
.scan_out(address1_m_lat_scanout),
.din ({exu_address1_e [47:0],
.dout ({tic_exu_address1_m [47:2],
tic_exu_address1_b [1:0]}),
assign tick_lat_scanin = scan_in ;
assign cmpr_addr_lat_scanin = tick_lat_scanout ;
assign cmpr_data_lat_scanin = cmpr_addr_lat_scanout ;
assign cmpsel_lat_scanin = cmpr_data_lat_scanout ;
assign address0_m_lat_scanin = cmpsel_lat_scanout ;
assign address1_m_lat_scanin = address0_m_lat_scanout ;
assign scan_out = address1_m_lat_scanout ;
module tlu_tic_dp_buff_macro__width_4 (
// or macro for ports = 2,3
module tlu_tic_dp_or_macro__ports_2__width_1 (
// any PARAMS parms go into naming of macro
module tlu_tic_dp_msff_macro__mux_aope__ports_2__width_63 (
.so({so[61:0],scan_out}),
module tlu_tic_dp_increment_macro__width_64 (
// general mux macro for pass-gate and and-or muxes with/wout priority encoders
// also for pass-gate with decoder
// any PARAMS parms go into naming of macro
module tlu_tic_dp_mux_macro__mux_pgpe__ports_2__width_6 (
module tlu_tic_dp_inv_macro__width_1 (
// any PARAMS parms go into naming of macro
module tlu_tic_dp_msff_macro__width_13 (
.so({so[11:0],scan_out}),
// any PARAMS parms go into naming of macro
module tlu_tic_dp_msff_macro__minbuff_1__width_64 (
.so({so[62:0],scan_out}),
// comparator macro (output is 1 if both inputs are equal; 0 otherwise)
module tlu_tic_dp_cmp_macro__width_64 (
// general mux macro for pass-gate and and-or muxes with/wout priority encoders
// also for pass-gate with decoder
// any PARAMS parms go into naming of macro
module tlu_tic_dp_mux_macro__dmux_8x__mux_aope__ports_2__width_64 (
// any PARAMS parms go into naming of macro
module tlu_tic_dp_msff_macro__width_2 (
module tlu_tic_dp_buff_macro__dbuff_32x__width_1 (
// general mux macro for pass-gate and and-or muxes with/wout priority encoders
// also for pass-gate with decoder
// any PARAMS parms go into naming of macro
module tlu_tic_dp_mux_macro__mux_pgpe__ports_3__width_32 (
// any PARAMS parms go into naming of macro
module tlu_tic_dp_msff_macro__width_50 (
.so({so[48:0],scan_out}),