Advertisement
aridokmecian

Untitled

Nov 1st, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module labK;
  2. reg a, b, cin;
  3. wire AxorB, AandB, AxorBxorCin, AxorBandCin, cout, z;
  4.  
  5. xor xor1(AxorB, a, b);
  6. and and1(AandB, a, b);
  7. xor xor2(z, AxorB, cin);
  8. and and2(AxorBandCin, AxorB, cin);
  9. or or1(cout ,AxorBandCin , AandB);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement