annotate venus/src/periph/MAX1916.v @ 46:c247abb89302

MAX1916.v and lcd_module.v from lunalcd2
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 27 Nov 2021 01:43:32 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
46
c247abb89302 MAX1916.v and lcd_module.v from lunalcd2
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 module MAX1916 (GND, EN, SET, LEDK);
c247abb89302 MAX1916.v and lcd_module.v from lunalcd2
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2
c247abb89302 MAX1916.v and lcd_module.v from lunalcd2
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 input GND, EN, SET;
c247abb89302 MAX1916.v and lcd_module.v from lunalcd2
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 output [1:3] LEDK;
c247abb89302 MAX1916.v and lcd_module.v from lunalcd2
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
c247abb89302 MAX1916.v and lcd_module.v from lunalcd2
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 /* instantiate the package; the mapping of signals to pins is defined here */
c247abb89302 MAX1916.v and lcd_module.v from lunalcd2
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7
c247abb89302 MAX1916.v and lcd_module.v from lunalcd2
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 pkg_SOT23_6 pkg (.pin_1(EN),
c247abb89302 MAX1916.v and lcd_module.v from lunalcd2
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 .pin_2(GND),
c247abb89302 MAX1916.v and lcd_module.v from lunalcd2
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 .pin_3(SET),
c247abb89302 MAX1916.v and lcd_module.v from lunalcd2
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 .pin_4(LEDK[3]),
c247abb89302 MAX1916.v and lcd_module.v from lunalcd2
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 .pin_5(LEDK[2]),
c247abb89302 MAX1916.v and lcd_module.v from lunalcd2
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 .pin_6(LEDK[1])
c247abb89302 MAX1916.v and lcd_module.v from lunalcd2
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 );
c247abb89302 MAX1916.v and lcd_module.v from lunalcd2
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15
c247abb89302 MAX1916.v and lcd_module.v from lunalcd2
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 endmodule