Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module top(BTN1, BTN2, BTN3, LED1, LED2);
- input BTN1, BTN2, BTN3;
- output LED1, LED2;
- wire A = BTN1, B = BTN2, Cin = BTN3;
- wire [1:0] Sum = {LED2, LED1};
- assign Sum = A + B + Cin;
- endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement