diff venus/src/periph/lcd_subsystem.v @ 48:d55824058cfc

LCD subsystem integrated
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 27 Nov 2021 02:46:19 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/venus/src/periph/lcd_subsystem.v	Sat Nov 27 02:46:19 2021 +0000
@@ -0,0 +1,43 @@
+module lcd_subsystem (GND, VBAT, Vio, DB, RD, WR, RS, CS, RESET,
+		      BL_GPIO9, BL_GPIO11, BL_GPIO12);
+
+input GND, VBAT, Vio;
+
+inout [15:0] DB;
+input RD, WR, RS, CS, RESET;
+
+input BL_GPIO9, BL_GPIO11, BL_GPIO12;
+
+wire [1:3] LEDK;
+
+lcd_module lcd (.GND(GND),
+		.VCI(Vio),
+		.IOVCC(Vio),
+		.DB(DB),
+		.RD(RD),
+		.WR(WR),
+		.RS(RS),
+		.CS(CS),
+		.RESET(RESET),
+		.IM0(GND),
+		.LEDA(VBAT),
+		/* LEDK broken out to allow reordering for layout */
+		.LEDK[1](LEDK[1]),
+		.LEDK[2](LEDK[2]),
+		.LEDK[3](LEDK[3])
+	);
+
+capacitor LCD_bypass_cap (Vio, GND);
+
+bl_current_sink bl (.GND(GND),
+		    .Vio(Vio),
+		    .BL_GPIO9(BL_GPIO9),
+		    .BL_GPIO11(BL_GPIO11),
+		    .BL_GPIO12(BL_GPIO12),
+		    /* LEDK broken out to allow reordering for layout */
+		    .LEDK[1](LEDK[1]),
+		    .LEDK[2](LEDK[2]),
+		    .LEDK[3](LEDK[3])
+	);
+
+endmodule