futilehdl/identity.fut

11 lines
142 B
Plaintext
Raw Normal View History

2022-01-04 00:38:35 +00:00
module halfadd (
input wire a,
input wire b,
output wire sum,
output wire carry
)
2021-12-30 19:46:28 +00:00
{
2022-01-04 00:38:35 +00:00
assign sum = xor(a, b);
assign carry = and(a, b);
2021-12-30 19:46:28 +00:00
}