mirror of
https://github.com/supleed2/ELEC60011-DSD-CW.git
synced 2024-11-10 02:05:49 +00:00
8 lines
196 B
Coq
8 lines
196 B
Coq
|
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
|