FreeCalypso > hg > freecalypso-schem2
view venus/src/periph/led_npn.v @ 93:0a26e46b2fc2
change VSP tap header to 6 pins, add CLK13M
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Sat, 11 Dec 2021 05:38:21 +0000 |
| parents | 06e95ff0023b |
| children |
line wrap: on
line source
/* * This module captures the circuit for showing the state of a digital signal * on a LED using an NPN transistor instead of a MOSFET, like we did for PWL * on Caramel2. */ module led_npn (GND, VBAT, Signal); input GND, VBAT, Signal; wire R_to_LED, LED_to_Q; resistor R (VBAT, R_to_LED); basic_LED led (.A(R_to_LED), .C(LED_to_Q)); transistor_slot Q (.E(GND), .B(Signal), .C(LED_to_Q)); endmodule
