FreeCalypso > hg > freecalypso-schem2
comparison venus/src/periph/led_npn.v @ 52:06e95ff0023b
ON_nOFF indicator LED implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 27 Nov 2021 18:34:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
51:9de8e7a43160 | 52:06e95ff0023b |
---|---|
1 /* | |
2 * This module captures the circuit for showing the state of a digital signal | |
3 * on a LED using an NPN transistor instead of a MOSFET, like we did for PWL | |
4 * on Caramel2. | |
5 */ | |
6 | |
7 module led_npn (GND, VBAT, Signal); | |
8 | |
9 input GND, VBAT, Signal; | |
10 | |
11 wire R_to_LED, LED_to_Q; | |
12 | |
13 resistor R (VBAT, R_to_LED); | |
14 basic_LED led (.A(R_to_LED), .C(LED_to_Q)); | |
15 transistor_slot Q (.E(GND), .B(Signal), .C(LED_to_Q)); | |
16 | |
17 endmodule |