987 lines
48 KiB
Verilog
987 lines
48 KiB
Verilog
module rvclkhdr(
|
|
input io_clk,
|
|
input io_en
|
|
);
|
|
wire clkhdr_Q; // @[lib.scala 334:26]
|
|
wire clkhdr_CK; // @[lib.scala 334:26]
|
|
wire clkhdr_EN; // @[lib.scala 334:26]
|
|
wire clkhdr_SE; // @[lib.scala 334:26]
|
|
gated_latch clkhdr ( // @[lib.scala 334:26]
|
|
.Q(clkhdr_Q),
|
|
.CK(clkhdr_CK),
|
|
.EN(clkhdr_EN),
|
|
.SE(clkhdr_SE)
|
|
);
|
|
assign clkhdr_CK = io_clk; // @[lib.scala 336:18]
|
|
assign clkhdr_EN = io_en; // @[lib.scala 337:18]
|
|
assign clkhdr_SE = 1'h0; // @[lib.scala 338:18]
|
|
endmodule
|
|
module el2_exu_div_existing_1bit_cheapshortq(
|
|
input clock,
|
|
input reset,
|
|
input io_cancel,
|
|
input io_valid_in,
|
|
input io_signed_in,
|
|
input io_rem_in,
|
|
input [31:0] io_dividend_in,
|
|
input [31:0] io_divisor_in,
|
|
output [31:0] io_data_out,
|
|
output io_valid_out
|
|
);
|
|
`ifdef RANDOMIZE_REG_INIT
|
|
reg [31:0] _RAND_0;
|
|
reg [63:0] _RAND_1;
|
|
reg [63:0] _RAND_2;
|
|
reg [31:0] _RAND_3;
|
|
reg [31:0] _RAND_4;
|
|
reg [31:0] _RAND_5;
|
|
reg [31:0] _RAND_6;
|
|
reg [31:0] _RAND_7;
|
|
reg [31:0] _RAND_8;
|
|
reg [31:0] _RAND_9;
|
|
reg [31:0] _RAND_10;
|
|
reg [63:0] _RAND_11;
|
|
reg [31:0] _RAND_12;
|
|
reg [31:0] _RAND_13;
|
|
reg [31:0] _RAND_14;
|
|
`endif // RANDOMIZE_REG_INIT
|
|
wire rvclkhdr_io_clk; // @[lib.scala 390:23]
|
|
wire rvclkhdr_io_en; // @[lib.scala 390:23]
|
|
wire rvclkhdr_1_io_clk; // @[lib.scala 390:23]
|
|
wire rvclkhdr_1_io_en; // @[lib.scala 390:23]
|
|
wire rvclkhdr_2_io_clk; // @[lib.scala 390:23]
|
|
wire rvclkhdr_2_io_en; // @[lib.scala 390:23]
|
|
wire rvclkhdr_3_io_clk; // @[lib.scala 390:23]
|
|
wire rvclkhdr_3_io_en; // @[lib.scala 390:23]
|
|
wire rvclkhdr_4_io_clk; // @[lib.scala 390:23]
|
|
wire rvclkhdr_4_io_en; // @[lib.scala 390:23]
|
|
wire rvclkhdr_5_io_clk; // @[lib.scala 390:23]
|
|
wire rvclkhdr_5_io_en; // @[lib.scala 390:23]
|
|
wire rvclkhdr_6_io_clk; // @[lib.scala 390:23]
|
|
wire rvclkhdr_6_io_en; // @[lib.scala 390:23]
|
|
wire rvclkhdr_7_io_clk; // @[lib.scala 390:23]
|
|
wire rvclkhdr_7_io_en; // @[lib.scala 390:23]
|
|
wire rvclkhdr_8_io_clk; // @[lib.scala 390:23]
|
|
wire rvclkhdr_8_io_en; // @[lib.scala 390:23]
|
|
wire rvclkhdr_9_io_clk; // @[lib.scala 390:23]
|
|
wire rvclkhdr_9_io_en; // @[lib.scala 390:23]
|
|
wire rvclkhdr_10_io_clk; // @[lib.scala 390:23]
|
|
wire rvclkhdr_10_io_en; // @[lib.scala 390:23]
|
|
wire rvclkhdr_11_io_clk; // @[lib.scala 390:23]
|
|
wire rvclkhdr_11_io_en; // @[lib.scala 390:23]
|
|
wire rvclkhdr_12_io_clk; // @[lib.scala 390:23]
|
|
wire rvclkhdr_12_io_en; // @[lib.scala 390:23]
|
|
wire rvclkhdr_13_io_clk; // @[lib.scala 390:23]
|
|
wire rvclkhdr_13_io_en; // @[lib.scala 390:23]
|
|
wire rvclkhdr_14_io_clk; // @[lib.scala 390:23]
|
|
wire rvclkhdr_14_io_en; // @[lib.scala 390:23]
|
|
wire _T = ~io_cancel; // @[exu_div_ctl.scala 127:30]
|
|
reg valid_ff_x; // @[Reg.scala 27:20]
|
|
wire valid_x = valid_ff_x & _T; // @[exu_div_ctl.scala 127:28]
|
|
reg [32:0] q_ff; // @[Reg.scala 27:20]
|
|
wire _T_2 = q_ff[31:4] == 28'h0; // @[exu_div_ctl.scala 133:34]
|
|
reg [32:0] m_ff; // @[Reg.scala 27:20]
|
|
wire _T_4 = m_ff[31:4] == 28'h0; // @[exu_div_ctl.scala 133:57]
|
|
wire _T_5 = _T_2 & _T_4; // @[exu_div_ctl.scala 133:43]
|
|
wire _T_7 = m_ff[31:0] != 32'h0; // @[exu_div_ctl.scala 133:80]
|
|
wire _T_8 = _T_5 & _T_7; // @[exu_div_ctl.scala 133:66]
|
|
reg rem_ff; // @[Reg.scala 27:20]
|
|
wire _T_9 = ~rem_ff; // @[exu_div_ctl.scala 133:91]
|
|
wire _T_10 = _T_8 & _T_9; // @[exu_div_ctl.scala 133:89]
|
|
wire _T_11 = _T_10 & valid_x; // @[exu_div_ctl.scala 133:99]
|
|
wire _T_13 = q_ff[31:0] == 32'h0; // @[exu_div_ctl.scala 134:18]
|
|
wire _T_16 = _T_13 & _T_7; // @[exu_div_ctl.scala 134:27]
|
|
wire _T_18 = _T_16 & _T_9; // @[exu_div_ctl.scala 134:50]
|
|
wire _T_19 = _T_18 & valid_x; // @[exu_div_ctl.scala 134:60]
|
|
wire smallnum_case = _T_11 | _T_19; // @[exu_div_ctl.scala 133:110]
|
|
wire _T_23 = ~m_ff[3]; // @[exu_div_ctl.scala 138:69]
|
|
wire _T_25 = ~m_ff[2]; // @[exu_div_ctl.scala 138:69]
|
|
wire _T_27 = ~m_ff[1]; // @[exu_div_ctl.scala 138:69]
|
|
wire _T_28 = _T_23 & _T_25; // @[exu_div_ctl.scala 138:94]
|
|
wire _T_29 = _T_28 & _T_27; // @[exu_div_ctl.scala 138:94]
|
|
wire _T_30 = q_ff[3] & _T_29; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_37 = q_ff[3] & _T_28; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_39 = ~m_ff[0]; // @[exu_div_ctl.scala 145:32]
|
|
wire _T_40 = _T_37 & _T_39; // @[exu_div_ctl.scala 145:30]
|
|
wire _T_50 = q_ff[2] & _T_29; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_51 = _T_40 | _T_50; // @[exu_div_ctl.scala 145:41]
|
|
wire _T_54 = q_ff[3] & q_ff[2]; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_60 = _T_54 & _T_28; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_61 = _T_51 | _T_60; // @[exu_div_ctl.scala 145:73]
|
|
wire _T_68 = q_ff[2] & _T_28; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_71 = _T_68 & _T_39; // @[exu_div_ctl.scala 147:30]
|
|
wire _T_81 = q_ff[1] & _T_29; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_82 = _T_71 | _T_81; // @[exu_div_ctl.scala 147:41]
|
|
wire _T_88 = _T_23 & _T_27; // @[exu_div_ctl.scala 138:94]
|
|
wire _T_89 = q_ff[3] & _T_88; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_92 = _T_89 & _T_39; // @[exu_div_ctl.scala 147:103]
|
|
wire _T_93 = _T_82 | _T_92; // @[exu_div_ctl.scala 147:76]
|
|
wire _T_96 = ~q_ff[2]; // @[exu_div_ctl.scala 137:69]
|
|
wire _T_97 = q_ff[3] & _T_96; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_105 = _T_28 & m_ff[1]; // @[exu_div_ctl.scala 138:94]
|
|
wire _T_106 = _T_105 & m_ff[0]; // @[exu_div_ctl.scala 138:94]
|
|
wire _T_107 = _T_97 & _T_106; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_108 = _T_93 | _T_107; // @[exu_div_ctl.scala 147:114]
|
|
wire _T_110 = ~q_ff[3]; // @[exu_div_ctl.scala 137:69]
|
|
wire _T_113 = _T_110 & q_ff[2]; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_114 = _T_113 & q_ff[1]; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_120 = _T_114 & _T_28; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_121 = _T_108 | _T_120; // @[exu_div_ctl.scala 148:43]
|
|
wire _T_127 = _T_54 & _T_23; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_130 = _T_127 & _T_39; // @[exu_div_ctl.scala 148:104]
|
|
wire _T_131 = _T_121 | _T_130; // @[exu_div_ctl.scala 148:78]
|
|
wire _T_140 = _T_23 & m_ff[2]; // @[exu_div_ctl.scala 138:94]
|
|
wire _T_141 = _T_140 & _T_27; // @[exu_div_ctl.scala 138:94]
|
|
wire _T_142 = _T_54 & _T_141; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_143 = _T_131 | _T_142; // @[exu_div_ctl.scala 148:116]
|
|
wire _T_146 = q_ff[3] & q_ff[1]; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_152 = _T_146 & _T_88; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_153 = _T_143 | _T_152; // @[exu_div_ctl.scala 149:43]
|
|
wire _T_158 = _T_54 & q_ff[1]; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_163 = _T_158 & _T_140; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_164 = _T_153 | _T_163; // @[exu_div_ctl.scala 149:77]
|
|
wire _T_168 = q_ff[2] & q_ff[1]; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_169 = _T_168 & q_ff[0]; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_175 = _T_169 & _T_88; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_181 = _T_97 & q_ff[0]; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_186 = _T_23 & m_ff[1]; // @[exu_div_ctl.scala 138:94]
|
|
wire _T_187 = _T_186 & m_ff[0]; // @[exu_div_ctl.scala 138:94]
|
|
wire _T_188 = _T_181 & _T_187; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_189 = _T_175 | _T_188; // @[exu_div_ctl.scala 151:44]
|
|
wire _T_196 = q_ff[2] & _T_88; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_199 = _T_196 & _T_39; // @[exu_div_ctl.scala 151:111]
|
|
wire _T_200 = _T_189 | _T_199; // @[exu_div_ctl.scala 151:84]
|
|
wire _T_207 = q_ff[1] & _T_28; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_210 = _T_207 & _T_39; // @[exu_div_ctl.scala 152:32]
|
|
wire _T_211 = _T_200 | _T_210; // @[exu_div_ctl.scala 151:126]
|
|
wire _T_221 = q_ff[0] & _T_29; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_222 = _T_211 | _T_221; // @[exu_div_ctl.scala 152:46]
|
|
wire _T_227 = ~q_ff[1]; // @[exu_div_ctl.scala 137:69]
|
|
wire _T_229 = _T_113 & _T_227; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_239 = _T_229 & _T_106; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_240 = _T_222 | _T_239; // @[exu_div_ctl.scala 152:86]
|
|
wire _T_249 = _T_114 & _T_23; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_252 = _T_249 & _T_39; // @[exu_div_ctl.scala 153:35]
|
|
wire _T_253 = _T_240 | _T_252; // @[exu_div_ctl.scala 152:128]
|
|
wire _T_259 = _T_25 & _T_27; // @[exu_div_ctl.scala 138:94]
|
|
wire _T_260 = q_ff[3] & _T_259; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_263 = _T_260 & _T_39; // @[exu_div_ctl.scala 153:74]
|
|
wire _T_264 = _T_253 | _T_263; // @[exu_div_ctl.scala 153:46]
|
|
wire _T_274 = _T_140 & m_ff[1]; // @[exu_div_ctl.scala 138:94]
|
|
wire _T_275 = _T_97 & _T_274; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_276 = _T_264 | _T_275; // @[exu_div_ctl.scala 153:86]
|
|
wire _T_290 = _T_114 & _T_141; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_291 = _T_276 | _T_290; // @[exu_div_ctl.scala 153:128]
|
|
wire _T_297 = _T_113 & q_ff[0]; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_303 = _T_297 & _T_88; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_304 = _T_291 | _T_303; // @[exu_div_ctl.scala 154:46]
|
|
wire _T_311 = _T_97 & _T_227; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_317 = _T_140 & m_ff[0]; // @[exu_div_ctl.scala 138:94]
|
|
wire _T_318 = _T_311 & _T_317; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_319 = _T_304 | _T_318; // @[exu_div_ctl.scala 154:86]
|
|
wire _T_324 = _T_96 & q_ff[1]; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_325 = _T_324 & q_ff[0]; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_331 = _T_325 & _T_28; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_332 = _T_319 | _T_331; // @[exu_div_ctl.scala 154:128]
|
|
wire _T_338 = _T_54 & _T_27; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_341 = _T_338 & _T_39; // @[exu_div_ctl.scala 155:73]
|
|
wire _T_342 = _T_332 | _T_341; // @[exu_div_ctl.scala 155:46]
|
|
wire _T_350 = _T_114 & q_ff[0]; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_355 = _T_350 & _T_140; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_356 = _T_342 | _T_355; // @[exu_div_ctl.scala 155:86]
|
|
wire _T_363 = m_ff[3] & _T_25; // @[exu_div_ctl.scala 138:94]
|
|
wire _T_364 = _T_54 & _T_363; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_365 = _T_356 | _T_364; // @[exu_div_ctl.scala 155:128]
|
|
wire _T_375 = _T_363 & _T_27; // @[exu_div_ctl.scala 138:94]
|
|
wire _T_376 = _T_146 & _T_375; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_377 = _T_365 | _T_376; // @[exu_div_ctl.scala 156:46]
|
|
wire _T_380 = q_ff[3] & q_ff[0]; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_386 = _T_380 & _T_259; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_387 = _T_377 | _T_386; // @[exu_div_ctl.scala 156:86]
|
|
wire _T_391 = q_ff[3] & _T_227; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_399 = _T_274 & m_ff[0]; // @[exu_div_ctl.scala 138:94]
|
|
wire _T_400 = _T_391 & _T_399; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_401 = _T_387 | _T_400; // @[exu_div_ctl.scala 156:128]
|
|
wire _T_408 = _T_158 & m_ff[3]; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_411 = _T_408 & _T_39; // @[exu_div_ctl.scala 157:75]
|
|
wire _T_412 = _T_401 | _T_411; // @[exu_div_ctl.scala 157:46]
|
|
wire _T_421 = m_ff[3] & _T_27; // @[exu_div_ctl.scala 138:94]
|
|
wire _T_422 = _T_158 & _T_421; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_423 = _T_412 | _T_422; // @[exu_div_ctl.scala 157:86]
|
|
wire _T_428 = _T_54 & q_ff[0]; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_433 = _T_428 & _T_421; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_434 = _T_423 | _T_433; // @[exu_div_ctl.scala 157:128]
|
|
wire _T_440 = _T_97 & q_ff[1]; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_445 = _T_440 & _T_186; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_446 = _T_434 | _T_445; // @[exu_div_ctl.scala 158:46]
|
|
wire _T_451 = _T_146 & q_ff[0]; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_454 = _T_451 & _T_25; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_455 = _T_446 | _T_454; // @[exu_div_ctl.scala 158:86]
|
|
wire _T_462 = _T_158 & q_ff[0]; // @[exu_div_ctl.scala 137:94]
|
|
wire _T_464 = _T_462 & m_ff[3]; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_465 = _T_455 | _T_464; // @[exu_div_ctl.scala 158:128]
|
|
wire _T_471 = _T_146 & _T_25; // @[exu_div_ctl.scala 139:10]
|
|
wire _T_474 = _T_471 & _T_39; // @[exu_div_ctl.scala 159:72]
|
|
wire _T_475 = _T_465 | _T_474; // @[exu_div_ctl.scala 159:46]
|
|
wire [3:0] smallnum = {_T_30,_T_61,_T_164,_T_475}; // @[Cat.scala 29:58]
|
|
reg sign_ff; // @[Reg.scala 27:20]
|
|
wire _T_479 = sign_ff & q_ff[31]; // @[exu_div_ctl.scala 168:34]
|
|
wire [32:0] short_dividend = {_T_479,q_ff[31:0]}; // @[Cat.scala 29:58]
|
|
wire _T_484 = ~short_dividend[32]; // @[exu_div_ctl.scala 173:7]
|
|
wire _T_487 = short_dividend[31:24] != 8'h0; // @[exu_div_ctl.scala 173:60]
|
|
wire _T_492 = short_dividend[31:23] != 9'h1ff; // @[exu_div_ctl.scala 174:59]
|
|
wire _T_493 = _T_484 & _T_487; // @[Mux.scala 27:72]
|
|
wire _T_494 = short_dividend[32] & _T_492; // @[Mux.scala 27:72]
|
|
wire _T_495 = _T_493 | _T_494; // @[Mux.scala 27:72]
|
|
wire _T_502 = short_dividend[23:16] != 8'h0; // @[exu_div_ctl.scala 177:60]
|
|
wire _T_507 = short_dividend[22:15] != 8'hff; // @[exu_div_ctl.scala 178:59]
|
|
wire _T_508 = _T_484 & _T_502; // @[Mux.scala 27:72]
|
|
wire _T_509 = short_dividend[32] & _T_507; // @[Mux.scala 27:72]
|
|
wire _T_510 = _T_508 | _T_509; // @[Mux.scala 27:72]
|
|
wire _T_517 = short_dividend[15:8] != 8'h0; // @[exu_div_ctl.scala 181:59]
|
|
wire _T_522 = short_dividend[14:7] != 8'hff; // @[exu_div_ctl.scala 182:58]
|
|
wire _T_523 = _T_484 & _T_517; // @[Mux.scala 27:72]
|
|
wire _T_524 = short_dividend[32] & _T_522; // @[Mux.scala 27:72]
|
|
wire _T_525 = _T_523 | _T_524; // @[Mux.scala 27:72]
|
|
wire [4:0] a_cls = {2'h0,_T_495,_T_510,_T_525}; // @[Cat.scala 29:58]
|
|
wire _T_531 = ~m_ff[32]; // @[exu_div_ctl.scala 187:7]
|
|
wire _T_534 = m_ff[31:24] != 8'h0; // @[exu_div_ctl.scala 187:40]
|
|
wire _T_539 = m_ff[31:24] != 8'hff; // @[exu_div_ctl.scala 188:39]
|
|
wire _T_540 = _T_531 & _T_534; // @[Mux.scala 27:72]
|
|
wire _T_541 = m_ff[32] & _T_539; // @[Mux.scala 27:72]
|
|
wire _T_542 = _T_540 | _T_541; // @[Mux.scala 27:72]
|
|
wire _T_549 = m_ff[23:16] != 8'h0; // @[exu_div_ctl.scala 191:40]
|
|
wire _T_554 = m_ff[23:16] != 8'hff; // @[exu_div_ctl.scala 192:39]
|
|
wire _T_555 = _T_531 & _T_549; // @[Mux.scala 27:72]
|
|
wire _T_556 = m_ff[32] & _T_554; // @[Mux.scala 27:72]
|
|
wire _T_557 = _T_555 | _T_556; // @[Mux.scala 27:72]
|
|
wire _T_564 = m_ff[15:8] != 8'h0; // @[exu_div_ctl.scala 195:39]
|
|
wire _T_569 = m_ff[15:8] != 8'hff; // @[exu_div_ctl.scala 196:38]
|
|
wire _T_570 = _T_531 & _T_564; // @[Mux.scala 27:72]
|
|
wire _T_571 = m_ff[32] & _T_569; // @[Mux.scala 27:72]
|
|
wire _T_572 = _T_570 | _T_571; // @[Mux.scala 27:72]
|
|
wire [4:0] b_cls = {2'h0,_T_542,_T_557,_T_572}; // @[Cat.scala 29:58]
|
|
wire _T_577 = a_cls[2:1] == 2'h1; // @[exu_div_ctl.scala 200:19]
|
|
wire _T_580 = _T_577 & b_cls[2]; // @[exu_div_ctl.scala 200:34]
|
|
wire _T_582 = a_cls[2:0] == 3'h1; // @[exu_div_ctl.scala 201:21]
|
|
wire _T_585 = _T_582 & b_cls[2]; // @[exu_div_ctl.scala 201:36]
|
|
wire _T_586 = _T_580 | _T_585; // @[exu_div_ctl.scala 200:65]
|
|
wire _T_588 = a_cls[2:0] == 3'h0; // @[exu_div_ctl.scala 202:21]
|
|
wire _T_591 = _T_588 & b_cls[2]; // @[exu_div_ctl.scala 202:36]
|
|
wire _T_592 = _T_586 | _T_591; // @[exu_div_ctl.scala 201:67]
|
|
wire _T_596 = b_cls[2:1] == 2'h1; // @[exu_div_ctl.scala 203:50]
|
|
wire _T_597 = _T_582 & _T_596; // @[exu_div_ctl.scala 203:36]
|
|
wire _T_598 = _T_592 | _T_597; // @[exu_div_ctl.scala 202:67]
|
|
wire _T_603 = _T_588 & _T_596; // @[exu_div_ctl.scala 204:36]
|
|
wire _T_604 = _T_598 | _T_603; // @[exu_div_ctl.scala 203:67]
|
|
wire _T_608 = b_cls[2:0] == 3'h1; // @[exu_div_ctl.scala 205:50]
|
|
wire _T_609 = _T_588 & _T_608; // @[exu_div_ctl.scala 205:36]
|
|
wire _T_610 = _T_604 | _T_609; // @[exu_div_ctl.scala 204:67]
|
|
wire _T_615 = a_cls[2] & b_cls[2]; // @[exu_div_ctl.scala 207:34]
|
|
wire _T_620 = _T_577 & _T_596; // @[exu_div_ctl.scala 208:36]
|
|
wire _T_621 = _T_615 | _T_620; // @[exu_div_ctl.scala 207:65]
|
|
wire _T_626 = _T_582 & _T_608; // @[exu_div_ctl.scala 209:36]
|
|
wire _T_627 = _T_621 | _T_626; // @[exu_div_ctl.scala 208:67]
|
|
wire _T_631 = b_cls[2:0] == 3'h0; // @[exu_div_ctl.scala 210:50]
|
|
wire _T_632 = _T_588 & _T_631; // @[exu_div_ctl.scala 210:36]
|
|
wire _T_633 = _T_627 | _T_632; // @[exu_div_ctl.scala 209:67]
|
|
wire _T_638 = a_cls[2] & _T_596; // @[exu_div_ctl.scala 212:34]
|
|
wire _T_643 = _T_577 & _T_608; // @[exu_div_ctl.scala 213:36]
|
|
wire _T_644 = _T_638 | _T_643; // @[exu_div_ctl.scala 212:65]
|
|
wire _T_649 = _T_582 & _T_631; // @[exu_div_ctl.scala 214:36]
|
|
wire _T_650 = _T_644 | _T_649; // @[exu_div_ctl.scala 213:67]
|
|
wire _T_655 = a_cls[2] & _T_608; // @[exu_div_ctl.scala 216:34]
|
|
wire _T_660 = _T_577 & _T_631; // @[exu_div_ctl.scala 217:36]
|
|
wire _T_661 = _T_655 | _T_660; // @[exu_div_ctl.scala 216:65]
|
|
wire [3:0] shortq_raw = {_T_610,_T_633,_T_650,_T_661}; // @[Cat.scala 29:58]
|
|
wire _T_666 = valid_ff_x & _T_7; // @[exu_div_ctl.scala 220:35]
|
|
wire _T_667 = shortq_raw != 4'h0; // @[exu_div_ctl.scala 220:78]
|
|
wire shortq_enable = _T_666 & _T_667; // @[exu_div_ctl.scala 220:64]
|
|
wire [3:0] _T_669 = shortq_enable ? 4'hf : 4'h0; // @[Bitwise.scala 72:12]
|
|
wire [3:0] _T_670 = _T_669 & shortq_raw; // @[exu_div_ctl.scala 221:57]
|
|
wire [5:0] shortq_shift = {2'h0,_T_670}; // @[Cat.scala 29:58]
|
|
reg [5:0] _T_1521; // @[Reg.scala 27:20]
|
|
wire [3:0] shortq_shift_xx = _T_1521[3:0]; // @[exu_div_ctl.scala 277:21]
|
|
wire [4:0] _T_679 = shortq_shift_xx[3] ? 5'h1f : 5'h0; // @[Mux.scala 27:72]
|
|
wire [4:0] _T_680 = shortq_shift_xx[2] ? 5'h18 : 5'h0; // @[Mux.scala 27:72]
|
|
wire [4:0] _T_681 = shortq_shift_xx[1] ? 5'h10 : 5'h0; // @[Mux.scala 27:72]
|
|
wire [3:0] _T_682 = shortq_shift_xx[0] ? 4'h8 : 4'h0; // @[Mux.scala 27:72]
|
|
wire [4:0] _T_683 = _T_679 | _T_680; // @[Mux.scala 27:72]
|
|
wire [4:0] _T_684 = _T_683 | _T_681; // @[Mux.scala 27:72]
|
|
wire [4:0] _GEN_15 = {{1'd0}, _T_682}; // @[Mux.scala 27:72]
|
|
wire [4:0] _T_685 = _T_684 | _GEN_15; // @[Mux.scala 27:72]
|
|
wire [5:0] shortq_shift_ff = {1'h0,_T_685}; // @[Cat.scala 29:58]
|
|
reg [5:0] count; // @[Reg.scala 27:20]
|
|
wire _T_688 = count == 6'h20; // @[exu_div_ctl.scala 230:55]
|
|
wire _T_689 = count == 6'h21; // @[exu_div_ctl.scala 230:76]
|
|
wire _T_690 = _T_9 ? _T_688 : _T_689; // @[exu_div_ctl.scala 230:39]
|
|
wire finish = smallnum_case | _T_690; // @[exu_div_ctl.scala 230:34]
|
|
reg run_state; // @[Reg.scala 27:20]
|
|
wire _T_691 = io_valid_in | run_state; // @[exu_div_ctl.scala 231:32]
|
|
wire _T_692 = _T_691 | finish; // @[exu_div_ctl.scala 231:44]
|
|
reg finish_ff; // @[Reg.scala 27:20]
|
|
wire div_clken = _T_692 | finish_ff; // @[exu_div_ctl.scala 231:53]
|
|
wire _T_694 = ~finish; // @[exu_div_ctl.scala 232:48]
|
|
wire _T_695 = _T_691 & _T_694; // @[exu_div_ctl.scala 232:46]
|
|
wire run_in = _T_695 & _T; // @[exu_div_ctl.scala 232:56]
|
|
wire _T_698 = run_state & _T_694; // @[exu_div_ctl.scala 233:35]
|
|
wire _T_700 = _T_698 & _T; // @[exu_div_ctl.scala 233:45]
|
|
wire _T_701 = ~shortq_enable; // @[exu_div_ctl.scala 233:60]
|
|
wire _T_702 = _T_700 & _T_701; // @[exu_div_ctl.scala 233:58]
|
|
wire [5:0] _T_704 = _T_702 ? 6'h3f : 6'h0; // @[Bitwise.scala 72:12]
|
|
wire [5:0] _T_706 = {1'h0,shortq_shift_ff[4:0]}; // @[Cat.scala 29:58]
|
|
wire [5:0] _T_708 = count + _T_706; // @[exu_div_ctl.scala 233:86]
|
|
wire [5:0] _T_710 = _T_708 + 6'h1; // @[exu_div_ctl.scala 233:118]
|
|
wire [5:0] count_in = _T_704 & _T_710; // @[exu_div_ctl.scala 233:77]
|
|
wire _T_714 = ~io_signed_in; // @[exu_div_ctl.scala 235:20]
|
|
wire _T_715 = io_divisor_in != 32'h0; // @[exu_div_ctl.scala 235:51]
|
|
wire sign_eff = _T_714 & _T_715; // @[exu_div_ctl.scala 235:34]
|
|
wire _T_716 = ~run_state; // @[exu_div_ctl.scala 238:6]
|
|
wire [32:0] _T_718 = {1'h0,io_dividend_in}; // @[Cat.scala 29:58]
|
|
reg shortq_enable_ff; // @[Reg.scala 27:20]
|
|
wire _T_719 = valid_ff_x | shortq_enable_ff; // @[exu_div_ctl.scala 239:30]
|
|
wire _T_720 = run_state & _T_719; // @[exu_div_ctl.scala 239:16]
|
|
reg dividend_neg_ff; // @[Reg.scala 27:20]
|
|
wire _T_744 = sign_ff & dividend_neg_ff; // @[exu_div_ctl.scala 243:32]
|
|
wire _T_929 = |q_ff[30:0]; // @[lib.scala 428:35]
|
|
wire _T_931 = ~q_ff[31]; // @[lib.scala 428:40]
|
|
wire _T_933 = _T_929 ? _T_931 : q_ff[31]; // @[lib.scala 428:23]
|
|
wire _T_923 = |q_ff[29:0]; // @[lib.scala 428:35]
|
|
wire _T_925 = ~q_ff[30]; // @[lib.scala 428:40]
|
|
wire _T_927 = _T_923 ? _T_925 : q_ff[30]; // @[lib.scala 428:23]
|
|
wire _T_917 = |q_ff[28:0]; // @[lib.scala 428:35]
|
|
wire _T_919 = ~q_ff[29]; // @[lib.scala 428:40]
|
|
wire _T_921 = _T_917 ? _T_919 : q_ff[29]; // @[lib.scala 428:23]
|
|
wire _T_911 = |q_ff[27:0]; // @[lib.scala 428:35]
|
|
wire _T_913 = ~q_ff[28]; // @[lib.scala 428:40]
|
|
wire _T_915 = _T_911 ? _T_913 : q_ff[28]; // @[lib.scala 428:23]
|
|
wire _T_905 = |q_ff[26:0]; // @[lib.scala 428:35]
|
|
wire _T_907 = ~q_ff[27]; // @[lib.scala 428:40]
|
|
wire _T_909 = _T_905 ? _T_907 : q_ff[27]; // @[lib.scala 428:23]
|
|
wire _T_899 = |q_ff[25:0]; // @[lib.scala 428:35]
|
|
wire _T_901 = ~q_ff[26]; // @[lib.scala 428:40]
|
|
wire _T_903 = _T_899 ? _T_901 : q_ff[26]; // @[lib.scala 428:23]
|
|
wire _T_893 = |q_ff[24:0]; // @[lib.scala 428:35]
|
|
wire _T_895 = ~q_ff[25]; // @[lib.scala 428:40]
|
|
wire _T_897 = _T_893 ? _T_895 : q_ff[25]; // @[lib.scala 428:23]
|
|
wire _T_887 = |q_ff[23:0]; // @[lib.scala 428:35]
|
|
wire _T_889 = ~q_ff[24]; // @[lib.scala 428:40]
|
|
wire _T_891 = _T_887 ? _T_889 : q_ff[24]; // @[lib.scala 428:23]
|
|
wire _T_881 = |q_ff[22:0]; // @[lib.scala 428:35]
|
|
wire _T_883 = ~q_ff[23]; // @[lib.scala 428:40]
|
|
wire _T_885 = _T_881 ? _T_883 : q_ff[23]; // @[lib.scala 428:23]
|
|
wire _T_875 = |q_ff[21:0]; // @[lib.scala 428:35]
|
|
wire _T_877 = ~q_ff[22]; // @[lib.scala 428:40]
|
|
wire _T_879 = _T_875 ? _T_877 : q_ff[22]; // @[lib.scala 428:23]
|
|
wire _T_869 = |q_ff[20:0]; // @[lib.scala 428:35]
|
|
wire _T_871 = ~q_ff[21]; // @[lib.scala 428:40]
|
|
wire _T_873 = _T_869 ? _T_871 : q_ff[21]; // @[lib.scala 428:23]
|
|
wire _T_863 = |q_ff[19:0]; // @[lib.scala 428:35]
|
|
wire _T_865 = ~q_ff[20]; // @[lib.scala 428:40]
|
|
wire _T_867 = _T_863 ? _T_865 : q_ff[20]; // @[lib.scala 428:23]
|
|
wire _T_857 = |q_ff[18:0]; // @[lib.scala 428:35]
|
|
wire _T_859 = ~q_ff[19]; // @[lib.scala 428:40]
|
|
wire _T_861 = _T_857 ? _T_859 : q_ff[19]; // @[lib.scala 428:23]
|
|
wire _T_851 = |q_ff[17:0]; // @[lib.scala 428:35]
|
|
wire _T_853 = ~q_ff[18]; // @[lib.scala 428:40]
|
|
wire _T_855 = _T_851 ? _T_853 : q_ff[18]; // @[lib.scala 428:23]
|
|
wire _T_845 = |q_ff[16:0]; // @[lib.scala 428:35]
|
|
wire _T_847 = ~q_ff[17]; // @[lib.scala 428:40]
|
|
wire _T_849 = _T_845 ? _T_847 : q_ff[17]; // @[lib.scala 428:23]
|
|
wire _T_839 = |q_ff[15:0]; // @[lib.scala 428:35]
|
|
wire _T_841 = ~q_ff[16]; // @[lib.scala 428:40]
|
|
wire _T_843 = _T_839 ? _T_841 : q_ff[16]; // @[lib.scala 428:23]
|
|
wire [7:0] _T_954 = {_T_885,_T_879,_T_873,_T_867,_T_861,_T_855,_T_849,_T_843}; // @[lib.scala 430:14]
|
|
wire _T_833 = |q_ff[14:0]; // @[lib.scala 428:35]
|
|
wire _T_835 = ~q_ff[15]; // @[lib.scala 428:40]
|
|
wire _T_837 = _T_833 ? _T_835 : q_ff[15]; // @[lib.scala 428:23]
|
|
wire _T_827 = |q_ff[13:0]; // @[lib.scala 428:35]
|
|
wire _T_829 = ~q_ff[14]; // @[lib.scala 428:40]
|
|
wire _T_831 = _T_827 ? _T_829 : q_ff[14]; // @[lib.scala 428:23]
|
|
wire _T_821 = |q_ff[12:0]; // @[lib.scala 428:35]
|
|
wire _T_823 = ~q_ff[13]; // @[lib.scala 428:40]
|
|
wire _T_825 = _T_821 ? _T_823 : q_ff[13]; // @[lib.scala 428:23]
|
|
wire _T_815 = |q_ff[11:0]; // @[lib.scala 428:35]
|
|
wire _T_817 = ~q_ff[12]; // @[lib.scala 428:40]
|
|
wire _T_819 = _T_815 ? _T_817 : q_ff[12]; // @[lib.scala 428:23]
|
|
wire _T_809 = |q_ff[10:0]; // @[lib.scala 428:35]
|
|
wire _T_811 = ~q_ff[11]; // @[lib.scala 428:40]
|
|
wire _T_813 = _T_809 ? _T_811 : q_ff[11]; // @[lib.scala 428:23]
|
|
wire _T_803 = |q_ff[9:0]; // @[lib.scala 428:35]
|
|
wire _T_805 = ~q_ff[10]; // @[lib.scala 428:40]
|
|
wire _T_807 = _T_803 ? _T_805 : q_ff[10]; // @[lib.scala 428:23]
|
|
wire _T_797 = |q_ff[8:0]; // @[lib.scala 428:35]
|
|
wire _T_799 = ~q_ff[9]; // @[lib.scala 428:40]
|
|
wire _T_801 = _T_797 ? _T_799 : q_ff[9]; // @[lib.scala 428:23]
|
|
wire _T_791 = |q_ff[7:0]; // @[lib.scala 428:35]
|
|
wire _T_793 = ~q_ff[8]; // @[lib.scala 428:40]
|
|
wire _T_795 = _T_791 ? _T_793 : q_ff[8]; // @[lib.scala 428:23]
|
|
wire _T_785 = |q_ff[6:0]; // @[lib.scala 428:35]
|
|
wire _T_787 = ~q_ff[7]; // @[lib.scala 428:40]
|
|
wire _T_789 = _T_785 ? _T_787 : q_ff[7]; // @[lib.scala 428:23]
|
|
wire _T_779 = |q_ff[5:0]; // @[lib.scala 428:35]
|
|
wire _T_781 = ~q_ff[6]; // @[lib.scala 428:40]
|
|
wire _T_783 = _T_779 ? _T_781 : q_ff[6]; // @[lib.scala 428:23]
|
|
wire _T_773 = |q_ff[4:0]; // @[lib.scala 428:35]
|
|
wire _T_775 = ~q_ff[5]; // @[lib.scala 428:40]
|
|
wire _T_777 = _T_773 ? _T_775 : q_ff[5]; // @[lib.scala 428:23]
|
|
wire _T_767 = |q_ff[3:0]; // @[lib.scala 428:35]
|
|
wire _T_769 = ~q_ff[4]; // @[lib.scala 428:40]
|
|
wire _T_771 = _T_767 ? _T_769 : q_ff[4]; // @[lib.scala 428:23]
|
|
wire _T_761 = |q_ff[2:0]; // @[lib.scala 428:35]
|
|
wire _T_763 = ~q_ff[3]; // @[lib.scala 428:40]
|
|
wire _T_765 = _T_761 ? _T_763 : q_ff[3]; // @[lib.scala 428:23]
|
|
wire _T_755 = |q_ff[1:0]; // @[lib.scala 428:35]
|
|
wire _T_757 = ~q_ff[2]; // @[lib.scala 428:40]
|
|
wire _T_759 = _T_755 ? _T_757 : q_ff[2]; // @[lib.scala 428:23]
|
|
wire _T_749 = |q_ff[0]; // @[lib.scala 428:35]
|
|
wire _T_751 = ~q_ff[1]; // @[lib.scala 428:40]
|
|
wire _T_753 = _T_749 ? _T_751 : q_ff[1]; // @[lib.scala 428:23]
|
|
wire [6:0] _T_939 = {_T_789,_T_783,_T_777,_T_771,_T_765,_T_759,_T_753}; // @[lib.scala 430:14]
|
|
wire [14:0] _T_947 = {_T_837,_T_831,_T_825,_T_819,_T_813,_T_807,_T_801,_T_795,_T_939}; // @[lib.scala 430:14]
|
|
wire [30:0] _T_963 = {_T_933,_T_927,_T_921,_T_915,_T_909,_T_903,_T_897,_T_891,_T_954,_T_947}; // @[lib.scala 430:14]
|
|
wire [31:0] _T_965 = {_T_963,q_ff[0]}; // @[Cat.scala 29:58]
|
|
wire [31:0] dividend_eff = _T_744 ? _T_965 : q_ff[31:0]; // @[exu_div_ctl.scala 243:22]
|
|
wire [32:0] _T_1001 = run_state ? 33'h1ffffffff : 33'h0; // @[Bitwise.scala 72:12]
|
|
wire _T_1013 = _T_689 & rem_ff; // @[exu_div_ctl.scala 257:41]
|
|
reg [32:0] a_ff; // @[Reg.scala 27:20]
|
|
wire rem_correct = _T_1013 & a_ff[32]; // @[exu_div_ctl.scala 257:50]
|
|
wire [32:0] _T_986 = rem_correct ? a_ff : 33'h0; // @[Mux.scala 27:72]
|
|
wire _T_975 = ~rem_correct; // @[exu_div_ctl.scala 248:6]
|
|
wire _T_976 = ~shortq_enable_ff; // @[exu_div_ctl.scala 248:21]
|
|
wire _T_977 = _T_975 & _T_976; // @[exu_div_ctl.scala 248:19]
|
|
wire [32:0] _T_981 = {a_ff[31:0],q_ff[32]}; // @[Cat.scala 29:58]
|
|
wire [32:0] _T_987 = _T_977 ? _T_981 : 33'h0; // @[Mux.scala 27:72]
|
|
wire [32:0] _T_989 = _T_986 | _T_987; // @[Mux.scala 27:72]
|
|
wire _T_983 = _T_975 & shortq_enable_ff; // @[exu_div_ctl.scala 249:19]
|
|
wire [64:0] _T_971 = {33'h0,dividend_eff}; // @[Cat.scala 29:58]
|
|
wire [95:0] _GEN_16 = {{31'd0}, _T_971}; // @[exu_div_ctl.scala 245:47]
|
|
wire [95:0] _T_973 = _GEN_16 << shortq_shift_ff[4:0]; // @[exu_div_ctl.scala 245:47]
|
|
wire [64:0] a_eff_shift = _T_973[64:0]; // @[exu_div_ctl.scala 245:15]
|
|
wire [32:0] _T_988 = _T_983 ? a_eff_shift[64:32] : 33'h0; // @[Mux.scala 27:72]
|
|
wire [32:0] a_eff = _T_989 | _T_988; // @[Mux.scala 27:72]
|
|
wire [32:0] a_shift = _T_1001 & a_eff; // @[exu_div_ctl.scala 252:33]
|
|
wire _T_1010 = a_ff[32] | rem_correct; // @[exu_div_ctl.scala 256:21]
|
|
reg divisor_neg_ff; // @[Reg.scala 27:20]
|
|
wire m_already_comp = divisor_neg_ff & sign_ff; // @[exu_div_ctl.scala 254:48]
|
|
wire add = _T_1010 ^ m_already_comp; // @[exu_div_ctl.scala 256:36]
|
|
wire [32:0] _T_969 = ~m_ff; // @[exu_div_ctl.scala 244:35]
|
|
wire [32:0] m_eff = add ? m_ff : _T_969; // @[exu_div_ctl.scala 244:15]
|
|
wire [32:0] _T_1003 = a_shift + m_eff; // @[exu_div_ctl.scala 253:41]
|
|
wire _T_1004 = ~add; // @[exu_div_ctl.scala 253:65]
|
|
wire [32:0] _T_1005 = {32'h0,_T_1004}; // @[Cat.scala 29:58]
|
|
wire [32:0] _T_1007 = _T_1003 + _T_1005; // @[exu_div_ctl.scala 253:49]
|
|
wire [32:0] a_in = _T_1001 & _T_1007; // @[exu_div_ctl.scala 253:30]
|
|
wire _T_724 = ~a_in[32]; // @[exu_div_ctl.scala 239:85]
|
|
wire [32:0] _T_725 = {dividend_eff,_T_724}; // @[Cat.scala 29:58]
|
|
wire [63:0] _GEN_17 = {{31'd0}, _T_725}; // @[exu_div_ctl.scala 239:96]
|
|
wire [63:0] _T_727 = _GEN_17 << shortq_shift_ff[4:0]; // @[exu_div_ctl.scala 239:96]
|
|
wire _T_729 = ~_T_719; // @[exu_div_ctl.scala 240:18]
|
|
wire _T_730 = run_state & _T_729; // @[exu_div_ctl.scala 240:16]
|
|
wire [32:0] _T_735 = {q_ff[31:0],_T_724}; // @[Cat.scala 29:58]
|
|
wire [32:0] _T_736 = _T_716 ? _T_718 : 33'h0; // @[Mux.scala 27:72]
|
|
wire [63:0] _T_737 = _T_720 ? _T_727 : 64'h0; // @[Mux.scala 27:72]
|
|
wire [32:0] _T_738 = _T_730 ? _T_735 : 33'h0; // @[Mux.scala 27:72]
|
|
wire [63:0] _GEN_18 = {{31'd0}, _T_736}; // @[Mux.scala 27:72]
|
|
wire [63:0] _T_739 = _GEN_18 | _T_737; // @[Mux.scala 27:72]
|
|
wire [63:0] _GEN_19 = {{31'd0}, _T_738}; // @[Mux.scala 27:72]
|
|
wire [63:0] _T_740 = _T_739 | _GEN_19; // @[Mux.scala 27:72]
|
|
wire _T_743 = run_state & _T_701; // @[exu_div_ctl.scala 242:48]
|
|
wire qff_enable = io_valid_in | _T_743; // @[exu_div_ctl.scala 242:35]
|
|
wire _T_994 = count != 6'h21; // @[exu_div_ctl.scala 251:73]
|
|
wire _T_995 = _T_743 & _T_994; // @[exu_div_ctl.scala 251:64]
|
|
wire _T_996 = io_valid_in | _T_995; // @[exu_div_ctl.scala 251:34]
|
|
wire aff_enable = _T_996 | rem_correct; // @[exu_div_ctl.scala 251:89]
|
|
wire _T_1016 = dividend_neg_ff ^ divisor_neg_ff; // @[exu_div_ctl.scala 258:50]
|
|
wire _T_1017 = sign_ff & _T_1016; // @[exu_div_ctl.scala 258:31]
|
|
wire [31:0] q_ff_eff = _T_1017 ? _T_965 : q_ff[31:0]; // @[exu_div_ctl.scala 258:21]
|
|
wire _T_1245 = |a_ff[0]; // @[lib.scala 428:35]
|
|
wire _T_1247 = ~a_ff[1]; // @[lib.scala 428:40]
|
|
wire _T_1249 = _T_1245 ? _T_1247 : a_ff[1]; // @[lib.scala 428:23]
|
|
wire _T_1251 = |a_ff[1:0]; // @[lib.scala 428:35]
|
|
wire _T_1253 = ~a_ff[2]; // @[lib.scala 428:40]
|
|
wire _T_1255 = _T_1251 ? _T_1253 : a_ff[2]; // @[lib.scala 428:23]
|
|
wire _T_1257 = |a_ff[2:0]; // @[lib.scala 428:35]
|
|
wire _T_1259 = ~a_ff[3]; // @[lib.scala 428:40]
|
|
wire _T_1261 = _T_1257 ? _T_1259 : a_ff[3]; // @[lib.scala 428:23]
|
|
wire _T_1263 = |a_ff[3:0]; // @[lib.scala 428:35]
|
|
wire _T_1265 = ~a_ff[4]; // @[lib.scala 428:40]
|
|
wire _T_1267 = _T_1263 ? _T_1265 : a_ff[4]; // @[lib.scala 428:23]
|
|
wire _T_1269 = |a_ff[4:0]; // @[lib.scala 428:35]
|
|
wire _T_1271 = ~a_ff[5]; // @[lib.scala 428:40]
|
|
wire _T_1273 = _T_1269 ? _T_1271 : a_ff[5]; // @[lib.scala 428:23]
|
|
wire _T_1275 = |a_ff[5:0]; // @[lib.scala 428:35]
|
|
wire _T_1277 = ~a_ff[6]; // @[lib.scala 428:40]
|
|
wire _T_1279 = _T_1275 ? _T_1277 : a_ff[6]; // @[lib.scala 428:23]
|
|
wire _T_1281 = |a_ff[6:0]; // @[lib.scala 428:35]
|
|
wire _T_1283 = ~a_ff[7]; // @[lib.scala 428:40]
|
|
wire _T_1285 = _T_1281 ? _T_1283 : a_ff[7]; // @[lib.scala 428:23]
|
|
wire _T_1287 = |a_ff[7:0]; // @[lib.scala 428:35]
|
|
wire _T_1289 = ~a_ff[8]; // @[lib.scala 428:40]
|
|
wire _T_1291 = _T_1287 ? _T_1289 : a_ff[8]; // @[lib.scala 428:23]
|
|
wire _T_1293 = |a_ff[8:0]; // @[lib.scala 428:35]
|
|
wire _T_1295 = ~a_ff[9]; // @[lib.scala 428:40]
|
|
wire _T_1297 = _T_1293 ? _T_1295 : a_ff[9]; // @[lib.scala 428:23]
|
|
wire _T_1299 = |a_ff[9:0]; // @[lib.scala 428:35]
|
|
wire _T_1301 = ~a_ff[10]; // @[lib.scala 428:40]
|
|
wire _T_1303 = _T_1299 ? _T_1301 : a_ff[10]; // @[lib.scala 428:23]
|
|
wire _T_1305 = |a_ff[10:0]; // @[lib.scala 428:35]
|
|
wire _T_1307 = ~a_ff[11]; // @[lib.scala 428:40]
|
|
wire _T_1309 = _T_1305 ? _T_1307 : a_ff[11]; // @[lib.scala 428:23]
|
|
wire _T_1311 = |a_ff[11:0]; // @[lib.scala 428:35]
|
|
wire _T_1313 = ~a_ff[12]; // @[lib.scala 428:40]
|
|
wire _T_1315 = _T_1311 ? _T_1313 : a_ff[12]; // @[lib.scala 428:23]
|
|
wire _T_1317 = |a_ff[12:0]; // @[lib.scala 428:35]
|
|
wire _T_1319 = ~a_ff[13]; // @[lib.scala 428:40]
|
|
wire _T_1321 = _T_1317 ? _T_1319 : a_ff[13]; // @[lib.scala 428:23]
|
|
wire _T_1323 = |a_ff[13:0]; // @[lib.scala 428:35]
|
|
wire _T_1325 = ~a_ff[14]; // @[lib.scala 428:40]
|
|
wire _T_1327 = _T_1323 ? _T_1325 : a_ff[14]; // @[lib.scala 428:23]
|
|
wire _T_1329 = |a_ff[14:0]; // @[lib.scala 428:35]
|
|
wire _T_1331 = ~a_ff[15]; // @[lib.scala 428:40]
|
|
wire _T_1333 = _T_1329 ? _T_1331 : a_ff[15]; // @[lib.scala 428:23]
|
|
wire _T_1335 = |a_ff[15:0]; // @[lib.scala 428:35]
|
|
wire _T_1337 = ~a_ff[16]; // @[lib.scala 428:40]
|
|
wire _T_1339 = _T_1335 ? _T_1337 : a_ff[16]; // @[lib.scala 428:23]
|
|
wire _T_1341 = |a_ff[16:0]; // @[lib.scala 428:35]
|
|
wire _T_1343 = ~a_ff[17]; // @[lib.scala 428:40]
|
|
wire _T_1345 = _T_1341 ? _T_1343 : a_ff[17]; // @[lib.scala 428:23]
|
|
wire _T_1347 = |a_ff[17:0]; // @[lib.scala 428:35]
|
|
wire _T_1349 = ~a_ff[18]; // @[lib.scala 428:40]
|
|
wire _T_1351 = _T_1347 ? _T_1349 : a_ff[18]; // @[lib.scala 428:23]
|
|
wire _T_1353 = |a_ff[18:0]; // @[lib.scala 428:35]
|
|
wire _T_1355 = ~a_ff[19]; // @[lib.scala 428:40]
|
|
wire _T_1357 = _T_1353 ? _T_1355 : a_ff[19]; // @[lib.scala 428:23]
|
|
wire _T_1359 = |a_ff[19:0]; // @[lib.scala 428:35]
|
|
wire _T_1361 = ~a_ff[20]; // @[lib.scala 428:40]
|
|
wire _T_1363 = _T_1359 ? _T_1361 : a_ff[20]; // @[lib.scala 428:23]
|
|
wire _T_1365 = |a_ff[20:0]; // @[lib.scala 428:35]
|
|
wire _T_1367 = ~a_ff[21]; // @[lib.scala 428:40]
|
|
wire _T_1369 = _T_1365 ? _T_1367 : a_ff[21]; // @[lib.scala 428:23]
|
|
wire _T_1371 = |a_ff[21:0]; // @[lib.scala 428:35]
|
|
wire _T_1373 = ~a_ff[22]; // @[lib.scala 428:40]
|
|
wire _T_1375 = _T_1371 ? _T_1373 : a_ff[22]; // @[lib.scala 428:23]
|
|
wire _T_1377 = |a_ff[22:0]; // @[lib.scala 428:35]
|
|
wire _T_1379 = ~a_ff[23]; // @[lib.scala 428:40]
|
|
wire _T_1381 = _T_1377 ? _T_1379 : a_ff[23]; // @[lib.scala 428:23]
|
|
wire _T_1383 = |a_ff[23:0]; // @[lib.scala 428:35]
|
|
wire _T_1385 = ~a_ff[24]; // @[lib.scala 428:40]
|
|
wire _T_1387 = _T_1383 ? _T_1385 : a_ff[24]; // @[lib.scala 428:23]
|
|
wire _T_1389 = |a_ff[24:0]; // @[lib.scala 428:35]
|
|
wire _T_1391 = ~a_ff[25]; // @[lib.scala 428:40]
|
|
wire _T_1393 = _T_1389 ? _T_1391 : a_ff[25]; // @[lib.scala 428:23]
|
|
wire _T_1395 = |a_ff[25:0]; // @[lib.scala 428:35]
|
|
wire _T_1397 = ~a_ff[26]; // @[lib.scala 428:40]
|
|
wire _T_1399 = _T_1395 ? _T_1397 : a_ff[26]; // @[lib.scala 428:23]
|
|
wire _T_1401 = |a_ff[26:0]; // @[lib.scala 428:35]
|
|
wire _T_1403 = ~a_ff[27]; // @[lib.scala 428:40]
|
|
wire _T_1405 = _T_1401 ? _T_1403 : a_ff[27]; // @[lib.scala 428:23]
|
|
wire _T_1407 = |a_ff[27:0]; // @[lib.scala 428:35]
|
|
wire _T_1409 = ~a_ff[28]; // @[lib.scala 428:40]
|
|
wire _T_1411 = _T_1407 ? _T_1409 : a_ff[28]; // @[lib.scala 428:23]
|
|
wire _T_1413 = |a_ff[28:0]; // @[lib.scala 428:35]
|
|
wire _T_1415 = ~a_ff[29]; // @[lib.scala 428:40]
|
|
wire _T_1417 = _T_1413 ? _T_1415 : a_ff[29]; // @[lib.scala 428:23]
|
|
wire _T_1419 = |a_ff[29:0]; // @[lib.scala 428:35]
|
|
wire _T_1421 = ~a_ff[30]; // @[lib.scala 428:40]
|
|
wire _T_1423 = _T_1419 ? _T_1421 : a_ff[30]; // @[lib.scala 428:23]
|
|
wire _T_1425 = |a_ff[30:0]; // @[lib.scala 428:35]
|
|
wire _T_1427 = ~a_ff[31]; // @[lib.scala 428:40]
|
|
wire _T_1429 = _T_1425 ? _T_1427 : a_ff[31]; // @[lib.scala 428:23]
|
|
wire [6:0] _T_1435 = {_T_1285,_T_1279,_T_1273,_T_1267,_T_1261,_T_1255,_T_1249}; // @[lib.scala 430:14]
|
|
wire [14:0] _T_1443 = {_T_1333,_T_1327,_T_1321,_T_1315,_T_1309,_T_1303,_T_1297,_T_1291,_T_1435}; // @[lib.scala 430:14]
|
|
wire [7:0] _T_1450 = {_T_1381,_T_1375,_T_1369,_T_1363,_T_1357,_T_1351,_T_1345,_T_1339}; // @[lib.scala 430:14]
|
|
wire [30:0] _T_1459 = {_T_1429,_T_1423,_T_1417,_T_1411,_T_1405,_T_1399,_T_1393,_T_1387,_T_1450,_T_1443}; // @[lib.scala 430:14]
|
|
wire [31:0] _T_1461 = {_T_1459,a_ff[0]}; // @[Cat.scala 29:58]
|
|
wire [31:0] a_ff_eff = _T_744 ? _T_1461 : a_ff[31:0]; // @[exu_div_ctl.scala 259:21]
|
|
reg smallnum_case_ff; // @[Reg.scala 27:20]
|
|
reg [3:0] smallnum_ff; // @[Reg.scala 27:20]
|
|
wire [31:0] _T_1464 = {28'h0,smallnum_ff}; // @[Cat.scala 29:58]
|
|
wire _T_1466 = ~smallnum_case_ff; // @[exu_div_ctl.scala 264:6]
|
|
wire _T_1468 = _T_1466 & _T_9; // @[exu_div_ctl.scala 264:24]
|
|
wire [31:0] _T_1470 = smallnum_case_ff ? _T_1464 : 32'h0; // @[Mux.scala 27:72]
|
|
wire [31:0] _T_1471 = rem_ff ? a_ff_eff : 32'h0; // @[Mux.scala 27:72]
|
|
wire [31:0] _T_1472 = _T_1468 ? q_ff_eff : 32'h0; // @[Mux.scala 27:72]
|
|
wire [31:0] _T_1473 = _T_1470 | _T_1471; // @[Mux.scala 27:72]
|
|
wire _T_1477 = io_valid_in & _T; // @[exu_div_ctl.scala 266:38]
|
|
wire _T_1481 = finish & _T; // @[exu_div_ctl.scala 267:32]
|
|
wire _T_1489 = io_valid_in & io_dividend_in[31]; // @[exu_div_ctl.scala 270:44]
|
|
wire _T_1490 = ~io_valid_in; // @[exu_div_ctl.scala 270:69]
|
|
wire _T_1491 = _T_1490 & dividend_neg_ff; // @[exu_div_ctl.scala 270:82]
|
|
wire _T_1492 = _T_1489 | _T_1491; // @[exu_div_ctl.scala 270:66]
|
|
wire _T_1496 = io_valid_in & io_divisor_in[31]; // @[exu_div_ctl.scala 271:43]
|
|
wire _T_1498 = _T_1490 & divisor_neg_ff; // @[exu_div_ctl.scala 271:80]
|
|
wire _T_1499 = _T_1496 | _T_1498; // @[exu_div_ctl.scala 271:64]
|
|
wire _T_1502 = io_valid_in & sign_eff; // @[exu_div_ctl.scala 272:36]
|
|
wire _T_1504 = _T_1490 & sign_ff; // @[exu_div_ctl.scala 272:64]
|
|
wire _T_1505 = _T_1502 | _T_1504; // @[exu_div_ctl.scala 272:48]
|
|
wire _T_1508 = io_valid_in & io_rem_in; // @[exu_div_ctl.scala 273:37]
|
|
wire _T_1510 = _T_1490 & rem_ff; // @[exu_div_ctl.scala 273:66]
|
|
wire _T_1511 = _T_1508 | _T_1510; // @[exu_div_ctl.scala 273:50]
|
|
wire [32:0] q_in = _T_740[32:0]; // @[exu_div_ctl.scala 237:8]
|
|
wire _T_1527 = io_signed_in & io_divisor_in[31]; // @[exu_div_ctl.scala 281:35]
|
|
wire [32:0] _T_1529 = {_T_1527,io_divisor_in}; // @[Cat.scala 29:58]
|
|
rvclkhdr rvclkhdr ( // @[lib.scala 390:23]
|
|
.io_clk(rvclkhdr_io_clk),
|
|
.io_en(rvclkhdr_io_en)
|
|
);
|
|
rvclkhdr rvclkhdr_1 ( // @[lib.scala 390:23]
|
|
.io_clk(rvclkhdr_1_io_clk),
|
|
.io_en(rvclkhdr_1_io_en)
|
|
);
|
|
rvclkhdr rvclkhdr_2 ( // @[lib.scala 390:23]
|
|
.io_clk(rvclkhdr_2_io_clk),
|
|
.io_en(rvclkhdr_2_io_en)
|
|
);
|
|
rvclkhdr rvclkhdr_3 ( // @[lib.scala 390:23]
|
|
.io_clk(rvclkhdr_3_io_clk),
|
|
.io_en(rvclkhdr_3_io_en)
|
|
);
|
|
rvclkhdr rvclkhdr_4 ( // @[lib.scala 390:23]
|
|
.io_clk(rvclkhdr_4_io_clk),
|
|
.io_en(rvclkhdr_4_io_en)
|
|
);
|
|
rvclkhdr rvclkhdr_5 ( // @[lib.scala 390:23]
|
|
.io_clk(rvclkhdr_5_io_clk),
|
|
.io_en(rvclkhdr_5_io_en)
|
|
);
|
|
rvclkhdr rvclkhdr_6 ( // @[lib.scala 390:23]
|
|
.io_clk(rvclkhdr_6_io_clk),
|
|
.io_en(rvclkhdr_6_io_en)
|
|
);
|
|
rvclkhdr rvclkhdr_7 ( // @[lib.scala 390:23]
|
|
.io_clk(rvclkhdr_7_io_clk),
|
|
.io_en(rvclkhdr_7_io_en)
|
|
);
|
|
rvclkhdr rvclkhdr_8 ( // @[lib.scala 390:23]
|
|
.io_clk(rvclkhdr_8_io_clk),
|
|
.io_en(rvclkhdr_8_io_en)
|
|
);
|
|
rvclkhdr rvclkhdr_9 ( // @[lib.scala 390:23]
|
|
.io_clk(rvclkhdr_9_io_clk),
|
|
.io_en(rvclkhdr_9_io_en)
|
|
);
|
|
rvclkhdr rvclkhdr_10 ( // @[lib.scala 390:23]
|
|
.io_clk(rvclkhdr_10_io_clk),
|
|
.io_en(rvclkhdr_10_io_en)
|
|
);
|
|
rvclkhdr rvclkhdr_11 ( // @[lib.scala 390:23]
|
|
.io_clk(rvclkhdr_11_io_clk),
|
|
.io_en(rvclkhdr_11_io_en)
|
|
);
|
|
rvclkhdr rvclkhdr_12 ( // @[lib.scala 390:23]
|
|
.io_clk(rvclkhdr_12_io_clk),
|
|
.io_en(rvclkhdr_12_io_en)
|
|
);
|
|
rvclkhdr rvclkhdr_13 ( // @[lib.scala 390:23]
|
|
.io_clk(rvclkhdr_13_io_clk),
|
|
.io_en(rvclkhdr_13_io_en)
|
|
);
|
|
rvclkhdr rvclkhdr_14 ( // @[lib.scala 390:23]
|
|
.io_clk(rvclkhdr_14_io_clk),
|
|
.io_en(rvclkhdr_14_io_en)
|
|
);
|
|
assign io_data_out = _T_1473 | _T_1472; // @[exu_div_ctl.scala 261:15]
|
|
assign io_valid_out = finish_ff & _T; // @[exu_div_ctl.scala 234:17]
|
|
assign rvclkhdr_io_clk = clock; // @[lib.scala 392:18]
|
|
assign rvclkhdr_io_en = _T_692 | finish_ff; // @[lib.scala 393:17]
|
|
assign rvclkhdr_1_io_clk = clock; // @[lib.scala 392:18]
|
|
assign rvclkhdr_1_io_en = _T_692 | finish_ff; // @[lib.scala 393:17]
|
|
assign rvclkhdr_2_io_clk = clock; // @[lib.scala 392:18]
|
|
assign rvclkhdr_2_io_en = _T_692 | finish_ff; // @[lib.scala 393:17]
|
|
assign rvclkhdr_3_io_clk = clock; // @[lib.scala 392:18]
|
|
assign rvclkhdr_3_io_en = _T_692 | finish_ff; // @[lib.scala 393:17]
|
|
assign rvclkhdr_4_io_clk = clock; // @[lib.scala 392:18]
|
|
assign rvclkhdr_4_io_en = _T_692 | finish_ff; // @[lib.scala 393:17]
|
|
assign rvclkhdr_5_io_clk = clock; // @[lib.scala 392:18]
|
|
assign rvclkhdr_5_io_en = _T_692 | finish_ff; // @[lib.scala 393:17]
|
|
assign rvclkhdr_6_io_clk = clock; // @[lib.scala 392:18]
|
|
assign rvclkhdr_6_io_en = _T_692 | finish_ff; // @[lib.scala 393:17]
|
|
assign rvclkhdr_7_io_clk = clock; // @[lib.scala 392:18]
|
|
assign rvclkhdr_7_io_en = _T_692 | finish_ff; // @[lib.scala 393:17]
|
|
assign rvclkhdr_8_io_clk = clock; // @[lib.scala 392:18]
|
|
assign rvclkhdr_8_io_en = _T_692 | finish_ff; // @[lib.scala 393:17]
|
|
assign rvclkhdr_9_io_clk = clock; // @[lib.scala 392:18]
|
|
assign rvclkhdr_9_io_en = _T_692 | finish_ff; // @[lib.scala 393:17]
|
|
assign rvclkhdr_10_io_clk = clock; // @[lib.scala 392:18]
|
|
assign rvclkhdr_10_io_en = _T_692 | finish_ff; // @[lib.scala 393:17]
|
|
assign rvclkhdr_11_io_clk = clock; // @[lib.scala 392:18]
|
|
assign rvclkhdr_11_io_en = _T_692 | finish_ff; // @[lib.scala 393:17]
|
|
assign rvclkhdr_12_io_clk = clock; // @[lib.scala 392:18]
|
|
assign rvclkhdr_12_io_en = io_valid_in | _T_743; // @[lib.scala 393:17]
|
|
assign rvclkhdr_13_io_clk = clock; // @[lib.scala 392:18]
|
|
assign rvclkhdr_13_io_en = _T_996 | rem_correct; // @[lib.scala 393:17]
|
|
assign rvclkhdr_14_io_clk = clock; // @[lib.scala 392:18]
|
|
assign rvclkhdr_14_io_en = io_valid_in; // @[lib.scala 393:17]
|
|
`ifdef RANDOMIZE_GARBAGE_ASSIGN
|
|
`define RANDOMIZE
|
|
`endif
|
|
`ifdef RANDOMIZE_INVALID_ASSIGN
|
|
`define RANDOMIZE
|
|
`endif
|
|
`ifdef RANDOMIZE_REG_INIT
|
|
`define RANDOMIZE
|
|
`endif
|
|
`ifdef RANDOMIZE_MEM_INIT
|
|
`define RANDOMIZE
|
|
`endif
|
|
`ifndef RANDOM
|
|
`define RANDOM $random
|
|
`endif
|
|
`ifdef RANDOMIZE_MEM_INIT
|
|
integer initvar;
|
|
`endif
|
|
`ifndef SYNTHESIS
|
|
`ifdef FIRRTL_BEFORE_INITIAL
|
|
`FIRRTL_BEFORE_INITIAL
|
|
`endif
|
|
initial begin
|
|
`ifdef RANDOMIZE
|
|
`ifdef INIT_RANDOM
|
|
`INIT_RANDOM
|
|
`endif
|
|
`ifndef VERILATOR
|
|
`ifdef RANDOMIZE_DELAY
|
|
#`RANDOMIZE_DELAY begin end
|
|
`else
|
|
#0.002 begin end
|
|
`endif
|
|
`endif
|
|
`ifdef RANDOMIZE_REG_INIT
|
|
_RAND_0 = {1{`RANDOM}};
|
|
valid_ff_x = _RAND_0[0:0];
|
|
_RAND_1 = {2{`RANDOM}};
|
|
q_ff = _RAND_1[32:0];
|
|
_RAND_2 = {2{`RANDOM}};
|
|
m_ff = _RAND_2[32:0];
|
|
_RAND_3 = {1{`RANDOM}};
|
|
rem_ff = _RAND_3[0:0];
|
|
_RAND_4 = {1{`RANDOM}};
|
|
sign_ff = _RAND_4[0:0];
|
|
_RAND_5 = {1{`RANDOM}};
|
|
_T_1521 = _RAND_5[5:0];
|
|
_RAND_6 = {1{`RANDOM}};
|
|
count = _RAND_6[5:0];
|
|
_RAND_7 = {1{`RANDOM}};
|
|
run_state = _RAND_7[0:0];
|
|
_RAND_8 = {1{`RANDOM}};
|
|
finish_ff = _RAND_8[0:0];
|
|
_RAND_9 = {1{`RANDOM}};
|
|
shortq_enable_ff = _RAND_9[0:0];
|
|
_RAND_10 = {1{`RANDOM}};
|
|
dividend_neg_ff = _RAND_10[0:0];
|
|
_RAND_11 = {2{`RANDOM}};
|
|
a_ff = _RAND_11[32:0];
|
|
_RAND_12 = {1{`RANDOM}};
|
|
divisor_neg_ff = _RAND_12[0:0];
|
|
_RAND_13 = {1{`RANDOM}};
|
|
smallnum_case_ff = _RAND_13[0:0];
|
|
_RAND_14 = {1{`RANDOM}};
|
|
smallnum_ff = _RAND_14[3:0];
|
|
`endif // RANDOMIZE_REG_INIT
|
|
if (reset) begin
|
|
valid_ff_x = 1'h0;
|
|
end
|
|
if (reset) begin
|
|
q_ff = 33'h0;
|
|
end
|
|
if (reset) begin
|
|
m_ff = 33'h0;
|
|
end
|
|
if (reset) begin
|
|
rem_ff = 1'h0;
|
|
end
|
|
if (reset) begin
|
|
sign_ff = 1'h0;
|
|
end
|
|
if (reset) begin
|
|
_T_1521 = 6'h0;
|
|
end
|
|
if (reset) begin
|
|
count = 6'h0;
|
|
end
|
|
if (reset) begin
|
|
run_state = 1'h0;
|
|
end
|
|
if (reset) begin
|
|
finish_ff = 1'h0;
|
|
end
|
|
if (reset) begin
|
|
shortq_enable_ff = 1'h0;
|
|
end
|
|
if (reset) begin
|
|
dividend_neg_ff = 1'h0;
|
|
end
|
|
if (reset) begin
|
|
a_ff = 33'h0;
|
|
end
|
|
if (reset) begin
|
|
divisor_neg_ff = 1'h0;
|
|
end
|
|
if (reset) begin
|
|
smallnum_case_ff = 1'h0;
|
|
end
|
|
if (reset) begin
|
|
smallnum_ff = 4'h0;
|
|
end
|
|
`endif // RANDOMIZE
|
|
end // initial
|
|
`ifdef FIRRTL_AFTER_INITIAL
|
|
`FIRRTL_AFTER_INITIAL
|
|
`endif
|
|
`endif // SYNTHESIS
|
|
always @(posedge clock or posedge reset) begin
|
|
if (reset) begin
|
|
valid_ff_x <= 1'h0;
|
|
end else if (div_clken) begin
|
|
valid_ff_x <= _T_1477;
|
|
end
|
|
end
|
|
always @(posedge clock or posedge reset) begin
|
|
if (reset) begin
|
|
q_ff <= 33'h0;
|
|
end else if (qff_enable) begin
|
|
q_ff <= q_in;
|
|
end
|
|
end
|
|
always @(posedge clock or posedge reset) begin
|
|
if (reset) begin
|
|
m_ff <= 33'h0;
|
|
end else if (io_valid_in) begin
|
|
m_ff <= _T_1529;
|
|
end
|
|
end
|
|
always @(posedge clock or posedge reset) begin
|
|
if (reset) begin
|
|
rem_ff <= 1'h0;
|
|
end else if (div_clken) begin
|
|
rem_ff <= _T_1511;
|
|
end
|
|
end
|
|
always @(posedge clock or posedge reset) begin
|
|
if (reset) begin
|
|
sign_ff <= 1'h0;
|
|
end else if (div_clken) begin
|
|
sign_ff <= _T_1505;
|
|
end
|
|
end
|
|
always @(posedge clock or posedge reset) begin
|
|
if (reset) begin
|
|
_T_1521 <= 6'h0;
|
|
end else if (div_clken) begin
|
|
_T_1521 <= shortq_shift;
|
|
end
|
|
end
|
|
always @(posedge clock or posedge reset) begin
|
|
if (reset) begin
|
|
count <= 6'h0;
|
|
end else if (div_clken) begin
|
|
count <= count_in;
|
|
end
|
|
end
|
|
always @(posedge clock or posedge reset) begin
|
|
if (reset) begin
|
|
run_state <= 1'h0;
|
|
end else if (div_clken) begin
|
|
run_state <= run_in;
|
|
end
|
|
end
|
|
always @(posedge clock or posedge reset) begin
|
|
if (reset) begin
|
|
finish_ff <= 1'h0;
|
|
end else if (div_clken) begin
|
|
finish_ff <= _T_1481;
|
|
end
|
|
end
|
|
always @(posedge clock or posedge reset) begin
|
|
if (reset) begin
|
|
shortq_enable_ff <= 1'h0;
|
|
end else if (div_clken) begin
|
|
shortq_enable_ff <= shortq_enable;
|
|
end
|
|
end
|
|
always @(posedge clock or posedge reset) begin
|
|
if (reset) begin
|
|
dividend_neg_ff <= 1'h0;
|
|
end else if (div_clken) begin
|
|
dividend_neg_ff <= _T_1492;
|
|
end
|
|
end
|
|
always @(posedge clock or posedge reset) begin
|
|
if (reset) begin
|
|
a_ff <= 33'h0;
|
|
end else if (aff_enable) begin
|
|
a_ff <= a_in;
|
|
end
|
|
end
|
|
always @(posedge clock or posedge reset) begin
|
|
if (reset) begin
|
|
divisor_neg_ff <= 1'h0;
|
|
end else if (div_clken) begin
|
|
divisor_neg_ff <= _T_1499;
|
|
end
|
|
end
|
|
always @(posedge clock or posedge reset) begin
|
|
if (reset) begin
|
|
smallnum_case_ff <= 1'h0;
|
|
end else if (div_clken) begin
|
|
smallnum_case_ff <= smallnum_case;
|
|
end
|
|
end
|
|
always @(posedge clock or posedge reset) begin
|
|
if (reset) begin
|
|
smallnum_ff <= 4'h0;
|
|
end else if (div_clken) begin
|
|
smallnum_ff <= smallnum;
|
|
end
|
|
end
|
|
endmodule
|
|
module exu_div_ctl(
|
|
input clock,
|
|
input reset,
|
|
input io_scan_mode,
|
|
input [31:0] io_dividend,
|
|
input [31:0] io_divisor,
|
|
output [31:0] io_exu_div_result,
|
|
output io_exu_div_wren,
|
|
input io_dec_div_div_p_valid,
|
|
input io_dec_div_div_p_bits_unsign,
|
|
input io_dec_div_div_p_bits_rem,
|
|
input io_dec_div_dec_div_cancel
|
|
);
|
|
wire divider_old_clock; // @[exu_div_ctl.scala 23:27]
|
|
wire divider_old_reset; // @[exu_div_ctl.scala 23:27]
|
|
wire divider_old_io_cancel; // @[exu_div_ctl.scala 23:27]
|
|
wire divider_old_io_valid_in; // @[exu_div_ctl.scala 23:27]
|
|
wire divider_old_io_signed_in; // @[exu_div_ctl.scala 23:27]
|
|
wire divider_old_io_rem_in; // @[exu_div_ctl.scala 23:27]
|
|
wire [31:0] divider_old_io_dividend_in; // @[exu_div_ctl.scala 23:27]
|
|
wire [31:0] divider_old_io_divisor_in; // @[exu_div_ctl.scala 23:27]
|
|
wire [31:0] divider_old_io_data_out; // @[exu_div_ctl.scala 23:27]
|
|
wire divider_old_io_valid_out; // @[exu_div_ctl.scala 23:27]
|
|
wire [31:0] _T_1 = io_exu_div_wren ? 32'hffffffff : 32'h0; // @[Bitwise.scala 72:12]
|
|
wire [31:0] out_raw = divider_old_io_data_out; // @[exu_div_ctl.scala 31:27]
|
|
el2_exu_div_existing_1bit_cheapshortq divider_old ( // @[exu_div_ctl.scala 23:27]
|
|
.clock(divider_old_clock),
|
|
.reset(divider_old_reset),
|
|
.io_cancel(divider_old_io_cancel),
|
|
.io_valid_in(divider_old_io_valid_in),
|
|
.io_signed_in(divider_old_io_signed_in),
|
|
.io_rem_in(divider_old_io_rem_in),
|
|
.io_dividend_in(divider_old_io_dividend_in),
|
|
.io_divisor_in(divider_old_io_divisor_in),
|
|
.io_data_out(divider_old_io_data_out),
|
|
.io_valid_out(divider_old_io_valid_out)
|
|
);
|
|
assign io_exu_div_result = _T_1 & out_raw; // @[exu_div_ctl.scala 21:21]
|
|
assign io_exu_div_wren = divider_old_io_valid_out; // @[exu_div_ctl.scala 32:27]
|
|
assign divider_old_clock = clock;
|
|
assign divider_old_reset = reset;
|
|
assign divider_old_io_cancel = io_dec_div_dec_div_cancel; // @[exu_div_ctl.scala 25:31]
|
|
assign divider_old_io_valid_in = io_dec_div_div_p_valid; // @[exu_div_ctl.scala 26:31]
|
|
assign divider_old_io_signed_in = ~io_dec_div_div_p_bits_unsign; // @[exu_div_ctl.scala 27:31]
|
|
assign divider_old_io_rem_in = io_dec_div_div_p_bits_rem; // @[exu_div_ctl.scala 28:31]
|
|
assign divider_old_io_dividend_in = io_dividend; // @[exu_div_ctl.scala 29:31]
|
|
assign divider_old_io_divisor_in = io_divisor; // @[exu_div_ctl.scala 30:31]
|
|
endmodule
|