FreeCalypso > hg > freecalypso-schem2
annotate venus/src/periph/lcd_subsystem.v @ 60:c661a87159c2
buzzer component nailed down
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 01 Dec 2021 06:50:25 +0000 |
parents | d55824058cfc |
children |
rev | line source |
---|---|
48
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 module lcd_subsystem (GND, VBAT, Vio, DB, RD, WR, RS, CS, RESET, |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 BL_GPIO9, BL_GPIO11, BL_GPIO12); |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 input GND, VBAT, Vio; |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 inout [15:0] DB; |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 input RD, WR, RS, CS, RESET; |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 input BL_GPIO9, BL_GPIO11, BL_GPIO12; |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 wire [1:3] LEDK; |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 lcd_module lcd (.GND(GND), |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 .VCI(Vio), |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 .IOVCC(Vio), |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 .DB(DB), |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 .RD(RD), |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 .WR(WR), |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 .RS(RS), |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 .CS(CS), |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 .RESET(RESET), |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 .IM0(GND), |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 .LEDA(VBAT), |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 /* LEDK broken out to allow reordering for layout */ |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 .LEDK[1](LEDK[1]), |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 .LEDK[2](LEDK[2]), |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 .LEDK[3](LEDK[3]) |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 ); |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 capacitor LCD_bypass_cap (Vio, GND); |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 bl_current_sink bl (.GND(GND), |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 .Vio(Vio), |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 .BL_GPIO9(BL_GPIO9), |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 .BL_GPIO11(BL_GPIO11), |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 .BL_GPIO12(BL_GPIO12), |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 /* LEDK broken out to allow reordering for layout */ |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 .LEDK[1](LEDK[1]), |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 .LEDK[2](LEDK[2]), |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 .LEDK[3](LEDK[3]) |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 ); |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 |
d55824058cfc
LCD subsystem integrated
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
43 endmodule |