annotate venus/src/periph/keyswitch_wrap.v @ 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
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
50
3dbe73bbc0a4 Verilog src: preparations for adding the keypad
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 /* wrapper for the 4-pin tactile switch package */
3dbe73bbc0a4 Verilog src: preparations for adding the keypad
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2
3dbe73bbc0a4 Verilog src: preparations for adding the keypad
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 module keyswitch_wrap (side1, side2);
3dbe73bbc0a4 Verilog src: preparations for adding the keypad
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4
3dbe73bbc0a4 Verilog src: preparations for adding the keypad
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 input side1, side2;
3dbe73bbc0a4 Verilog src: preparations for adding the keypad
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6
3dbe73bbc0a4 Verilog src: preparations for adding the keypad
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 switch_4pin pkg (.pin_1(side1),
3dbe73bbc0a4 Verilog src: preparations for adding the keypad
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 .pin_2(side1),
3dbe73bbc0a4 Verilog src: preparations for adding the keypad
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 .pin_3(side2),
3dbe73bbc0a4 Verilog src: preparations for adding the keypad
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 .pin_4(side2)
3dbe73bbc0a4 Verilog src: preparations for adding the keypad
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 );
3dbe73bbc0a4 Verilog src: preparations for adding the keypad
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12
3dbe73bbc0a4 Verilog src: preparations for adding the keypad
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 endmodule