// ========== Copyright Header Begin ==========================================
// OpenSPARC T2 Processor File: fgu_fad_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 ============================================
fdc_finish_fltd_early_rep0,
fdc_finish_flts_early_rep0,
wire mbist_frf_write_en_1f;
wire [4:0] aman_fmt_sel_fx1;
wire [4:0] bman_fmt_sel_fx1;
wire [1:0] pre_fld_vld_fb;
wire [1:0] pre_fld_vld_fw;
wire [63:0] w2_result_fw1;
wire [63:0] w1_result_fw;
wire [11:0] fsr0_fttexc_merged_fw;
wire fx1_fsr0_wmr_scanin;
wire fx1_fsr0_wmr_scanout;
wire [27:0] ldfsr_data_fw;
wire [11:0] fsr1_fttexc_merged_fw;
wire fx1_fsr1_wmr_scanin;
wire fx1_fsr1_wmr_scanout;
wire [11:0] fsr2_fttexc_merged_fw;
wire fx1_fsr2_wmr_scanin;
wire fx1_fsr2_wmr_scanout;
wire [11:0] fsr3_fttexc_merged_fw;
wire fx1_fsr3_wmr_scanin;
wire fx1_fsr3_wmr_scanout;
wire [11:0] fsr4_fttexc_merged_fw;
wire fx1_fsr4_wmr_scanin;
wire fx1_fsr4_wmr_scanout;
wire [11:0] fsr5_fttexc_merged_fw;
wire fx1_fsr5_wmr_scanin;
wire fx1_fsr5_wmr_scanout;
wire [11:0] fsr6_fttexc_merged_fw;
wire fx1_fsr6_wmr_scanin;
wire fx1_fsr6_wmr_scanout;
wire [11:0] fsr7_fttexc_merged_fw;
wire fx1_fsr7_wmr_scanin;
wire fx1_fsr7_wmr_scanout;
wire flop_rng1_4f_scanin;
wire flop_rng1_4f_scanout;
wire [62:0] rngl_cdbus_4f;
wire flop_rng0_4f_scanin;
wire flop_rng0_4f_scanout;
wire [63:0] fst_data_fx1;
wire [1:0] pre_fpd_vld_fb;
wire lsu_fgu_fld_odd32b_b_;
wire lsu_fgu_fsr_load_b_;
wire div_finish_flts_even_fb;
wire div_finish_flts_odd_fb;
wire [62:11] q_fdd_result_rep0;
wire [63:0] w2_result_fb;
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
input [4:0] dec_frf_r2_addr_d;
input dec_frf_r1_odd32b_d;
input dec_frf_r2_odd32b_d;
output [7:0] fgu_fld_fcc_fx3; // ldfsr fcc data {fcc3[1:0], fcc2[1:0], fcc1[1:0], fcc0[1:0]}
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
input [63:0] lsu_fgu_fld_data_b;
input [4:0] lsu_fgu_fld_addr_b;
input [2:0] lsu_fgu_fld_tid_b;
input lsu_fgu_fld_odd32b_b;
input lsu_fgu_fsr_load_b;
output [63:0] fgu_lsu_fst_data_fx1;
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
input [63:0] exu_fgu_rs1_e;
input [63:0] exu_fgu_rs2_e;
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
input [4:0] fac_frf_r1_addr_e;
input [4:0] fac_aman_fmt_sel_e; // aop mantissa format mux select
input [4:0] fac_bman_fmt_sel_e; // bop mantissa format mux select
input [3:0] fac_fst_fmt_sel_fx1; // store format mux select
input [4:0] fac_w1_addr_fb; // FRF w1 write addr
input [4:0] fac_fpd_addr_fb; // FRF w2 write addr (div/sqrt)
input fac_w1_32b_fb; // FRF w1 is 32-bit dest
input fac_fpd_32b_fb; // FRF w2 is 32-bit dest (div/sqrt)
input fac_w1_odd32b_fb; // FRF w1 is odd 32-bit dest (32 LSBs)
input fac_fpd_odd32b_fb; // FRF w2 is odd 32-bit dest (32 LSBs) (div/sqrt)
input [2:0] fac_w1_tid_fb; // FRF w1 TID
input [2:0] fac_fpd_tid_fb; // FRF w2 TID (div/sqrt)
input [5:0] fac_fsr0_sel_fw;
input [5:0] fac_fsr1_sel_fw;
input [5:0] fac_fsr2_sel_fw;
input [5:0] fac_fsr3_sel_fw;
input [5:0] fac_fsr4_sel_fw;
input [5:0] fac_fsr5_sel_fw;
input [5:0] fac_fsr6_sel_fw;
input [5:0] fac_fsr7_sel_fw;
input main_clken; // main clken
input asi_clken; // asi clken: controls ASI ring stage flops in fgd/fad
input coreon_clken; // controls all "free running" flops
output fad_w2_addr_fw1_b4; // FRF w2 write addr (LSU->FRF path,
output [2:0] fad_w2_tid_fw1; // FRF w2 write TID delayed to fw1)
output [1:0] fad_w2_vld_fw1; // FRF w2 write valid (qualified)
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
input [1:0] fpc_w1_vld_fb; // FRF w1 write valid (qualified), [63:32],[31:0]
input fpc_w1_ul_vld_fb; // FRF w1 write valid (qualified), upper or lower
input [11:0] fpc_fsr_w1_result_fw; // FSR w1 write data {ftt,aexc,cexc}
input [11:0] fpc_fsr_w2_result_fw; // FSR w2 write data {ftt,aexc,cexc}
input [10:0] fpc_fpd_exp_res; // FPD exponent result
input fpc_fpd_sign_res; // FPD sign result
input [1:0] fpc_fpd_const_sel; // 10=ones frac, 01=fdd frac, 00=zero frac
input fpc_fpd_ieee_trap_fb;
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
output [2:0] fad_gsr_imirnd_fx1; // {GSR.im,GSR.irnd[1:0]}
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
input [63:0] frf_r1_data_e; // FRF rs1 read data
input [63:0] frf_r2_data_e; // FRF rs2 read data
output [2:0] fad_w1_tid_fw; // FRF w1 write TID
output [1:0] fad_w1_vld_fw; // FRF w1 write valid (qualified)
output [63:0] fad_w2_result_fw; // FRF w2 write data for FRF
output [4:0] fad_w2_addr_fw; // FRF w2 write addr
output [2:0] fad_w2_tid_fw; // FRF w2 write TID (LSU->FRF path,
output [1:0] fad_w2_vld_fw; // FRF w2 write valid delayed to fw)
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
output [63:0] fad_nombi_w2_result_fw; // FRF w2 write data w/out mbist data muxed in
output fad_r1_byp_hit_fx1; // r1 is bypass data
output fad_r2_byp_hit_fx1; // r2 is bypass data
output fad_i_parity_2e_fx1; // partial ECC check (parity portion), rs2 even
output fad_i_parity_2o_fx1; // partial ECC check (parity portion), rs2 odd
output fad_i_parity_1e_fx1; // partial ECC check (parity portion), rs1 even
output fad_i_parity_1o_fx1; // partial ECC check (parity portion), rs1 odd
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
input [63:0] fpf_w1_result_fb; // FPX result
output [63:0] fad_rs1_fmt_fx1; // rs1 formatted
output [63:0] fad_rs2_fmt_fx1; // rs2 formatted
output [63:0] fad_rs1_fx1; // rs1 unformatted
output [63:0] fad_rs2_fx1; // rs2 unformatted
output fad_r1_odd32b_fx1;
output [1:0] fad_fsr_rd_fx1;
output [4:0] fad_fsr_tem_fx1;
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
input [62:11] fdd_result_rep0; // FDD result
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
input fdc_finish_fltd_early_rep0;
input fdc_finish_flts_early_rep0;
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
input [62:0] fgd_rngl_cdbus_3f;
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
input l2clk; // clock input
input tcu_pce_ov; // scan signals
input tcu_se_scancollar_out;
input mbi_frf_write_en; // MBIST
input [7:0] fac_mbist_addr_1f; // MBIST
input [7:0] fec_mbist_wdata_1f; // MBIST
input [7:0] fec_mbist_wdata_3f; // MBIST
output fad_mbist_cmp64_fx1; // MBIST
output [62:0] fgu_rngl_cdbus; // ASI local ring
fgu_fad_dp_buff_macro__dbuff_32x__rep_1__width_4 test_rep0 (
.din ({tcu_scan_en, tcu_pce_ov, spc_aclk, spc_bclk}),
.dout({se, pce_ov, siclk, soclk })
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
fgu_fad_dp_msff_macro__width_47 e_01 (
.din ({fad_w2_vld_fw[1:0],
fdc_finish_flts_early_rep0,
fdc_finish_fltd_early_rep0,
fac_bman_fmt_sel_e[4:0]}),
.dout({fad_w2_vld_fw1[1:0],
fgu_fad_dp_msff_macro__width_23 e_01_extra (
.scan_in(e_01_extra_scanin),
.scan_out(e_01_extra_scanout),
.din ({dec_frf_r2_addr_d[4:0], // requires free running clk or dec_fgu_decode_d en
dec_frf_r1_32b_d, // requires free running clk or dec_fgu_decode_d en
dec_frf_r2_32b_d, // requires free running clk or dec_fgu_decode_d en
dec_frf_r1_odd32b_d, // requires free running clk or dec_fgu_decode_d en
dec_frf_r2_odd32b_d, // requires free running clk or dec_fgu_decode_d en
w2_addr_fb[4:0], // requires free running clk
w2_tid_fb[2:0], // requires free running clk
w2_32b_fb, // requires free running clk
w2_odd32b_fb, // requires free running clk
pre_fld_vld_fb[1:0], // requires free running clk
lsu_fgu_fld_b, // requires free running clk
fld_fw}), // requires free running clk
// ------------------------------------
// ------------------------------------
// SP->DP bypass is not supported (evil-twin)
// DP->SP bypass is supported only for a DP load bypassing to a SP arith.
// DP arith. bypassing to SP arith. isn't supported due to IFU considerations.
// If 64b result and 32b source then "32b" and "odd32b" signals are don't care,
// force the source "32b" and "odd32b" signals to zero to match the 64b result's
// "32b" and "odd32b" signals
fgu_fad_dp_and_macro__ports_2__width_2 and_q2 (
.din0({lsu_fgu_fld_32b_b, lsu_fgu_fld_32b_b}),
.din1({ r1_32b_e, r1_odd32b_e }),
.dout({q2_r1_32b_e, q2_r1_odd32b_e })
fgu_fad_dp_and_macro__ports_2__width_2 and_q3 (
.din0({lsu_fgu_fld_32b_b, lsu_fgu_fld_32b_b}),
.din1({ r2_32b_e, r2_odd32b_e }),
.dout({q3_r2_32b_e, q3_r2_odd32b_e })
fgu_fad_dp_and_macro__ports_2__width_2 and_q6 (
.din0({w2_32b_fw, w2_32b_fw }),
.din1({ r1_32b_e, r1_odd32b_e}),
.dout({q6_r1_32b_e, q6_r1_odd32b_e})
fgu_fad_dp_and_macro__ports_2__width_2 and_q7 (
.din0({w2_32b_fw, w2_32b_fw }),
.din1({ r2_32b_e, r2_odd32b_e}),
.dout({q7_r2_32b_e, q7_r2_odd32b_e})
fgu_fad_dp_and_macro__ports_2__width_2 and_q8 (
.din0({w2_32b_fw1, w2_32b_fw1 }),
.din1({ r2_32b_e, r2_odd32b_e}),
.dout({q8_r2_32b_e, q8_r2_odd32b_e})
fgu_fad_dp_and_macro__ports_2__width_2 and_q9 (
.din0({w2_32b_fw1, w2_32b_fw1 }),
.din1({ r1_32b_e, r1_odd32b_e}),
.dout({q9_r1_32b_e, q9_r1_odd32b_e})
fgu_fad_dp_cmp_macro__width_12 cmp_r1a (
.din0({fac_frf_r1_addr_e[4:0],
.din1({fac_w1_addr_fb[4:0],
fgu_fad_dp_cmp_macro__width_12 cmp_r1b (
.din0({fac_frf_r1_addr_e[4:0],
.din1({lsu_fgu_fld_addr_b[4:0],
lsu_fgu_fld_b, // load fsr is serializing, can't cause a fld_hit
fgu_fad_dp_cmp_macro__width_12 cmp_r1c (
.din0({fac_frf_r1_addr_e[4:0],
fgu_fad_dp_cmp_macro__width_12 cmp_r1d (
.din0({fac_frf_r1_addr_e[4:0],
.din1({fad_w2_addr_fw[4:0],
fld_fw, // load fsr is serializing, can't cause a fld_hit
fgu_fad_dp_cmp_macro__width_12 cmp_r1e (
.din0({fac_frf_r1_addr_e[4:0],
.din1({fad_w2_addr_fw1_b4, w2_addr_fw1[3:0],
fld_fw1, // load fsr is serializing, can't cause a fld_hit
fgu_fad_dp_cmp_macro__width_12 cmp_r2a (
.din1({fac_w1_addr_fb[4:0],
fgu_fad_dp_cmp_macro__width_12 cmp_r2b (
.din1({lsu_fgu_fld_addr_b[4:0],
lsu_fgu_fld_b, // load fsr is serializing, can't cause a fld_hit
fgu_fad_dp_cmp_macro__width_12 cmp_r2c (
fgu_fad_dp_cmp_macro__width_12 cmp_r2d (
.din1({fad_w2_addr_fw[4:0],
fld_fw, // load fsr is serializing, can't cause a fld_hit
fgu_fad_dp_cmp_macro__width_12 cmp_r2e (
.din1({fad_w2_addr_fw1_b4, w2_addr_fw1[3:0],
fld_fw1, // load fsr is serializing, can't cause a fld_hit
fgu_fad_dp_nor_macro__ports_3__width_4 rs_vld0 (
.din0({r1_fld_hit_fb, r1_w2_hit_fw1, r2_fld_hit_fb, r2_w2_hit_fw1 }),
.din1({r1_w1_hit_fb, r1_w1_hit_fw, r2_w1_hit_fb, r2_w1_hit_fw }),
.din2({r1_w2_hit_fw, 1'b0, r2_w2_hit_fw, 1'b0 }),
.dout({i1_r1_byp_hit_e, i2_r1_byp_hit_e, i1_r2_byp_hit_e, i2_r2_byp_hit_e})
fgu_fad_dp_nand_macro__ports_2__width_2 rs_vld1 (
.din0({i1_r1_byp_hit_e, i1_r2_byp_hit_e}),
.din1({i2_r1_byp_hit_e, i2_r2_byp_hit_e}),
.dout({r1_byp_hit_e, r2_byp_hit_e })
// ------------------------------------
// ------------------------------------
fgu_fad_dp_msff_macro__dmux_4x__mux_aope__ports_7__width_64 fx1_rs1byp (
.scan_in(fx1_rs1byp_scanin),
.scan_out(fx1_rs1byp_scanout),
.se (tcu_se_scancollar_out),
.din0(exu_fgu_rs1_e[63:0]),
.din1(lsu_fgu_fld_data_b[63:0]),
.din2(fpf_w1_result_fb[63:0]),
.din3(fad_nombi_w2_result_fw[63:0]),
.din4(w2_result_fw1[63:0]),
.din5(w1_result_fw[63:0]),
.din6(frf_r1_data_e[63:0]), // functional or MBIST read data
.dout(fad_rs1_fx1[63:0]),
fgu_fad_dp_cmp_macro__width_64 cmp_mbist (
.din0({8{fec_mbist_wdata_3f[7:0]}}),
.din1(fad_rs1_fx1[63:0]),
.dout(fad_mbist_cmp64_fx1)
fgu_fad_dp_msff_macro__dmux_4x__mux_aope__ports_7__width_64 fx1_rs2byp (
.scan_in(fx1_rs2byp_scanin),
.scan_out(fx1_rs2byp_scanout),
.se (tcu_se_scancollar_out),
.din0(exu_fgu_rs2_e[63:0]),
.din1(lsu_fgu_fld_data_b[63:0]),
.din2(fpf_w1_result_fb[63:0]),
.din3(fad_nombi_w2_result_fw[63:0]),
.din4(w2_result_fw1[63:0]),
.din5(w1_result_fw[63:0]),
.din6(frf_r2_data_e[63:0]),
.dout(fad_rs2_fx1[63:0]),
// ------------------------------------
// Begin ECC check for rs1/rs2 here, complete it in FEC
// ------------------------------------
fgu_fad_dp_prty_macro__width_32 ecc_parity_2e (
.din (fad_rs2_fx1[63:32]),
.dout(fad_i_parity_2e_fx1)
fgu_fad_dp_prty_macro__width_32 ecc_parity_2o (
.din (fad_rs2_fx1[31:0]),
.dout(fad_i_parity_2o_fx1)
fgu_fad_dp_prty_macro__width_32 ecc_parity_1e (
.din (fad_rs1_fx1[63:32]),
.dout(fad_i_parity_1e_fx1)
fgu_fad_dp_prty_macro__width_32 ecc_parity_1o (
.din (fad_rs1_fx1[31:0]),
.dout(fad_i_parity_1o_fx1)
// ------------------------------------
// FSR w1,w2,hold mux/flop, threads 0-7
// ------------------------------------
fgu_fad_dp_mux_macro__mux_aonpe__ports_3__stack_32l__width_12 fsr0_in (
.din0(fpc_fsr_w1_result_fw[11:0]), // w1 {ftt,aexc,cexc}
.din1(fpc_fsr_w2_result_fw[11:0]), // fdiv/fsqrt {ftt,aexc,cexc}
.din2({2'b0, fsr0_fx1[17:13], 5'b0}), // accrued aexc
.sel0(fac_fsr0_sel_fw[4]),
.sel1(fac_fsr0_sel_fw[5]),
.dout(fsr0_fttexc_merged_fw[11:0])
fgu_fad_dp_msff_macro__mux_aodec__ports_8__stack_32l__width_28 fx1_fsr0 ( // FS:wmr_protect
.scan_in(fx1_fsr0_wmr_scanin),
.scan_out(fx1_fsr0_wmr_scanout),
.en (fac_fsr0_sel_fw[3]),
.din0({ldfsr_data_fw[27:26], // LDFSR: rd
ldfsr_data_fw[25:21], // tem
ldfsr_data_fw[17:8], // aexc,cexc
ldfsr_data_fw[1:0]}), // fcc0
.din1({ldfsr_data_fw[27:26], // LDXFSR: rd
ldfsr_data_fw[25:21], // tem
ldfsr_data_fw[17:8], // aexc,cexc
ldfsr_data_fw[7:6], // fcc3
ldfsr_data_fw[5:4], // fcc2
ldfsr_data_fw[3:2], // fcc1
ldfsr_data_fw[1:0]}), // fcc0
.din2({fsr0_fx1[27:26], // ST(X)FSR: rd
fsr0_fttexc_merged_fw[11:10], // ftt
fsr0_fx1[17:8], // aexc,cexc
.din3({fsr0_fx1[27:26], // FCMP(E) fcc0: rd
fsr0_fttexc_merged_fw[11:10], // ftt
fsr0_fttexc_merged_fw[9:0], // aexc,cexc
fpc_fcc_fw[1:0]}), // fcc0
.din4({fsr0_fx1[27:26], // FCMP(E) fcc1: rd
fsr0_fttexc_merged_fw[11:10], // ftt
fsr0_fttexc_merged_fw[9:0], // aexc,cexc
.din5({fsr0_fx1[27:26], // FCMP(E) fcc2: rd
fsr0_fttexc_merged_fw[11:10], // ftt
fsr0_fttexc_merged_fw[9:0], // aexc,cexc
.din6({fsr0_fx1[27:26], // FCMP(E) fcc3: rd
fsr0_fttexc_merged_fw[11:10], // ftt
fsr0_fttexc_merged_fw[9:0], // aexc,cexc
.din7({fsr0_fx1[27:26], // other FPop: rd
fsr0_fttexc_merged_fw[11:10], // ftt
fsr0_fttexc_merged_fw[9:0], // aexc,cexc
.sel (fac_fsr0_sel_fw[2:0]),
fgu_fad_dp_mux_macro__mux_aonpe__ports_3__stack_32l__width_12 fsr1_in (
.din0(fpc_fsr_w1_result_fw[11:0]), // w1 {ftt,aexc,cexc}
.din1(fpc_fsr_w2_result_fw[11:0]), // fdiv/fsqrt {ftt,aexc,cexc}
.din2({2'b0, fsr1_fx1[17:13], 5'b0}), // accrued aexc
.sel0(fac_fsr1_sel_fw[4]),
.sel1(fac_fsr1_sel_fw[5]),
.dout(fsr1_fttexc_merged_fw[11:0])
fgu_fad_dp_msff_macro__mux_aodec__ports_8__stack_32l__width_28 fx1_fsr1 ( // FS:wmr_protect
.scan_in(fx1_fsr1_wmr_scanin),
.scan_out(fx1_fsr1_wmr_scanout),
.en (fac_fsr1_sel_fw[3]),
.din0({ldfsr_data_fw[27:26], // LDFSR: rd
ldfsr_data_fw[25:21], // tem
ldfsr_data_fw[17:8], // aexc,cexc
ldfsr_data_fw[1:0]}), // fcc0
.din1({ldfsr_data_fw[27:26], // LDXFSR: rd
ldfsr_data_fw[25:21], // tem
ldfsr_data_fw[17:8], // aexc,cexc
ldfsr_data_fw[7:6], // fcc3
ldfsr_data_fw[5:4], // fcc2
ldfsr_data_fw[3:2], // fcc1
ldfsr_data_fw[1:0]}), // fcc0
.din2({fsr1_fx1[27:26], // ST(X)FSR: rd
fsr1_fttexc_merged_fw[11:10], // ftt
fsr1_fx1[17:8], // aexc,cexc
.din3({fsr1_fx1[27:26], // FCMP(E) fcc0: rd
fsr1_fttexc_merged_fw[11:10], // ftt
fsr1_fttexc_merged_fw[9:0], // aexc,cexc
fpc_fcc_fw[1:0]}), // fcc0
.din4({fsr1_fx1[27:26], // FCMP(E) fcc1: rd
fsr1_fttexc_merged_fw[11:10], // ftt
fsr1_fttexc_merged_fw[9:0], // aexc,cexc
.din5({fsr1_fx1[27:26], // FCMP(E) fcc2: rd
fsr1_fttexc_merged_fw[11:10], // ftt
fsr1_fttexc_merged_fw[9:0], // aexc,cexc
.din6({fsr1_fx1[27:26], // FCMP(E) fcc3: rd
fsr1_fttexc_merged_fw[11:10], // ftt
fsr1_fttexc_merged_fw[9:0], // aexc,cexc
.din7({fsr1_fx1[27:26], // other FPop: rd
fsr1_fttexc_merged_fw[11:10], // ftt
fsr1_fttexc_merged_fw[9:0], // aexc,cexc
.sel (fac_fsr1_sel_fw[2:0]),
fgu_fad_dp_mux_macro__mux_aonpe__ports_3__stack_32l__width_12 fsr2_in (
.din0(fpc_fsr_w1_result_fw[11:0]), // w1 {ftt,aexc,cexc}
.din1(fpc_fsr_w2_result_fw[11:0]), // fdiv/fsqrt {ftt,aexc,cexc}
.din2({2'b0, fsr2_fx1[17:13], 5'b0}), // accrued aexc
.sel0(fac_fsr2_sel_fw[4]),
.sel1(fac_fsr2_sel_fw[5]),
.dout(fsr2_fttexc_merged_fw[11:0])
fgu_fad_dp_msff_macro__mux_aodec__ports_8__stack_32l__width_28 fx1_fsr2 ( // FS:wmr_protect
.scan_in(fx1_fsr2_wmr_scanin),
.scan_out(fx1_fsr2_wmr_scanout),
.en (fac_fsr2_sel_fw[3]),
.din0({ldfsr_data_fw[27:26], // LDFSR: rd
ldfsr_data_fw[25:21], // tem
ldfsr_data_fw[17:8], // aexc,cexc
ldfsr_data_fw[1:0]}), // fcc0
.din1({ldfsr_data_fw[27:26], // LDXFSR: rd
ldfsr_data_fw[25:21], // tem
ldfsr_data_fw[17:8], // aexc,cexc
ldfsr_data_fw[7:6], // fcc3
ldfsr_data_fw[5:4], // fcc2
ldfsr_data_fw[3:2], // fcc1
ldfsr_data_fw[1:0]}), // fcc0
.din2({fsr2_fx1[27:26], // ST(X)FSR: rd
fsr2_fttexc_merged_fw[11:10], // ftt
fsr2_fx1[17:8], // aexc,cexc
.din3({fsr2_fx1[27:26], // FCMP(E) fcc0: rd
fsr2_fttexc_merged_fw[11:10], // ftt
fsr2_fttexc_merged_fw[9:0], // aexc,cexc
fpc_fcc_fw[1:0]}), // fcc0
.din4({fsr2_fx1[27:26], // FCMP(E) fcc1: rd
fsr2_fttexc_merged_fw[11:10], // ftt
fsr2_fttexc_merged_fw[9:0], // aexc,cexc
.din5({fsr2_fx1[27:26], // FCMP(E) fcc2: rd
fsr2_fttexc_merged_fw[11:10], // ftt
fsr2_fttexc_merged_fw[9:0], // aexc,cexc
.din6({fsr2_fx1[27:26], // FCMP(E) fcc3: rd
fsr2_fttexc_merged_fw[11:10], // ftt
fsr2_fttexc_merged_fw[9:0], // aexc,cexc
.din7({fsr2_fx1[27:26], // other FPop: rd
fsr2_fttexc_merged_fw[11:10], // ftt
fsr2_fttexc_merged_fw[9:0], // aexc,cexc
.sel (fac_fsr2_sel_fw[2:0]),
fgu_fad_dp_mux_macro__mux_aonpe__ports_3__stack_32l__width_12 fsr3_in (
.din0(fpc_fsr_w1_result_fw[11:0]), // w1 {ftt,aexc,cexc}
.din1(fpc_fsr_w2_result_fw[11:0]), // fdiv/fsqrt {ftt,aexc,cexc}
.din2({2'b0, fsr3_fx1[17:13], 5'b0}), // accrued aexc
.sel0(fac_fsr3_sel_fw[4]),
.sel1(fac_fsr3_sel_fw[5]),
.dout(fsr3_fttexc_merged_fw[11:0])
fgu_fad_dp_msff_macro__mux_aodec__ports_8__stack_32l__width_28 fx1_fsr3 ( // FS:wmr_protect
.scan_in(fx1_fsr3_wmr_scanin),
.scan_out(fx1_fsr3_wmr_scanout),
.en (fac_fsr3_sel_fw[3]),
.din0({ldfsr_data_fw[27:26], // LDFSR: rd
ldfsr_data_fw[25:21], // tem
ldfsr_data_fw[17:8], // aexc,cexc
ldfsr_data_fw[1:0]}), // fcc0
.din1({ldfsr_data_fw[27:26], // LDXFSR: rd
ldfsr_data_fw[25:21], // tem
ldfsr_data_fw[17:8], // aexc,cexc
ldfsr_data_fw[7:6], // fcc3
ldfsr_data_fw[5:4], // fcc2
ldfsr_data_fw[3:2], // fcc1
ldfsr_data_fw[1:0]}), // fcc0
.din2({fsr3_fx1[27:26], // ST(X)FSR: rd
fsr3_fttexc_merged_fw[11:10], // ftt
fsr3_fx1[17:8], // aexc,cexc
.din3({fsr3_fx1[27:26], // FCMP(E) fcc0: rd
fsr3_fttexc_merged_fw[11:10], // ftt
fsr3_fttexc_merged_fw[9:0], // aexc,cexc
fpc_fcc_fw[1:0]}), // fcc0
.din4({fsr3_fx1[27:26], // FCMP(E) fcc1: rd
fsr3_fttexc_merged_fw[11:10], // ftt
fsr3_fttexc_merged_fw[9:0], // aexc,cexc
.din5({fsr3_fx1[27:26], // FCMP(E) fcc2: rd
fsr3_fttexc_merged_fw[11:10], // ftt
fsr3_fttexc_merged_fw[9:0], // aexc,cexc
.din6({fsr3_fx1[27:26], // FCMP(E) fcc3: rd
fsr3_fttexc_merged_fw[11:10], // ftt
fsr3_fttexc_merged_fw[9:0], // aexc,cexc
.din7({fsr3_fx1[27:26], // other FPop: rd
fsr3_fttexc_merged_fw[11:10], // ftt
fsr3_fttexc_merged_fw[9:0], // aexc,cexc
.sel (fac_fsr3_sel_fw[2:0]),
fgu_fad_dp_mux_macro__mux_aonpe__ports_3__stack_32l__width_12 fsr4_in (
.din0(fpc_fsr_w1_result_fw[11:0]), // w1 {ftt,aexc,cexc}
.din1(fpc_fsr_w2_result_fw[11:0]), // fdiv/fsqrt {ftt,aexc,cexc}
.din2({2'b0, fsr4_fx1[17:13], 5'b0}), // accrued aexc
.sel0(fac_fsr4_sel_fw[4]),
.sel1(fac_fsr4_sel_fw[5]),
.dout(fsr4_fttexc_merged_fw[11:0])
fgu_fad_dp_msff_macro__mux_aodec__ports_8__stack_32l__width_28 fx1_fsr4 ( // FS:wmr_protect
.scan_in(fx1_fsr4_wmr_scanin),
.scan_out(fx1_fsr4_wmr_scanout),
.en (fac_fsr4_sel_fw[3]),
.din0({ldfsr_data_fw[27:26], // LDFSR: rd
ldfsr_data_fw[25:21], // tem
ldfsr_data_fw[17:8], // aexc,cexc
ldfsr_data_fw[1:0]}), // fcc0
.din1({ldfsr_data_fw[27:26], // LDXFSR: rd
ldfsr_data_fw[25:21], // tem
ldfsr_data_fw[17:8], // aexc,cexc
ldfsr_data_fw[7:6], // fcc3
ldfsr_data_fw[5:4], // fcc2
ldfsr_data_fw[3:2], // fcc1
ldfsr_data_fw[1:0]}), // fcc0
.din2({fsr4_fx1[27:26], // ST(X)FSR: rd
fsr4_fttexc_merged_fw[11:10], // ftt
fsr4_fx1[17:8], // aexc,cexc
.din3({fsr4_fx1[27:26], // FCMP(E) fcc0: rd
fsr4_fttexc_merged_fw[11:10], // ftt
fsr4_fttexc_merged_fw[9:0], // aexc,cexc
fpc_fcc_fw[1:0]}), // fcc0
.din4({fsr4_fx1[27:26], // FCMP(E) fcc1: rd
fsr4_fttexc_merged_fw[11:10], // ftt
fsr4_fttexc_merged_fw[9:0], // aexc,cexc
.din5({fsr4_fx1[27:26], // FCMP(E) fcc2: rd
fsr4_fttexc_merged_fw[11:10], // ftt
fsr4_fttexc_merged_fw[9:0], // aexc,cexc
.din6({fsr4_fx1[27:26], // FCMP(E) fcc3: rd
fsr4_fttexc_merged_fw[11:10], // ftt
fsr4_fttexc_merged_fw[9:0], // aexc,cexc
.din7({fsr4_fx1[27:26], // other FPop: rd
fsr4_fttexc_merged_fw[11:10], // ftt
fsr4_fttexc_merged_fw[9:0], // aexc,cexc
.sel (fac_fsr4_sel_fw[2:0]),
fgu_fad_dp_mux_macro__mux_aonpe__ports_3__stack_32l__width_12 fsr5_in (
.din0(fpc_fsr_w1_result_fw[11:0]), // w1 {ftt,aexc,cexc}
.din1(fpc_fsr_w2_result_fw[11:0]), // fdiv/fsqrt {ftt,aexc,cexc}
.din2({2'b0, fsr5_fx1[17:13], 5'b0}), // accrued aexc
.sel0(fac_fsr5_sel_fw[4]),
.sel1(fac_fsr5_sel_fw[5]),
.dout(fsr5_fttexc_merged_fw[11:0])
fgu_fad_dp_msff_macro__mux_aodec__ports_8__stack_32l__width_28 fx1_fsr5 ( // FS:wmr_protect
.scan_in(fx1_fsr5_wmr_scanin),
.scan_out(fx1_fsr5_wmr_scanout),
.en (fac_fsr5_sel_fw[3]),
.din0({ldfsr_data_fw[27:26], // LDFSR: rd
ldfsr_data_fw[25:21], // tem
ldfsr_data_fw[17:8], // aexc,cexc
ldfsr_data_fw[1:0]}), // fcc0
.din1({ldfsr_data_fw[27:26], // LDXFSR: rd
ldfsr_data_fw[25:21], // tem
ldfsr_data_fw[17:8], // aexc,cexc
ldfsr_data_fw[7:6], // fcc3
ldfsr_data_fw[5:4], // fcc2
ldfsr_data_fw[3:2], // fcc1
ldfsr_data_fw[1:0]}), // fcc0
.din2({fsr5_fx1[27:26], // ST(X)FSR: rd
fsr5_fttexc_merged_fw[11:10], // ftt
fsr5_fx1[17:8], // aexc,cexc
.din3({fsr5_fx1[27:26], // FCMP(E) fcc0: rd
fsr5_fttexc_merged_fw[11:10], // ftt
fsr5_fttexc_merged_fw[9:0], // aexc,cexc
fpc_fcc_fw[1:0]}), // fcc0
.din4({fsr5_fx1[27:26], // FCMP(E) fcc1: rd
fsr5_fttexc_merged_fw[11:10], // ftt
fsr5_fttexc_merged_fw[9:0], // aexc,cexc
.din5({fsr5_fx1[27:26], // FCMP(E) fcc2: rd
fsr5_fttexc_merged_fw[11:10], // ftt
fsr5_fttexc_merged_fw[9:0], // aexc,cexc
.din6({fsr5_fx1[27:26], // FCMP(E) fcc3: rd
fsr5_fttexc_merged_fw[11:10], // ftt
fsr5_fttexc_merged_fw[9:0], // aexc,cexc
.din7({fsr5_fx1[27:26], // other FPop: rd
fsr5_fttexc_merged_fw[11:10], // ftt
fsr5_fttexc_merged_fw[9:0], // aexc,cexc
.sel (fac_fsr5_sel_fw[2:0]),
fgu_fad_dp_mux_macro__mux_aonpe__ports_3__stack_32l__width_12 fsr6_in (
.din0(fpc_fsr_w1_result_fw[11:0]), // w1 {ftt,aexc,cexc}
.din1(fpc_fsr_w2_result_fw[11:0]), // fdiv/fsqrt {ftt,aexc,cexc}
.din2({2'b0, fsr6_fx1[17:13], 5'b0}), // accrued aexc
.sel0(fac_fsr6_sel_fw[4]),
.sel1(fac_fsr6_sel_fw[5]),
.dout(fsr6_fttexc_merged_fw[11:0])
fgu_fad_dp_msff_macro__mux_aodec__ports_8__stack_32l__width_28 fx1_fsr6 ( // FS:wmr_protect
.scan_in(fx1_fsr6_wmr_scanin),
.scan_out(fx1_fsr6_wmr_scanout),
.en (fac_fsr6_sel_fw[3]),
.din0({ldfsr_data_fw[27:26], // LDFSR: rd
ldfsr_data_fw[25:21], // tem
ldfsr_data_fw[17:8], // aexc,cexc
ldfsr_data_fw[1:0]}), // fcc0
.din1({ldfsr_data_fw[27:26], // LDXFSR: rd
ldfsr_data_fw[25:21], // tem
ldfsr_data_fw[17:8], // aexc,cexc
ldfsr_data_fw[7:6], // fcc3
ldfsr_data_fw[5:4], // fcc2
ldfsr_data_fw[3:2], // fcc1
ldfsr_data_fw[1:0]}), // fcc0
.din2({fsr6_fx1[27:26], // ST(X)FSR: rd
fsr6_fttexc_merged_fw[11:10], // ftt
fsr6_fx1[17:8], // aexc,cexc
.din3({fsr6_fx1[27:26], // FCMP(E) fcc0: rd
fsr6_fttexc_merged_fw[11:10], // ftt
fsr6_fttexc_merged_fw[9:0], // aexc,cexc
fpc_fcc_fw[1:0]}), // fcc0
.din4({fsr6_fx1[27:26], // FCMP(E) fcc1: rd
fsr6_fttexc_merged_fw[11:10], // ftt
fsr6_fttexc_merged_fw[9:0], // aexc,cexc
.din5({fsr6_fx1[27:26], // FCMP(E) fcc2: rd
fsr6_fttexc_merged_fw[11:10], // ftt
fsr6_fttexc_merged_fw[9:0], // aexc,cexc
.din6({fsr6_fx1[27:26], // FCMP(E) fcc3: rd
fsr6_fttexc_merged_fw[11:10], // ftt
fsr6_fttexc_merged_fw[9:0], // aexc,cexc
.din7({fsr6_fx1[27:26], // other FPop: rd
fsr6_fttexc_merged_fw[11:10], // ftt
fsr6_fttexc_merged_fw[9:0], // aexc,cexc
.sel (fac_fsr6_sel_fw[2:0]),
fgu_fad_dp_mux_macro__mux_aonpe__ports_3__stack_32l__width_12 fsr7_in (
.din0(fpc_fsr_w1_result_fw[11:0]), // w1 {ftt,aexc,cexc}
.din1(fpc_fsr_w2_result_fw[11:0]), // fdiv/fsqrt {ftt,aexc,cexc}
.din2({2'b0, fsr7_fx1[17:13], 5'b0}), // accrued aexc
.sel0(fac_fsr7_sel_fw[4]),
.sel1(fac_fsr7_sel_fw[5]),
.dout(fsr7_fttexc_merged_fw[11:0])
fgu_fad_dp_msff_macro__mux_aodec__ports_8__stack_32l__width_28 fx1_fsr7 ( // FS:wmr_protect
.scan_in(fx1_fsr7_wmr_scanin),
.scan_out(fx1_fsr7_wmr_scanout),
.en (fac_fsr7_sel_fw[3]),
.din0({ldfsr_data_fw[27:26], // LDFSR: rd
ldfsr_data_fw[25:21], // tem
ldfsr_data_fw[17:8], // aexc,cexc
ldfsr_data_fw[1:0]}), // fcc0
.din1({ldfsr_data_fw[27:26], // LDXFSR: rd
ldfsr_data_fw[25:21], // tem
ldfsr_data_fw[17:8], // aexc,cexc
ldfsr_data_fw[7:6], // fcc3
ldfsr_data_fw[5:4], // fcc2
ldfsr_data_fw[3:2], // fcc1
ldfsr_data_fw[1:0]}), // fcc0
.din2({fsr7_fx1[27:26], // ST(X)FSR: rd
fsr7_fttexc_merged_fw[11:10], // ftt
fsr7_fx1[17:8], // aexc,cexc
.din3({fsr7_fx1[27:26], // FCMP(E) fcc0: rd
fsr7_fttexc_merged_fw[11:10], // ftt
fsr7_fttexc_merged_fw[9:0], // aexc,cexc
fpc_fcc_fw[1:0]}), // fcc0
.din4({fsr7_fx1[27:26], // FCMP(E) fcc1: rd
fsr7_fttexc_merged_fw[11:10], // ftt
fsr7_fttexc_merged_fw[9:0], // aexc,cexc
.din5({fsr7_fx1[27:26], // FCMP(E) fcc2: rd
fsr7_fttexc_merged_fw[11:10], // ftt
fsr7_fttexc_merged_fw[9:0], // aexc,cexc
.din6({fsr7_fx1[27:26], // FCMP(E) fcc3: rd
fsr7_fttexc_merged_fw[11:10], // ftt
fsr7_fttexc_merged_fw[9:0], // aexc,cexc
.din7({fsr7_fx1[27:26], // other FPop: rd
fsr7_fttexc_merged_fw[11:10], // ftt
fsr7_fttexc_merged_fw[9:0], // aexc,cexc
.sel (fac_fsr7_sel_fw[2:0]),
// ----------------------------------------------------------------------------
// FGU ASI local ring datapath
// ----------------------------------------------------------------------------
fgu_fad_dp_msff_macro__stack_32l__width_31 flop_rng1_4f (
.scan_in(flop_rng1_4f_scanin),
.scan_out(flop_rng1_4f_scanout),
.din (fgd_rngl_cdbus_3f[62:32]),
.dout( rngl_cdbus_4f[62:32]),
fgu_fad_dp_msff_macro__stack_32l__width_32 flop_rng0_4f (
.scan_in(flop_rng0_4f_scanin),
.scan_out(flop_rng0_4f_scanout),
.din (fgd_rngl_cdbus_3f[31:0]),
.dout( rngl_cdbus_4f[31:0]),
fgu_fad_dp_buff_macro__rep_1__stack_32l__width_31 buf_rng1 (
.din ( rngl_cdbus_4f[62:32]),
.dout(fgu_rngl_cdbus[62:32])
fgu_fad_dp_buff_macro__rep_1__stack_32l__width_32 buf_rng0 (
.din ( rngl_cdbus_4f[31:0]),
.dout(fgu_rngl_cdbus[31:0])
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// ------------------------------------
// ST(X)FSR has a presync. All preceeding instrs have completed
// FW+1 before ST(X)FSR reaches FX1.
// LD(X)FSR has same presync as ST(X)FSR. LD(X)FSR update of the
// architected FSR is available in FX4. Instrs following LD(X)FSR
// are in E when LD(X)FSR is in FX4.
// As a result, the mux below can be a mux/flop and still allow
// correct functionality. Making it a mux/flop helps storefmt timing
// for the ST(X)FSR path.
// ------------------------------------
fgu_fad_dp_msff_macro__mux_aodec__ports_8__stack_32l__width_28 fx1_fsr (
.scan_in(fx1_fsr_scanin),
.scan_out(fx1_fsr_scanout),
.sel (fac_tid_e[2:0]), // ST(X)FSR is in E when mux is selecting the FSR.
// Instr following LD(X)FSR is in E when mux is selecting the FSR.
.dout({fad_fsr_rd_fx1[1:0], // LD(X)FSR update only
fad_fsr_tem_fx1[4:0], // LD(X)FSR update only
fad_fsr_ns_fx1, // LD(X)FSR update only
fsr_ftt_fx1[1:0], // ST(X)FSR usage only
fsr_aexc_fx1[4:0], // ST(X)FSR usage only
fsr_cexc_fx1[4:0], // ST(X)FSR usage only
fsr_fcc3_fx1[1:0], // STXFSR usage only
fsr_fcc2_fx1[1:0], // STXFSR usage only
fsr_fcc1_fx1[1:0], // STXFSR usage only
.stop(stop) // ST(X)FSR usage only
// ------------------------------------
// ------------------------------------
fgu_fad_dp_mux_macro__mux_aonpe__ports_5__width_64 rs1fmt (
.din0({1'b1,fad_rs1_fx1[51:0], 11'b0}), // DP
.din1({1'b1,fad_rs1_fx1[22:0], 40'b0}), // SP odd (rotate)
.din2({1'b1,fad_rs1_fx1[54:32],40'b0}), // SP even
.din3({fad_rs1_fx1[31:0], 32'b0}), // Word odd (rotate)
.din4( fad_rs1_fx1[63:0] ), // Dblword, Word even
.sel0(aman_fmt_sel_fx1[0]),
.sel1(aman_fmt_sel_fx1[1]),
.sel2(aman_fmt_sel_fx1[2]),
.sel3(aman_fmt_sel_fx1[3]),
.sel4(aman_fmt_sel_fx1[4]),
fgu_fad_dp_buff_macro__width_64 buf_rs1fmt (
.din ( rs1_fmt_fx1[63:0]),
.dout(fad_rs1_fmt_fx1[63:0])
fgu_fad_dp_mux_macro__mux_aonpe__ports_5__width_64 rs2fmt (
.din0({1'b1,fad_rs2_fx1[51:0], 11'b0}), // DP
.din1({1'b1,fad_rs2_fx1[22:0], 40'b0}), // SP odd (rotate)
.din2({1'b1,fad_rs2_fx1[54:32],40'b0}), // SP even
.din3({fad_rs2_fx1[31:0], 32'b0}), // Word odd (rotate)
.din4( fad_rs2_fx1[63:0] ), // Dblword, Word even
.sel0(bman_fmt_sel_fx1[0]),
.sel1(bman_fmt_sel_fx1[1]),
.sel2(bman_fmt_sel_fx1[2]),
.sel3(bman_fmt_sel_fx1[3]),
.sel4(bman_fmt_sel_fx1[4]),
fgu_fad_dp_buff_macro__width_64 buf_rs2fmt (
.din ( rs2_fmt_fx1[63:0]),
.dout(fad_rs2_fmt_fx1[63:0])
fgu_fad_dp_mux_macro__mux_aonpe__ports_4__width_64 storefmt (
.din0({fad_rs2_fx1[31:0], 32'b0}), // STF odd (rotate)
.din1( fad_rs2_fx1[63:0] ), // STF even, STDF
1'b0, // FSR.ftt[2] = 1'b0
.din3({fad_fsr_rd_fx1[1:0],
1'b0, // FSR.ftt[2] = 1'b0
.sel0(fac_fst_fmt_sel_fx1[0]),
.sel1(fac_fst_fmt_sel_fx1[1]),
.sel2(fac_fst_fmt_sel_fx1[2]),
.sel3(fac_fst_fmt_sel_fx1[3]),
.dout(fst_data_fx1[63:0]) // pwr mgmt: aomux free zeros
fgu_fad_dp_buff_macro__rep_1__width_64 buf_storefmt (
.din ( fst_data_fx1[63:0]),
.dout(fgu_lsu_fst_data_fx1[63:0])
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
fgu_fad_dp_mux_macro__mux_aope__ports_3__width_12 w2addr (
.din0({fac_fpd_addr_fb[4:0],
.din1({fac_fpd_addr_fb[4:0],
.din2({lsu_fgu_fld_addr_b[4:0],
.sel0(div_finish_fltd_fb),
.sel1(div_finish_flts_fb),
fgu_fad_dp_inv_macro__width_5 inv_vld (
.din ({lsu_fgu_fld_32b_b,
.dout({lsu_fgu_fld_32b_b_,
fgu_fad_dp_mux_macro__buffsel_none__mux_aonpe__ports_2__width_1 even_en_ld (
.din0(lsu_fgu_fld_32b_b ),
.din1(lsu_fgu_fld_32b_b_ ),
.sel0(lsu_fgu_fld_odd32b_b_),
.dout(fld_w2_even_en_fb )
fgu_fad_dp_or_macro__ports_2__width_2 odd_en_ld (
.din0({lsu_fgu_fld_32b_b_, fpc_fpd_ieee_trap_fb }),
.din1({lsu_fgu_fld_odd32b_b, fpc_fpd_unfin_fb }),
.dout({fld_w2_odd_en_fb, fpd_trap_fb })
// 0in custom -fire ((|fad_w2_vld_fw[1:0]) & ($0in_delay((fpc_fpd_ieee_trap_fb | fpc_fpd_unfin_fb),1))) -message "FRF written during FP trap"
// 0in custom -fire ((lsu_fgu_fld_vld_w & ($0in_delay((lsu_fgu_fsr_load_b & (|fpc_w1_vld_fb[1:0]) & (lsu_fgu_fld_tid_b[2:0]==fac_w1_tid_fb[2:0])),1))) | (lsu_fgu_fld_vld_w & ($0in_delay((lsu_fgu_fsr_load_b & (|fad_w1_vld_fw[1:0]) & (lsu_fgu_fld_tid_b[2:0]==fad_w1_tid_fw[2:0])),1)))) -message "LDFSR collision with FPop"
fgu_fad_dp_and_macro__ports_3__width_2 and_vld (
.din0({fld_w2_even_en_fb, fld_w2_odd_en_fb }),
.din1({lsu_fgu_fsr_load_b_, lsu_fgu_fsr_load_b_}),
.din2({mbist_run_1f_, mbist_run_1f_ }),
.dout({pre_fld_vld_fb[1], pre_fld_vld_fb[0] })
fgu_fad_dp_mux_macro__buffsel_none__mux_aonpe__ports_2__width_2 fpd_vld (
.din0({div_finish_fltd_fb, div_finish_fltd_fb }),
.din1({div_finish_flts_even_fb, div_finish_flts_odd_fb}),
.dout({pre_fpd_vld_fb[1], pre_fpd_vld_fb[0] })
fgu_fad_dp_and_macro__ports_2__width_3 fpd_odd (
.din0({div_finish_flts_fb, div_finish_flts_fb, div_finish_flts_fb }),
.din1({fac_fpd_odd32b_fb, fac_fpd_odd32b_fb, fac_fpd_odd32b_fb_ }),
.dout({fpd_vld_odd32b_fb, div_finish_flts_odd_fb, div_finish_flts_even_fb})
fgu_fad_dp_mux_macro__mux_aonpe__ports_2__width_52 div_const (
.din0(fdd_result_rep0[62:11]), // FPD mantissa result
.din1(52'hfffffffffffff), // FPD mantissa constant result for fdiv overflow (max or inf)
.sel0(fpc_fpd_const_sel[0]), // Note: lack of sel0 or sel1 provides free zeros for aomux,
.sel1(fpc_fpd_const_sel[1]), // fdiv underflow constant result is zero
.dout(q_fdd_result_rep0[62:11])
fgu_fad_dp_mux_macro__mux_aope__ports_4__width_64 mux_w2data (
.din0({ fpc_fpd_sign_res, fpc_fpd_exp_res[10:0], q_fdd_result_rep0[62:11] }), // FPD result DP
.din1({32'b0, fpc_fpd_sign_res, fpc_fpd_exp_res[7:0], q_fdd_result_rep0[62:40] }), // FPD result SP odd
.din2({ fpc_fpd_sign_res, fpc_fpd_exp_res[7:0], q_fdd_result_rep0[62:40], 32'b0}), // FPD result SP even
.din3(lsu_fgu_fld_data_b[63:0]),
.sel0(div_finish_fltd_fb),
.sel1(fpd_vld_odd32b_fb),
.sel2(div_finish_flts_fb),
.dout(w2_result_fb[63:0])
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
fgu_fad_dp_msff_macro__width_64 fw_w2data (
.scan_in(fw_w2data_scanin),
.scan_out(fw_w2data_scanout),
.din ( w2_result_fb[63:0]), // requires free running clk
.dout(fad_nombi_w2_result_fw[63:0]),
fgu_fad_dp_msff_macro__width_64 fw_w1 (
.scan_out(fw_w1_scanout),
.din (fpf_w1_result_fb[63:0]),
.dout( w1_result_fw[63:0]),
fgu_fad_dp_msff_macro__stack_32l__width_26 fw_ldfsr (
.scan_in(fw_ldfsr_scanin),
.scan_out(fw_ldfsr_scanout),
.din ({lsu_fgu_fld_data_b[31:30], // requires free running clk or lsu_fgu_fld_b en
lsu_fgu_fld_data_b[27:22], // requires free running clk or lsu_fgu_fld_b en
lsu_fgu_fld_data_b[9:0], // requires free running clk or lsu_fgu_fld_b en
lsu_fgu_fld_data_b[37:32], // requires free running clk or lsu_fgu_fld_b en
lsu_fgu_fld_data_b[11:10]}), // requires free running clk or lsu_fgu_fld_b en
.dout({ldfsr_data_fw[27:20], ldfsr_data_fw[17:0]}),
assign fgu_fld_fcc_fx3[7:0] = ldfsr_data_fw[7:0];
fgu_fad_dp_inv_macro__width_1 inv_mbist_run (
fgu_fad_dp_mux_macro__buffsel_none__mux_aonpe__ports_3__width_2 w2_vld (
.din0({pre_fld_vld_fw[1], pre_fld_vld_fw[0] }), // functional, pre qualified with mbist_run_1f_
.din1({fpd_vld_fw[1], fpd_vld_fw[0] }), // functional
.din2({mbist_frf_write_en_1f, mbist_frf_write_en_1f}), // MBIST
.sel0(lsu_fgu_fld_vld_w),
.dout({fad_w2_vld_fw[1], fad_w2_vld_fw[0] })
fgu_fad_dp_mux_macro__mux_pgpe__ports_2__width_64 mux_w2mbist1 (
.din0({8{fec_mbist_wdata_1f[7:0]}}), // MBIST
.din1(fad_nombi_w2_result_fw[63:0]), // functional
.dout(fad_w2_result_fw[63:0] )
fgu_fad_dp_mux_macro__buffsel_none__mux_aonpe__ports_2__width_8 mux_w2mbist2 (
.din0({fac_mbist_addr_1f[7:5], fac_mbist_addr_1f[4:0]}), // MBIST
.din1({w2_tid_fw[2:0], w2_addr_fw[4:0] }), // functional
.dout({i_w2_tid_fw[2:0], i_w2_addr_fw[4:0] })
fgu_fad_dp_buff_macro__width_8 buf_w2mbist2 (
.din ({ i_w2_tid_fw[2:0], i_w2_addr_fw[4:0]}),
.dout({fad_w2_tid_fw[2:0], fad_w2_addr_fw[4:0]})
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
fgu_fad_dp_msff_macro__minbuff_1__width_64 fw1_w2data (
.scan_in(fw1_w2data_scanin),
.scan_out(fw1_w2data_scanout),
.din (fad_nombi_w2_result_fw[63:0]),
.dout(w2_result_fw1[63:0]),
assign e_01_scanin = scan_in ;
assign e_01_extra_scanin = e_01_scanout ;
assign fx1_rs1byp_scanin = e_01_extra_scanout ;
assign fx1_rs2byp_scanin = fx1_rs1byp_scanout ;
assign flop_rng1_4f_scanin = fx1_rs2byp_scanout ;
assign flop_rng0_4f_scanin = flop_rng1_4f_scanout ;
assign fx1_fsr_scanin = flop_rng0_4f_scanout ;
assign fw_w2data_scanin = fx1_fsr_scanout ;
assign fw_w1_scanin = fw_w2data_scanout ;
assign fw_ldfsr_scanin = fw_w1_scanout ;
assign fw1_w2data_scanin = fw_ldfsr_scanout ;
assign scan_out = fw1_w2data_scanout ;
assign fx1_fsr0_wmr_scanin = wmr_scan_in ;
assign fx1_fsr1_wmr_scanin = fx1_fsr0_wmr_scanout ;
assign fx1_fsr2_wmr_scanin = fx1_fsr1_wmr_scanout ;
assign fx1_fsr3_wmr_scanin = fx1_fsr2_wmr_scanout ;
assign fx1_fsr4_wmr_scanin = fx1_fsr3_wmr_scanout ;
assign fx1_fsr5_wmr_scanin = fx1_fsr4_wmr_scanout ;
assign fx1_fsr6_wmr_scanin = fx1_fsr5_wmr_scanout ;
assign fx1_fsr7_wmr_scanin = fx1_fsr6_wmr_scanout ;
assign wmr_scan_out = fx1_fsr7_wmr_scanout ;
module fgu_fad_dp_buff_macro__dbuff_32x__rep_1__width_4 (
// any PARAMS parms go into naming of macro
module fgu_fad_dp_msff_macro__width_47 (
.so({so[45:0],scan_out}),
// any PARAMS parms go into naming of macro
module fgu_fad_dp_msff_macro__width_23 (
.so({so[21:0],scan_out}),
// and macro for ports = 2,3,4
module fgu_fad_dp_and_macro__ports_2__width_2 (
// comparator macro (output is 1 if both inputs are equal; 0 otherwise)
module fgu_fad_dp_cmp_macro__width_12 (
// nor macro for ports = 2,3
module fgu_fad_dp_nor_macro__ports_3__width_4 (
// nand macro for ports = 2,3,4
module fgu_fad_dp_nand_macro__ports_2__width_2 (
// any PARAMS parms go into naming of macro
module fgu_fad_dp_msff_macro__dmux_4x__mux_aope__ports_7__width_64 (
.so({so[62:0],scan_out}),
// comparator macro (output is 1 if both inputs are equal; 0 otherwise)
module fgu_fad_dp_cmp_macro__width_64 (
// parity macro (even parity)
module fgu_fad_dp_prty_macro__width_32 (
// 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 fgu_fad_dp_mux_macro__mux_aonpe__ports_3__stack_32l__width_12 (
cl_dp1_muxbuff3_8x c0_0 (
// any PARAMS parms go into naming of macro
module fgu_fad_dp_msff_macro__mux_aodec__ports_8__stack_32l__width_28 (
.so({so[26:0],scan_out}),
// any PARAMS parms go into naming of macro
module fgu_fad_dp_msff_macro__stack_32l__width_31 (
.so({so[29:0],scan_out}),
// any PARAMS parms go into naming of macro
module fgu_fad_dp_msff_macro__stack_32l__width_32 (
.so({so[30:0],scan_out}),
module fgu_fad_dp_buff_macro__rep_1__stack_32l__width_31 (
module fgu_fad_dp_buff_macro__rep_1__stack_32l__width_32 (
// 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 fgu_fad_dp_mux_macro__mux_aonpe__ports_5__width_64 (
cl_dp1_muxbuff5_8x c0_0 (
module fgu_fad_dp_buff_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 fgu_fad_dp_mux_macro__mux_aonpe__ports_4__width_64 (
cl_dp1_muxbuff4_8x c0_0 (
module fgu_fad_dp_buff_macro__rep_1__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 fgu_fad_dp_mux_macro__mux_aope__ports_3__width_12 (
module fgu_fad_dp_inv_macro__width_5 (
// 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 fgu_fad_dp_mux_macro__buffsel_none__mux_aonpe__ports_2__width_1 (
// or macro for ports = 2,3
module fgu_fad_dp_or_macro__ports_2__width_2 (
// and macro for ports = 2,3,4
module fgu_fad_dp_and_macro__ports_3__width_2 (
// 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 fgu_fad_dp_mux_macro__buffsel_none__mux_aonpe__ports_2__width_2 (
// and macro for ports = 2,3,4
module fgu_fad_dp_and_macro__ports_2__width_3 (
// 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 fgu_fad_dp_mux_macro__mux_aonpe__ports_2__width_52 (
cl_dp1_muxbuff2_8x c0_0 (
// 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 fgu_fad_dp_mux_macro__mux_aope__ports_4__width_64 (
// any PARAMS parms go into naming of macro
module fgu_fad_dp_msff_macro__width_64 (
.so({so[62:0],scan_out}),
// any PARAMS parms go into naming of macro
module fgu_fad_dp_msff_macro__stack_32l__width_26 (
.so({so[24:0],scan_out}),
module fgu_fad_dp_inv_macro__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 fgu_fad_dp_mux_macro__buffsel_none__mux_aonpe__ports_3__width_2 (
// 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 fgu_fad_dp_mux_macro__mux_pgpe__ports_2__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 fgu_fad_dp_mux_macro__buffsel_none__mux_aonpe__ports_2__width_8 (
module fgu_fad_dp_buff_macro__width_8 (
// any PARAMS parms go into naming of macro
module fgu_fad_dp_msff_macro__minbuff_1__width_64 (
.so({so[62:0],scan_out}),