aboutsummaryrefslogblamecommitdiff
path: root/multiplier/hdl/full_adder.sv
blob: 1238aa7c218f7a3a7a6ccac00d97311daa6848ee (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                       
module full_adder (
	input logic a,
	input logic b,
	input logic c,
	output logic sum,
	output logic carry
);

assign sum = a ^ b ^ c;
assign carry = (a & b) | (c & (a ^ b));

endmodule