Advertisement
fellpz

Teste

Jun 1st, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module teste(SW, LEDG);
  2. // Declaração de entradas/saidas
  3. input [2:0]SW;
  4. output [7:0]LEDG;
  5.  
  6. wire sel_n, sel_a, sel_b;
  7.  
  8. not n1(sel_n, SW[0]);
  9. and a1 (sel_b, SW[2], sel_n);
  10. and a2 (sel_a, SW[1], SW[0]);
  11. or o1(LEDG[7], sel_b, sel_a);
  12.  
  13. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement