Advertisement
Guest User

Untitled

a guest
Apr 13th, 2019
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module top(BTN1, BTN2, BTN3, LED1, LED2);
  2.    input BTN1, BTN2, BTN3;
  3.    output LED1, LED2;
  4.  
  5.    wire   A = BTN1, B = BTN2, Cin = BTN3;
  6.    wire [1:0] Sum = {LED2, LED1};
  7.    assign Sum = A + B + Cin;
  8. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement