| 1 |
2 |
dmitryr |
// ========== Copyright Header Begin ==========================================
|
| 2 |
|
|
//
|
| 3 |
|
|
// OpenSPARC T1 Processor File: fpu_div.v
|
| 4 |
|
|
// Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
|
| 5 |
|
|
// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES.
|
| 6 |
|
|
//
|
| 7 |
|
|
// The above named program is free software; you can redistribute it and/or
|
| 8 |
|
|
// modify it under the terms of the GNU General Public
|
| 9 |
|
|
// License version 2 as published by the Free Software Foundation.
|
| 10 |
|
|
//
|
| 11 |
|
|
// The above named program is distributed in the hope that it will be
|
| 12 |
|
|
// useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 13 |
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
| 14 |
|
|
// General Public License for more details.
|
| 15 |
|
|
//
|
| 16 |
|
|
// You should have received a copy of the GNU General Public
|
| 17 |
|
|
// License along with this work; if not, write to the Free Software
|
| 18 |
|
|
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
| 19 |
|
|
//
|
| 20 |
|
|
// ========== Copyright Header End ============================================
|
| 21 |
|
|
///////////////////////////////////////////////////////////////////////////////
|
| 22 |
|
|
//
|
| 23 |
|
|
// FPU divide pipe.
|
| 24 |
|
|
//
|
| 25 |
|
|
///////////////////////////////////////////////////////////////////////////////
|
| 26 |
|
|
|
| 27 |
|
|
|
| 28 |
|
|
module fpu_div (
|
| 29 |
|
|
inq_op,
|
| 30 |
|
|
inq_rnd_mode,
|
| 31 |
|
|
inq_id,
|
| 32 |
|
|
inq_in1,
|
| 33 |
|
|
inq_in1_53_0_neq_0,
|
| 34 |
|
|
inq_in1_50_0_neq_0,
|
| 35 |
|
|
inq_in1_53_32_neq_0,
|
| 36 |
|
|
inq_in1_exp_eq_0,
|
| 37 |
|
|
inq_in1_exp_neq_ffs,
|
| 38 |
|
|
inq_in2,
|
| 39 |
|
|
inq_in2_53_0_neq_0,
|
| 40 |
|
|
inq_in2_50_0_neq_0,
|
| 41 |
|
|
inq_in2_53_32_neq_0,
|
| 42 |
|
|
inq_in2_exp_eq_0,
|
| 43 |
|
|
inq_in2_exp_neq_ffs,
|
| 44 |
|
|
inq_div,
|
| 45 |
|
|
div_dest_rdy,
|
| 46 |
|
|
fdiv_clken_l,
|
| 47 |
|
|
fdiv_clken_l_div_exp_buf1,
|
| 48 |
|
|
arst_l,
|
| 49 |
|
|
grst_l,
|
| 50 |
|
|
rclk,
|
| 51 |
|
|
|
| 52 |
|
|
div_pipe_active,
|
| 53 |
|
|
d1stg_step,
|
| 54 |
|
|
d8stg_fdiv_in,
|
| 55 |
|
|
div_id_out_in,
|
| 56 |
|
|
div_exc_out,
|
| 57 |
|
|
d8stg_fdivd,
|
| 58 |
|
|
d8stg_fdivs,
|
| 59 |
|
|
div_sign_out,
|
| 60 |
|
|
div_exp_outa,
|
| 61 |
|
|
div_frac_outa,
|
| 62 |
|
|
|
| 63 |
|
|
se,
|
| 64 |
|
|
si,
|
| 65 |
|
|
so
|
| 66 |
|
|
);
|
| 67 |
|
|
|
| 68 |
|
|
|
| 69 |
|
|
input [7:0] inq_op; // request opcode to op pipes
|
| 70 |
|
|
input [1:0] inq_rnd_mode; // request rounding mode to op pipes
|
| 71 |
|
|
input [4:0] inq_id; // request ID to the operation pipes
|
| 72 |
|
|
input [63:0] inq_in1; // request operand 1 to op pipes
|
| 73 |
|
|
input inq_in1_53_0_neq_0; // request operand 1[53:0]!=0
|
| 74 |
|
|
input inq_in1_50_0_neq_0; // request operand 1[50:0]!=0
|
| 75 |
|
|
input inq_in1_53_32_neq_0; // request operand 1[53:32]!=0
|
| 76 |
|
|
input inq_in1_exp_eq_0; // request operand 1 exp==0
|
| 77 |
|
|
input inq_in1_exp_neq_ffs; // request operand 1 exp!=0xff's
|
| 78 |
|
|
input [63:0] inq_in2; // request operand 2 to op pipes
|
| 79 |
|
|
input inq_in2_53_0_neq_0; // request operand 2[53:0]!=0
|
| 80 |
|
|
input inq_in2_50_0_neq_0; // request operand 2[50:0]!=0
|
| 81 |
|
|
input inq_in2_53_32_neq_0; // request operand 2[53:32]!=0
|
| 82 |
|
|
input inq_in2_exp_eq_0; // request operand 2 exp==0
|
| 83 |
|
|
input inq_in2_exp_neq_ffs; // request operand 2 exp!=0xff's
|
| 84 |
|
|
input inq_div; // divide pipe request
|
| 85 |
|
|
input div_dest_rdy; // divide result req accepted for CPX
|
| 86 |
|
|
input fdiv_clken_l; // fdiv clock enable for div_frac_dp
|
| 87 |
|
|
input fdiv_clken_l_div_exp_buf1; // fdiv clock enable for div_exp_dp
|
| 88 |
|
|
input arst_l; // global async. reset- asserted low
|
| 89 |
|
|
input grst_l; // global sync. reset- asserted low
|
| 90 |
|
|
input rclk; // global clock
|
| 91 |
|
|
|
| 92 |
|
|
output div_pipe_active; // div pipe is executing a valid instr
|
| 93 |
|
|
output d1stg_step; // divide pipe load
|
| 94 |
|
|
output d8stg_fdiv_in; // div pipe output request next cycle
|
| 95 |
|
|
output [9:0] div_id_out_in; // div pipe output ID next cycle
|
| 96 |
|
|
output [4:0] div_exc_out; // divide pipe result- exception flags
|
| 97 |
|
|
output d8stg_fdivd; // divide double- divide stage 8
|
| 98 |
|
|
output d8stg_fdivs; // divide single- divide stage 8
|
| 99 |
|
|
output div_sign_out; // divide sign output
|
| 100 |
|
|
output [10:0] div_exp_outa; // divide exponent output
|
| 101 |
|
|
output [51:0] div_frac_outa; // divide fraction output
|
| 102 |
|
|
|
| 103 |
|
|
input se; // scan_enable
|
| 104 |
|
|
input si; // scan in
|
| 105 |
|
|
output so; // scan out
|
| 106 |
|
|
|
| 107 |
|
|
|
| 108 |
|
|
///////////////////////////////////////////////////////////////////////////////
|
| 109 |
|
|
//
|
| 110 |
|
|
// Outputs of fpu_div_ctl.
|
| 111 |
|
|
//
|
| 112 |
|
|
///////////////////////////////////////////////////////////////////////////////
|
| 113 |
|
|
|
| 114 |
|
|
wire d1stg_snan_sng_in1; // operand 1 is single signalling NaN
|
| 115 |
|
|
wire d1stg_snan_dbl_in1; // operand 1 is double signalling NaN
|
| 116 |
|
|
wire d1stg_snan_sng_in2; // operand 2 is single signalling NaN
|
| 117 |
|
|
wire d1stg_snan_dbl_in2; // operand 2 is double signalling NaN
|
| 118 |
|
|
wire d1stg_step; // divide pipe load
|
| 119 |
|
|
wire d1stg_dblop; // double precision operation- d1 stg
|
| 120 |
|
|
wire d234stg_fdiv; // select line to div_expadd1
|
| 121 |
|
|
wire d3stg_fdiv; // divide operation- divide stage 3
|
| 122 |
|
|
wire d4stg_fdiv; // divide operation- divide stage 4
|
| 123 |
|
|
wire d5stg_fdiva; // divide operation- divide stage 5
|
| 124 |
|
|
wire d5stg_fdivb; // divide operation- divide stage 5
|
| 125 |
|
|
wire d5stg_fdivs; // divide single- divide stage 5
|
| 126 |
|
|
wire d5stg_fdivd; // divide double- divide stage 5
|
| 127 |
|
|
wire d6stg_fdiv; // divide operation- divide stage 6
|
| 128 |
|
|
wire d6stg_fdivs; // divide single- divide stage 6
|
| 129 |
|
|
wire d6stg_fdivd; // divide double- divide stage 6
|
| 130 |
|
|
wire d7stg_fdiv; // divide operation- divide stage 7
|
| 131 |
|
|
wire d7stg_fdivd; // divide double- divide stage 7
|
| 132 |
|
|
wire d8stg_fdiv_in; // div pipe output request next cycle
|
| 133 |
|
|
wire d8stg_fdivs; // divide single- divide stage 8
|
| 134 |
|
|
wire d8stg_fdivd; // divide double- divide stage 8
|
| 135 |
|
|
wire [9:0] div_id_out_in; // div pipe output ID next cycle
|
| 136 |
|
|
wire div_sign_out; // divide sign output
|
| 137 |
|
|
wire [4:0] div_exc_out; // divide pipe result- exception flags
|
| 138 |
|
|
wire div_norm_frac_in1_dbl_norm; // select line to div_norm
|
| 139 |
|
|
wire div_norm_frac_in1_dbl_dnrm; // select line to div_norm
|
| 140 |
|
|
wire div_norm_frac_in1_sng_norm; // select line to div_norm
|
| 141 |
|
|
wire div_norm_frac_in1_sng_dnrm; // select line to div_norm
|
| 142 |
|
|
wire div_norm_frac_in2_dbl_norm; // select line to div_norm
|
| 143 |
|
|
wire div_norm_frac_in2_dbl_dnrm; // select line to div_norm
|
| 144 |
|
|
wire div_norm_frac_in2_sng_norm; // select line to div_norm
|
| 145 |
|
|
wire div_norm_frac_in2_sng_dnrm; // select line to div_norm
|
| 146 |
|
|
wire div_norm_inf; // select line to div_norm
|
| 147 |
|
|
wire div_norm_qnan; // select line to div_norm
|
| 148 |
|
|
wire div_norm_zero; // select line to div_norm
|
| 149 |
|
|
wire div_frac_add_in2_load; // load enable to div_frac_add_in2
|
| 150 |
|
|
wire d6stg_frac_out_shl1; // select line to d6stg_frac
|
| 151 |
|
|
wire d6stg_frac_out_nosh; // select line to d6stg_frac
|
| 152 |
|
|
wire div_frac_add_in1_add; // select line to div_frac_add_in1
|
| 153 |
|
|
wire div_frac_add_in1_load; // load enable to div_frac_add_in1
|
| 154 |
|
|
wire d7stg_rndup_inv; // no rounding increment
|
| 155 |
|
|
wire d7stg_to_0; // result to max finite on overflow
|
| 156 |
|
|
wire d7stg_to_0_inv; // result to infinity on overflow
|
| 157 |
|
|
wire div_frac_out_add_in1; // select line to div_frac_out
|
| 158 |
|
|
wire div_frac_out_add; // select line to div_frac_out
|
| 159 |
|
|
wire div_frac_out_shl1_dbl; // select line to div_frac_out
|
| 160 |
|
|
wire div_frac_out_shl1_sng; // select line to div_frac_out
|
| 161 |
|
|
wire div_frac_out_of; // select line to div_frac_out
|
| 162 |
|
|
wire div_frac_out_load; // load enable to div_frac_out
|
| 163 |
|
|
wire div_expadd1_in1_dbl; // select line to div_expadd1
|
| 164 |
|
|
wire div_expadd1_in1_sng; // select line to div_expadd1
|
| 165 |
|
|
wire div_expadd1_in2_exp_in2_dbl; // select line to div_expadd1
|
| 166 |
|
|
wire div_expadd1_in2_exp_in2_sng; //select line to div_expadd1
|
| 167 |
|
|
wire div_exp1_expadd1; // select line to div_exp1
|
| 168 |
|
|
wire div_exp1_0835; // select line to div_exp1
|
| 169 |
|
|
wire div_exp1_0118; // select line to div_exp1
|
| 170 |
|
|
wire div_exp1_zero; // select line to div_exp1
|
| 171 |
|
|
wire div_exp1_load; // load enable to div_exp1
|
| 172 |
|
|
wire div_expadd2_in1_exp_out; // select line to div_expadd2
|
| 173 |
|
|
wire div_expadd2_no_decr_inv; // no exponent decrement
|
| 174 |
|
|
wire div_expadd2_cin; // carry in to 2nd exponent adder
|
| 175 |
|
|
wire div_exp_out_expadd22_inv; // select line to div_exp_out
|
| 176 |
|
|
wire div_exp_out_expadd2; // select line to div_exp_out
|
| 177 |
|
|
wire div_exp_out_of; // overflow to exponent output
|
| 178 |
|
|
wire div_exp_out_exp_out; // select line to div_exp_out
|
| 179 |
|
|
wire div_exp_out_load; // load enable to div_exp_out
|
| 180 |
|
|
wire div_pipe_active; // div pipe is executing a valid instr
|
| 181 |
|
|
|
| 182 |
|
|
|
| 183 |
|
|
///////////////////////////////////////////////////////////////////////////////
|
| 184 |
|
|
//
|
| 185 |
|
|
// Outputs of fpu_div_exp_dp.
|
| 186 |
|
|
//
|
| 187 |
|
|
///////////////////////////////////////////////////////////////////////////////
|
| 188 |
|
|
|
| 189 |
|
|
wire [12:0] div_exp1; // divide exponent- intermediate value
|
| 190 |
|
|
wire [12:12] div_expadd2; // divide exponent- 2nd adder output
|
| 191 |
|
|
wire [12:0] div_exp_out; // divide exponent output- fpu_div
|
| 192 |
|
|
wire [10:0] div_exp_outa; // divide exponent output
|
| 193 |
|
|
|
| 194 |
|
|
|
| 195 |
|
|
///////////////////////////////////////////////////////////////////////////////
|
| 196 |
|
|
//
|
| 197 |
|
|
// Outputs of fpu_div_frac_dp.
|
| 198 |
|
|
//
|
| 199 |
|
|
///////////////////////////////////////////////////////////////////////////////
|
| 200 |
|
|
|
| 201 |
|
|
wire [5:0] div_shl_cnt; // divide left shift amount
|
| 202 |
|
|
wire d6stg_frac_0; // divide fraction[0]- intermediate val
|
| 203 |
|
|
wire d6stg_frac_1; // divide fraction[1]- intermediate val
|
| 204 |
|
|
wire d6stg_frac_2; // divide fraction[2]- intermediate val
|
| 205 |
|
|
wire d6stg_frac_29; // divide fraction[29]- intermediate val
|
| 206 |
|
|
wire d6stg_frac_30; // divide fraction[30]- intermediate val
|
| 207 |
|
|
wire d6stg_frac_31; // divide fraction[31]- intermediate val
|
| 208 |
|
|
wire div_frac_add_in1_neq_0; // div_frac_add_in1 != 0
|
| 209 |
|
|
wire div_frac_add_52_inv; // div_frac_add bit[52] inverted
|
| 210 |
|
|
wire div_frac_add_52_inva; // div_frac_add bit[52] inverted copy
|
| 211 |
|
|
wire [54:53] div_frac_out; // divide fraction output- fpu_div
|
| 212 |
|
|
wire [51:0] div_frac_outa; // divide fraction output
|
| 213 |
|
|
|
| 214 |
|
|
|
| 215 |
|
|
///////////////////////////////////////////////////////////////////////////////
|
| 216 |
|
|
//
|
| 217 |
|
|
// Instantiations.
|
| 218 |
|
|
//
|
| 219 |
|
|
///////////////////////////////////////////////////////////////////////////////
|
| 220 |
|
|
|
| 221 |
|
|
fpu_div_ctl fpu_div_ctl (
|
| 222 |
|
|
.inq_in1_51 (inq_in1[51]),
|
| 223 |
|
|
.inq_in1_54 (inq_in1[54]),
|
| 224 |
|
|
.inq_in1_53_0_neq_0 (inq_in1_53_0_neq_0),
|
| 225 |
|
|
.inq_in1_50_0_neq_0 (inq_in1_50_0_neq_0),
|
| 226 |
|
|
.inq_in1_53_32_neq_0 (inq_in1_53_32_neq_0),
|
| 227 |
|
|
.inq_in1_exp_eq_0 (inq_in1_exp_eq_0),
|
| 228 |
|
|
.inq_in1_exp_neq_ffs (inq_in1_exp_neq_ffs),
|
| 229 |
|
|
.inq_in2_51 (inq_in2[51]),
|
| 230 |
|
|
.inq_in2_54 (inq_in2[54]),
|
| 231 |
|
|
.inq_in2_53_0_neq_0 (inq_in2_53_0_neq_0),
|
| 232 |
|
|
.inq_in2_50_0_neq_0 (inq_in2_50_0_neq_0),
|
| 233 |
|
|
.inq_in2_53_32_neq_0 (inq_in2_53_32_neq_0),
|
| 234 |
|
|
.inq_in2_exp_eq_0 (inq_in2_exp_eq_0),
|
| 235 |
|
|
.inq_in2_exp_neq_ffs (inq_in2_exp_neq_ffs),
|
| 236 |
|
|
.inq_op (inq_op[7:0]),
|
| 237 |
|
|
.div_exp1 (div_exp1[12:0]),
|
| 238 |
|
|
.div_dest_rdy (div_dest_rdy),
|
| 239 |
|
|
.inq_rnd_mode (inq_rnd_mode[1:0]),
|
| 240 |
|
|
.inq_id (inq_id[4:0]),
|
| 241 |
|
|
.inq_in1_63 (inq_in1[63]),
|
| 242 |
|
|
.inq_in2_63 (inq_in2[63]),
|
| 243 |
|
|
.inq_div (inq_div),
|
| 244 |
|
|
.div_exp_out (div_exp_out[12:0]),
|
| 245 |
|
|
.div_frac_add_52_inva (div_frac_add_52_inva),
|
| 246 |
|
|
.div_frac_add_in1_neq_0 (div_frac_add_in1_neq_0),
|
| 247 |
|
|
.div_frac_out_54 (div_frac_out[54]),
|
| 248 |
|
|
.d6stg_frac_0 (d6stg_frac_0),
|
| 249 |
|
|
.d6stg_frac_1 (d6stg_frac_1),
|
| 250 |
|
|
.d6stg_frac_2 (d6stg_frac_2),
|
| 251 |
|
|
.d6stg_frac_29 (d6stg_frac_29),
|
| 252 |
|
|
.d6stg_frac_30 (d6stg_frac_30),
|
| 253 |
|
|
.d6stg_frac_31 (d6stg_frac_31),
|
| 254 |
|
|
.div_frac_out_53 (div_frac_out[53]),
|
| 255 |
|
|
.div_expadd2_12 (div_expadd2[12]),
|
| 256 |
|
|
.arst_l (arst_l),
|
| 257 |
|
|
.grst_l (grst_l),
|
| 258 |
|
|
.rclk (rclk),
|
| 259 |
|
|
|
| 260 |
|
|
.div_pipe_active (div_pipe_active),
|
| 261 |
|
|
.d1stg_snan_sng_in1 (d1stg_snan_sng_in1),
|
| 262 |
|
|
.d1stg_snan_dbl_in1 (d1stg_snan_dbl_in1),
|
| 263 |
|
|
.d1stg_snan_sng_in2 (d1stg_snan_sng_in2),
|
| 264 |
|
|
.d1stg_snan_dbl_in2 (d1stg_snan_dbl_in2),
|
| 265 |
|
|
.d1stg_step (d1stg_step),
|
| 266 |
|
|
.d1stg_dblop (d1stg_dblop),
|
| 267 |
|
|
.d234stg_fdiv (d234stg_fdiv),
|
| 268 |
|
|
.d3stg_fdiv (d3stg_fdiv),
|
| 269 |
|
|
.d4stg_fdiv (d4stg_fdiv),
|
| 270 |
|
|
.d5stg_fdiva (d5stg_fdiva),
|
| 271 |
|
|
.d5stg_fdivb (d5stg_fdivb),
|
| 272 |
|
|
.d5stg_fdivs (d5stg_fdivs),
|
| 273 |
|
|
.d5stg_fdivd (d5stg_fdivd),
|
| 274 |
|
|
.d6stg_fdiv (d6stg_fdiv),
|
| 275 |
|
|
.d6stg_fdivs (d6stg_fdivs),
|
| 276 |
|
|
.d6stg_fdivd (d6stg_fdivd),
|
| 277 |
|
|
.d7stg_fdiv (d7stg_fdiv),
|
| 278 |
|
|
.d7stg_fdivd (d7stg_fdivd),
|
| 279 |
|
|
.d8stg_fdiv_in (d8stg_fdiv_in),
|
| 280 |
|
|
.d8stg_fdivs (d8stg_fdivs),
|
| 281 |
|
|
.d8stg_fdivd (d8stg_fdivd),
|
| 282 |
|
|
.div_id_out_in (div_id_out_in[9:0]),
|
| 283 |
|
|
.div_sign_out (div_sign_out),
|
| 284 |
|
|
.div_exc_out (div_exc_out[4:0]),
|
| 285 |
|
|
.div_norm_frac_in1_dbl_norm (div_norm_frac_in1_dbl_norm),
|
| 286 |
|
|
.div_norm_frac_in1_dbl_dnrm (div_norm_frac_in1_dbl_dnrm),
|
| 287 |
|
|
.div_norm_frac_in1_sng_norm (div_norm_frac_in1_sng_norm),
|
| 288 |
|
|
.div_norm_frac_in1_sng_dnrm (div_norm_frac_in1_sng_dnrm),
|
| 289 |
|
|
.div_norm_frac_in2_dbl_norm (div_norm_frac_in2_dbl_norm),
|
| 290 |
|
|
.div_norm_frac_in2_dbl_dnrm (div_norm_frac_in2_dbl_dnrm),
|
| 291 |
|
|
.div_norm_frac_in2_sng_norm (div_norm_frac_in2_sng_norm),
|
| 292 |
|
|
.div_norm_frac_in2_sng_dnrm (div_norm_frac_in2_sng_dnrm),
|
| 293 |
|
|
.div_norm_inf (div_norm_inf),
|
| 294 |
|
|
.div_norm_qnan (div_norm_qnan),
|
| 295 |
|
|
.div_norm_zero (div_norm_zero),
|
| 296 |
|
|
.div_frac_add_in2_load (div_frac_add_in2_load),
|
| 297 |
|
|
.d6stg_frac_out_shl1 (d6stg_frac_out_shl1),
|
| 298 |
|
|
.d6stg_frac_out_nosh (d6stg_frac_out_nosh),
|
| 299 |
|
|
.div_frac_add_in1_add (div_frac_add_in1_add),
|
| 300 |
|
|
.div_frac_add_in1_load (div_frac_add_in1_load),
|
| 301 |
|
|
.d7stg_rndup_inv (d7stg_rndup_inv),
|
| 302 |
|
|
.d7stg_to_0 (d7stg_to_0),
|
| 303 |
|
|
.d7stg_to_0_inv (d7stg_to_0_inv),
|
| 304 |
|
|
.div_frac_out_add_in1 (div_frac_out_add_in1),
|
| 305 |
|
|
.div_frac_out_add (div_frac_out_add),
|
| 306 |
|
|
.div_frac_out_shl1_dbl (div_frac_out_shl1_dbl),
|
| 307 |
|
|
.div_frac_out_shl1_sng (div_frac_out_shl1_sng),
|
| 308 |
|
|
.div_frac_out_of (div_frac_out_of),
|
| 309 |
|
|
.div_frac_out_load (div_frac_out_load),
|
| 310 |
|
|
.div_expadd1_in1_dbl (div_expadd1_in1_dbl),
|
| 311 |
|
|
.div_expadd1_in1_sng (div_expadd1_in1_sng),
|
| 312 |
|
|
.div_expadd1_in2_exp_in2_dbl (div_expadd1_in2_exp_in2_dbl),
|
| 313 |
|
|
.div_expadd1_in2_exp_in2_sng (div_expadd1_in2_exp_in2_sng),
|
| 314 |
|
|
.div_exp1_expadd1 (div_exp1_expadd1),
|
| 315 |
|
|
.div_exp1_0835 (div_exp1_0835),
|
| 316 |
|
|
.div_exp1_0118 (div_exp1_0118),
|
| 317 |
|
|
.div_exp1_zero (div_exp1_zero),
|
| 318 |
|
|
.div_exp1_load (div_exp1_load),
|
| 319 |
|
|
.div_expadd2_in1_exp_out (div_expadd2_in1_exp_out),
|
| 320 |
|
|
.div_expadd2_no_decr_inv (div_expadd2_no_decr_inv),
|
| 321 |
|
|
.div_expadd2_cin (div_expadd2_cin),
|
| 322 |
|
|
.div_exp_out_expadd22_inv (div_exp_out_expadd22_inv),
|
| 323 |
|
|
.div_exp_out_expadd2 (div_exp_out_expadd2),
|
| 324 |
|
|
.div_exp_out_of (div_exp_out_of),
|
| 325 |
|
|
.div_exp_out_exp_out (div_exp_out_exp_out),
|
| 326 |
|
|
.div_exp_out_load (div_exp_out_load),
|
| 327 |
|
|
|
| 328 |
|
|
.se (se),
|
| 329 |
|
|
.si (si),
|
| 330 |
|
|
.so (scan_out_fpu_div_ctl)
|
| 331 |
|
|
);
|
| 332 |
|
|
|
| 333 |
|
|
|
| 334 |
|
|
fpu_div_exp_dp fpu_div_exp_dp (
|
| 335 |
|
|
.inq_in1 (inq_in1[62:52]),
|
| 336 |
|
|
.inq_in2 (inq_in2[62:52]),
|
| 337 |
|
|
.d1stg_step (d1stg_step),
|
| 338 |
|
|
.d234stg_fdiv (d234stg_fdiv),
|
| 339 |
|
|
.div_expadd1_in1_dbl (div_expadd1_in1_dbl),
|
| 340 |
|
|
.div_expadd1_in1_sng (div_expadd1_in1_sng),
|
| 341 |
|
|
.div_expadd1_in2_exp_in2_dbl (div_expadd1_in2_exp_in2_dbl),
|
| 342 |
|
|
.div_expadd1_in2_exp_in2_sng (div_expadd1_in2_exp_in2_sng),
|
| 343 |
|
|
.d3stg_fdiv (d3stg_fdiv),
|
| 344 |
|
|
.d4stg_fdiv (d4stg_fdiv),
|
| 345 |
|
|
.div_shl_cnt (div_shl_cnt[5:0]),
|
| 346 |
|
|
.div_exp1_expadd1 (div_exp1_expadd1),
|
| 347 |
|
|
.div_exp1_0835 (div_exp1_0835),
|
| 348 |
|
|
.div_exp1_0118 (div_exp1_0118),
|
| 349 |
|
|
.div_exp1_zero (div_exp1_zero),
|
| 350 |
|
|
.div_exp1_load (div_exp1_load),
|
| 351 |
|
|
.div_expadd2_in1_exp_out (div_expadd2_in1_exp_out),
|
| 352 |
|
|
.d5stg_fdiva (d5stg_fdiva),
|
| 353 |
|
|
.d5stg_fdivd (d5stg_fdivd),
|
| 354 |
|
|
.d5stg_fdivs (d5stg_fdivs),
|
| 355 |
|
|
.d6stg_fdiv (d6stg_fdiv),
|
| 356 |
|
|
.d7stg_fdiv (d7stg_fdiv),
|
| 357 |
|
|
.div_expadd2_no_decr_inv (div_expadd2_no_decr_inv),
|
| 358 |
|
|
.div_expadd2_cin (div_expadd2_cin),
|
| 359 |
|
|
.div_exp_out_expadd2 (div_exp_out_expadd2),
|
| 360 |
|
|
.div_exp_out_expadd22_inv (div_exp_out_expadd22_inv),
|
| 361 |
|
|
.div_exp_out_of (div_exp_out_of),
|
| 362 |
|
|
.d7stg_to_0_inv (d7stg_to_0_inv),
|
| 363 |
|
|
.d7stg_fdivd (d7stg_fdivd),
|
| 364 |
|
|
.div_exp_out_exp_out (div_exp_out_exp_out),
|
| 365 |
|
|
.d7stg_rndup_inv (d7stg_rndup_inv),
|
| 366 |
|
|
.div_frac_add_52_inv (div_frac_add_52_inv),
|
| 367 |
|
|
.div_exp_out_load (div_exp_out_load),
|
| 368 |
|
|
.fdiv_clken_l (fdiv_clken_l_div_exp_buf1),
|
| 369 |
|
|
.rclk (rclk),
|
| 370 |
|
|
|
| 371 |
|
|
.div_exp1 (div_exp1[12:0]),
|
| 372 |
|
|
.div_expadd2_12 (div_expadd2[12]),
|
| 373 |
|
|
.div_exp_out (div_exp_out[12:0]),
|
| 374 |
|
|
.div_exp_outa (div_exp_outa[10:0]),
|
| 375 |
|
|
|
| 376 |
|
|
.se (se),
|
| 377 |
|
|
.si (scan_out_fpu_div_ctl),
|
| 378 |
|
|
.so (scan_out_fpu_div_exp_dp)
|
| 379 |
|
|
);
|
| 380 |
|
|
|
| 381 |
|
|
|
| 382 |
|
|
fpu_div_frac_dp fpu_div_frac_dp (
|
| 383 |
|
|
.inq_in1 (inq_in1[54:0]),
|
| 384 |
|
|
.inq_in2 (inq_in2[54:0]),
|
| 385 |
|
|
.d1stg_step (d1stg_step),
|
| 386 |
|
|
.div_norm_frac_in1_dbl_norm (div_norm_frac_in1_dbl_norm),
|
| 387 |
|
|
.div_norm_frac_in1_dbl_dnrm (div_norm_frac_in1_dbl_dnrm),
|
| 388 |
|
|
.div_norm_frac_in1_sng_norm (div_norm_frac_in1_sng_norm),
|
| 389 |
|
|
.div_norm_frac_in1_sng_dnrm (div_norm_frac_in1_sng_dnrm),
|
| 390 |
|
|
.div_norm_frac_in2_dbl_norm (div_norm_frac_in2_dbl_norm),
|
| 391 |
|
|
.div_norm_frac_in2_dbl_dnrm (div_norm_frac_in2_dbl_dnrm),
|
| 392 |
|
|
.div_norm_frac_in2_sng_norm (div_norm_frac_in2_sng_norm),
|
| 393 |
|
|
.div_norm_frac_in2_sng_dnrm (div_norm_frac_in2_sng_dnrm),
|
| 394 |
|
|
.div_norm_inf (div_norm_inf),
|
| 395 |
|
|
.div_norm_qnan (div_norm_qnan),
|
| 396 |
|
|
.d1stg_dblop (d1stg_dblop),
|
| 397 |
|
|
.div_norm_zero (div_norm_zero),
|
| 398 |
|
|
.d1stg_snan_dbl_in1 (d1stg_snan_dbl_in1),
|
| 399 |
|
|
.d1stg_snan_sng_in1 (d1stg_snan_sng_in1),
|
| 400 |
|
|
.d1stg_snan_dbl_in2 (d1stg_snan_dbl_in2),
|
| 401 |
|
|
.d1stg_snan_sng_in2 (d1stg_snan_sng_in2),
|
| 402 |
|
|
.d3stg_fdiv (d3stg_fdiv),
|
| 403 |
|
|
.d6stg_fdiv (d6stg_fdiv),
|
| 404 |
|
|
.d6stg_fdivd (d6stg_fdivd),
|
| 405 |
|
|
.d6stg_fdivs (d6stg_fdivs),
|
| 406 |
|
|
.div_frac_add_in2_load (div_frac_add_in2_load),
|
| 407 |
|
|
.d6stg_frac_out_shl1 (d6stg_frac_out_shl1),
|
| 408 |
|
|
.d6stg_frac_out_nosh (d6stg_frac_out_nosh),
|
| 409 |
|
|
.d4stg_fdiv (d4stg_fdiv),
|
| 410 |
|
|
.div_frac_add_in1_add (div_frac_add_in1_add),
|
| 411 |
|
|
.div_frac_add_in1_load (div_frac_add_in1_load),
|
| 412 |
|
|
.d5stg_fdivb (d5stg_fdivb),
|
| 413 |
|
|
.div_frac_out_add_in1 (div_frac_out_add_in1),
|
| 414 |
|
|
.div_frac_out_add (div_frac_out_add),
|
| 415 |
|
|
.div_frac_out_shl1_dbl (div_frac_out_shl1_dbl),
|
| 416 |
|
|
.div_frac_out_shl1_sng (div_frac_out_shl1_sng),
|
| 417 |
|
|
.div_frac_out_of (div_frac_out_of),
|
| 418 |
|
|
.d7stg_to_0 (d7stg_to_0),
|
| 419 |
|
|
.div_frac_out_load (div_frac_out_load),
|
| 420 |
|
|
.fdiv_clken_l (fdiv_clken_l),
|
| 421 |
|
|
.rclk (rclk),
|
| 422 |
|
|
|
| 423 |
|
|
.div_shl_cnt (div_shl_cnt[5:0]),
|
| 424 |
|
|
.d6stg_frac_0 (d6stg_frac_0),
|
| 425 |
|
|
.d6stg_frac_1 (d6stg_frac_1),
|
| 426 |
|
|
.d6stg_frac_2 (d6stg_frac_2),
|
| 427 |
|
|
.d6stg_frac_29 (d6stg_frac_29),
|
| 428 |
|
|
.d6stg_frac_30 (d6stg_frac_30),
|
| 429 |
|
|
.d6stg_frac_31 (d6stg_frac_31),
|
| 430 |
|
|
.div_frac_add_in1_neq_0 (div_frac_add_in1_neq_0),
|
| 431 |
|
|
.div_frac_add_52_inv (div_frac_add_52_inv),
|
| 432 |
|
|
.div_frac_add_52_inva (div_frac_add_52_inva),
|
| 433 |
|
|
.div_frac_out_54_53 (div_frac_out[54:53]),
|
| 434 |
|
|
.div_frac_outa (div_frac_outa[51:0]),
|
| 435 |
|
|
|
| 436 |
|
|
.se (se),
|
| 437 |
|
|
.si (scan_out_fpu_div_exp_dp),
|
| 438 |
|
|
.so (so)
|
| 439 |
|
|
);
|
| 440 |
|
|
|
| 441 |
|
|
|
| 442 |
|
|
endmodule
|
| 443 |
|
|
|
| 444 |
|
|
|