Advertisement
Benny1994

Untitled

Sep 10th, 2023
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. module buttontoled (i_sw, o_led);
  2.  
  3. input reg i_sw ;
  4. output reg o_led;
  5. always@*
  6. begin
  7. assign o_led = i_sw ;//connects the led to the switch
  8. end
  9.  
  10. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement