changeset 50:3dbe73bbc0a4

Verilog src: preparations for adding the keypad
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 27 Nov 2021 04:43:53 +0000
parents 0884b4661573
children 9de8e7a43160
files venus/src/Makefile venus/src/periph/keyswitch_wrap.v venus/src/primitives
diffstat 3 files changed, 16 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/venus/src/Makefile	Sat Nov 27 04:25:30 2021 +0000
+++ b/venus/src/Makefile	Sat Nov 27 04:43:53 2021 +0000
@@ -12,8 +12,8 @@
 	periph/bl_current_select.v periph/bl_current_sink.v \
 	periph/calypso_uart_in.v periph/charging_circuit.v \
 	periph/charging_led.v periph/inv_buffer_74LVC1G04.v periph/jtag_if.v \
-	periph/lcd_module.v periph/lcd_subsystem.v periph/sim_socket_block.v \
-	periph/sim_socket_wrap.v periph/sma_wrap.v \
+	periph/keyswitch_wrap.v periph/lcd_module.v periph/lcd_subsystem.v \
+	periph/sim_socket_block.v periph/sim_socket_wrap.v periph/sma_wrap.v \
 	top/board.v top/mobile.v \
 	usb/FT2232D_block.v usb/FT2232D_chip.v usb/eeprom_93Cx6_16bit.v \
 	usb/regulator_ic.v usb/regulator_with_caps.v usb/usb_conn.v \
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/venus/src/periph/keyswitch_wrap.v	Sat Nov 27 04:43:53 2021 +0000
@@ -0,0 +1,13 @@
+/* wrapper for the 4-pin tactile switch package */
+
+module keyswitch_wrap (side1, side2);
+
+input side1, side2;
+
+switch_4pin pkg (.pin_1(side1),
+		 .pin_2(side1),
+		 .pin_3(side2),
+		 .pin_4(side2)
+	);
+
+endmodule
--- a/venus/src/primitives	Sat Nov 27 04:25:30 2021 +0000
+++ b/venus/src/primitives	Sat Nov 27 04:43:53 2021 +0000
@@ -74,6 +74,7 @@
 basic_LED		mapped_pins (A, C);
 misc_diode		mapped_pins (A, C);
 switch_2pin		numpins 2;
+switch_4pin		numpins 4;
 
 /*
  * Resistor footprint with two extra "virtual pins" for sensing - see