www.pudn.com > SHA1.zip > add8_part.v, change:2001-02-09,size:346b


`include "adder_8.v" 
 
module add8_part(a, b, mpx_sel, c_out0, c_out1,  sum); 
 
input  [7:0] a, b; 
input   mpx_sel; 
output c_out0, c_out1; 
output [7:0] sum; 
wire   [7:0] sum0,  sum1; 
 
adder_8 a0 (a, b, 1'b 0, c_out0, sum0); 
adder_8 a1 (a, b, 1'b 1, c_out1, sum1); 
 
assign sum = (mpx_sel == 0) ? sum0 : sum1 ; 
 
endmodule