// ========== Copyright Header Begin ==========================================
// OpenSPARC T2 Processor File: l2t_wbufrpt_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 ============================================
wbuf_wbufrpt_leave_state0,
wbuf_wbufrpt_next_state_1,
cycle_count_less_than_7_din,
wire ff_latched_rdma_read_en_scanin;
wire ff_latched_rdma_read_en_scanout;
wire latched_rdma_read_en;
wire ff_l2t_l2b_evict_en_r0_scanin;
wire ff_l2t_l2b_evict_en_r0_scanout;
wire l2t_l2b_evict_en_r0_d1_n;
wire cycle_count_less_than_7;
wire l2t_l2b_evict_en_r0_n;
wire l2t_l2b_evict_en_r0;
wire evict_en_r0_d1_n_and_rdma_rd_en;
wire evict_en_r0_d1_n_and_wb_rd_en;
output l2t_l2b_wbrd_en_r0;
output l2t_l2b_rdma_rden_r0;
input wbuf_rdmat_read_en;
input wbuf_wbufrpt_leave_state0;
input wbuf_wbufrpt_next_state_1;
input cycle_count_less_than_7_din;
assign pce_ov = tcu_pce_ov;
assign stop = tcu_clk_stop;
l2t_msff_macro__dmsff_32x__stack_2r__width_2 ff_latched_rdma_read_en
.scan_in(ff_latched_rdma_read_en_scanin),
.scan_out(ff_latched_rdma_read_en_scanout),
.dout ({latched_wb_read_en,latched_rdma_read_en}),
.din ({wbuf_wb_read_en,wbuf_rdmat_read_en}),
.en (wbuf_wbufrpt_leave_state0),
l2t_msff_macro__dmsff_32x__stack_4r__width_3 ff_l2t_l2b_evict_en_r0
.scan_in(ff_l2t_l2b_evict_en_r0_scanin),
.scan_out(ff_l2t_l2b_evict_en_r0_scanout),
.dout ({state_bit1,l2t_l2b_evict_en_r0_d1_n,cycle_count_less_than_7}),
.din ({wbuf_wbufrpt_next_state_1,l2t_l2b_evict_en_r0_n,cycle_count_less_than_7_din}),
l2t_inv_macro__dinv_16x__width_1 inv_l2t_l2b_evict_en_r0
.dout (l2t_l2b_evict_en_r0),
.din (l2t_l2b_evict_en_r0_n)
cl_u1_aoi12_16x aoi_l2t_l2b_evict_en_r0
.out (l2t_l2b_evict_en_r0_n),
.in01 (mcu_l2t_wr_ack_d1),
.in10 (cycle_count_less_than_7)
l2t_and_macro__dinv_24x__dnand_16x__width_2 nand_evict_en_r0_d1_n_and_rd_en
.dout ({evict_en_r0_d1_n_and_rdma_rd_en,evict_en_r0_d1_n_and_wb_rd_en}),
.din0 ({l2t_l2b_evict_en_r0_d1_n,l2t_l2b_evict_en_r0_d1_n}),
.din1 ({latched_rdma_read_en,latched_wb_read_en})
l2t_and_macro__dinv_32x__dnand_24x__width_2 nand_l2t_l2b_rdma_rden_r0
.dout ({l2t_l2b_rdma_rden_r0,l2t_l2b_wbrd_en_r0}),
.din0 ({evict_en_r0_d1_n_and_rdma_rd_en,evict_en_r0_d1_n_and_wb_rd_en}),
.din1 ({l2t_l2b_evict_en_r0,l2t_l2b_evict_en_r0})
///////////////////////////////////////////////////////////////////////////////////////
//assign leave_state1 = (state_bit1 & mcu_l2t_wr_ack_d1);
//assign l2t_l2b_evict_en_r0 = (state_bit1 & mcu_l2t_wr_ack_d1) | cycle_count_less_than_7 ;
//assign l2t_l2b_rdma_rden_r0 = (l2t_l2b_evict_en_r0 & l2t_l2b_evict_en_r0_d1_n) & latched_rdma_read_en ;
//assign l2t_l2b_wbrd_en_r0 = (l2t_l2b_evict_en_r0 & l2t_l2b_evict_en_r0_d1_n) & latched_wb_read_en ;
///////////////////////////////////////////////////////////////////////////////////////
assign ff_latched_rdma_read_en_scanin = scan_in ;
assign ff_l2t_l2b_evict_en_r0_scanin = ff_latched_rdma_read_en_scanout;
assign scan_out = ff_l2t_l2b_evict_en_r0_scanout;
// any PARAMS parms go into naming of macro
module l2t_msff_macro__dmsff_32x__stack_4r__width_3 (
// and macro for ports = 2,3,4
module l2t_and_macro__dinv_24x__dnand_16x__width_2 (
// and macro for ports = 2,3,4
module l2t_and_macro__dinv_32x__dnand_24x__width_2 (
// any PARAMS parms go into naming of macro
module l2t_msff_macro__dmsff_32x__stack_2r__width_2 (
module l2t_inv_macro__dinv_16x__width_1 (