www.pudn.com > x86.rar > Convert32.v, change:2007-12-05,size:565b


 
//  Convert 32 - 80 bit value 
 
module Convert32(ConvertOut, ConvertIn); 
 
input [31:0] ConvertIn; 
output [79:0] ConvertOut; 
 
wire [15:0] cla16_Out; 
wire [16:1] cout; 
 
reg  [15:0]  cla16_In1,cla16_In2; 
reg          cIn16_In; 
 
assign ConvertOut = { ConvertIn[31], cla16_Out[14:0], |(cla16_Out[14:0]), ConvertIn[22:0], 40'd0 } ; 
 
cla16Bit cla16Ins( cla16_Out,cout , cla16_In1, cla16_In2, cIn16_In); 
 
always @(ConvertIn)// or cla16_Out) 
begin 
 
	cla16_In1 = { 8'd0, ConvertIn[30:23]}; 
	cla16_In2 = 16'd16256; 
	cIn16_In = 1'b0;  
end 
endmodule