Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module halfadder(
- input logic a,
- input logic b,
- output logic s,
- output logic c
- );
- xor sum(s,a,b);
- and carry(c,a,b);
- endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement