16 lines
238 B
Coq
16 lines
238 B
Coq
|
/**
|
||
|
* 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
|