futilehdl/doc/examples/halfadd.fut

9 lines
106 B
Plaintext

module halfadd (
a: Logic,
b: Logic
) -> (Logic, Logic)
{
assign sum = a ^ b;
assign carry = a & b;
}