annotate venus/src/periph/buzzer_circuit.v @ 69:de44df15cf05

MCL capacitors: convert to parts
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 02 Dec 2021 07:20:13 +0000
parents 4a7db02ddd3e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
63
4a7db02ddd3e buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 module buzzer_circuit (GND, VBAT, Digital_input);
4a7db02ddd3e buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2
4a7db02ddd3e buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 input GND, VBAT;
4a7db02ddd3e buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 input Digital_input;
4a7db02ddd3e buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
4a7db02ddd3e buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 wire Buzzer_neg;
4a7db02ddd3e buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7
4a7db02ddd3e buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 buzzer_wrap buz (.Pos(VBAT), .Neg(Buzzer_neg));
4a7db02ddd3e buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9
4a7db02ddd3e buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 clamp_diode_pair D_pair (.Signal(Buzzer_neg), .Pos_rail(VBAT), .Neg_rail(GND));
4a7db02ddd3e buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
4a7db02ddd3e buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 transistor_ext_bias npn (.E(GND), .B(Digital_input), .C(Buzzer_neg));
4a7db02ddd3e buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13
4a7db02ddd3e buzzer circuit implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 endmodule