Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. SW[0] - select
  2. SW[1] - input 1
  3. SW[2] - input 2
  4. LEDR[0] - output
  5.  
  6. module ligths (SW[0], SW[1], SW[2], LEDR[0]);
  7.  
  8. input SW[0], SW[1], SW[2];
  9.  
  10. output LEDR[0];
  11.  
  12. assign LEDR[0] = ((SW[2] & SW[0]) | (SW[1] & ~SW[0]));
  13.  
  14. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement