futilehdl/doc/examples/halfadd.fut

11 lines
134 B
Plaintext

module halfadd (
input wire a,
input wire b,
output wire sum,
output wire carry
)
{
assign sum = a ^ b;
assign carry = a & b;
}