Advertisement
foreverfugazi

Untitled

Sep 18th, 2023
984
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module halfadder(
  2.     input logic a,
  3.     input logic b,
  4.     output logic s,
  5.     output logic c
  6.     );
  7.     xor sum(s,a,b);
  8.     and carry(c,a,b);
  9. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement