Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module labK;
- reg a, b, cin;
- wire AxorB, AandB, AxorBxorCin, AxorBandCin, cout, z;
- xor xor1(AxorB, a, b);
- and and1(AandB, a, b);
- xor xor2(z, AxorB, cin);
- and and2(AxorBandCin, AxorB, cin);
- or or1(cout ,AxorBandCin , AandB);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement