Advertisement
foreverfugazi

Untitled

Sep 18th, 2023
994
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module fulladder(
  2.     input logic a,
  3.     input logic b,
  4.     input logic c_in,
  5.     output logic s,
  6.     output logic c_out
  7.     );
  8.     halfadder ha1(a,b,x,y);
  9.     halfadder ha2(x,c_in,s,c_temp);
  10.     or or1(c_out,c_temp,y);
  11. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement