futilehdl/doc/examples/halfadd.fut

11 lines
134 B
Plaintext
Raw Normal View History

2022-01-04 00:41:09 +00:00
module halfadd (
input wire a,
input wire b,
output wire sum,
output wire carry
)
{
2022-01-17 18:20:51 +00:00
assign sum = a ^ b;
assign carry = a & b;
2022-01-04 00:41:09 +00:00
}