annotate venus/src/periph/bl_current_sink.v @ 47:9f5a3567d699

progress toward LCD integration
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 27 Nov 2021 02:09:46 +0000
parents
children d55824058cfc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
47
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 module bl_current_sink (GND, Vio, BL_GPIO9, BL_GPIO11, BL_GPIO12, LEDK);
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 input GND, Vio;
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 input BL_GPIO9, BL_GPIO11, BL_GPIO12;
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 output [1:3] LEDK;
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 wire SET;
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 MAX1916 MAX1916 (.GND(GND),
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 .EN(BL_GPIO9),
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 .SET(SET),
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 .LEDK(LEDK)
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 );
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 bl_current_select cursel (.GND(GND),
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 .Vio(Vio),
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 .BL_GPIO11(BL_GPIO11),
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 .BL_GPIO12(BL_GPIO12),
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 .SET(SET)
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 );
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21
9f5a3567d699 progress toward LCD integration
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 endmodule