nand2/02_Boolean_Arithmetic/HalfAdder.v

16 lines
238 B
Coq
Raw Normal View History

2023-01-11 10:13:09 +00:00
/**
* Computes the sum of two bits.
*/
`default_nettype none
module HalfAdder(
input a, //1-bit input
input b, //1-bit inpur
output sum, //Right bit of a + b
output carry //Lef bit of a + b
);
// Put your code here:
endmodule