aboutsummaryrefslogtreecommitdiff
path: root/multiplier/hdl/half_adder.sv
blob: a322900fd2dcf93f32ed66d631d229119a7cb806 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
module half_adder (
	input logic a,
	input logic b,
	output logic sum,
	output logic carry
);

assign sum = a ^ b;
assign carry = a & b;

endmodule