FreeCalypso > hg > fc-small-hw
annotate lunakpd1/src/pushbutton_wrap.v @ 13:c016671a4b4a
lunakpd1 project started
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 09 May 2020 00:38:07 +0000 |
parents | |
children |
rev | line source |
---|---|
13
c016671a4b4a
lunakpd1 project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* wrapper for the 4-pin pushbutton package */ |
c016671a4b4a
lunakpd1 project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 |
c016671a4b4a
lunakpd1 project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 module pushbutton_wrap (side1, side2); |
c016671a4b4a
lunakpd1 project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 |
c016671a4b4a
lunakpd1 project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 input side1, side2; |
c016671a4b4a
lunakpd1 project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
c016671a4b4a
lunakpd1 project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 pkg_pushbutton_4pin pkg (.pin_1(side1), |
c016671a4b4a
lunakpd1 project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 .pin_2(side1), |
c016671a4b4a
lunakpd1 project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 .pin_3(side2), |
c016671a4b4a
lunakpd1 project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 .pin_4(side2) |
c016671a4b4a
lunakpd1 project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 ); |
c016671a4b4a
lunakpd1 project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
c016671a4b4a
lunakpd1 project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 endmodule |