Advertisement
Guest User

Untitled

a guest
Jun 24th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module MUX_2_1_struct(
  2.     input a,b,
  3.     input s,
  4.     output m);
  5.    
  6.     wire pa,pb,ps;
  7.    
  8.     not (ps,s);
  9.     and (pa,a,ps);
  10.     and (pb,s,b);
  11.     or  (m,pa,pb);
  12. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement