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


//  Convert 64 - 80 bit value 
 
module Convert64(ConvertOut, ConvertIn); 
 
input [63: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[63], cla16_Out[14:0], |(cla16_Out[14:0]),ConvertIn[51:0], 11'd0 } ; 
 
cla16Bit cla16Ins( cla16_Out,cout , cla16_In1, cla16_In2, cIn16_In); 
 
always @(ConvertIn) 
begin 
	cla16_In1 = { 5'd0, ConvertIn[62:52]}; 
	cla16_In2 = 16'd15360; 
	cIn16_In = 1'b0;  
end 
endmodule