ELEC60011-DSD-CW/system_template_de1_soc/fp_div128.v

8 lines
196 B
Coq
Raw Normal View History

2022-09-16 10:48:05 +00:00
module fp_div128 (
input [31:0] dataa,
output [31:0] result
);
wire [7:0] NewExp;
assign NewExp = dataa[30:23]-7;
assign result = (dataa[30:23]<=6) ? 0 : {dataa[31],NewExp,dataa[22:0]};
endmodule