changeset 13:c016671a4b4a

lunakpd1 project started
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 09 May 2020 00:38:07 +0000
parents ee17927ee326
children afdf0315ad84
files .hgignore lunakpd1/src/MCL lunakpd1/src/Makefile lunakpd1/src/primitives lunakpd1/src/pushbutton_wrap.v lunakpd1/src/schem.v
diffstat 6 files changed, 211 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Fri Apr 03 00:02:03 2020 +0000
+++ b/.hgignore	Sat May 09 00:38:07 2020 +0000
@@ -15,6 +15,8 @@
 ^lcdtest1/pcb/gerbers\.
 ^lcdtest1/schem\+bom/elements\.pcb$
 
+^lunakpd1/src/elements\.pcb$
+
 ^lunalcd1/pcb/gerbers\.
 ^lunalcd1/src/elements\.pcb$
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lunakpd1/src/MCL	Sat May 09 00:38:07 2020 +0000
@@ -0,0 +1,118 @@
+J1:
+ hier=J1
+ footprint=HEADER10_2
+ description=Header, 0.100", dual row, 10 posts
+ manufacturer=Molex
+ manufacturer_part_number=0901310125
+ vendor=Digi-Key
+ vendor_part_number=WM50035-10-ND
+ npins=10
+
+part pushbutton:
+ manufacturer=E-Switch
+ manufacturer_part_number=TL1105EF100Q
+ description=Pushbutton switch, brown, 100 g force
+ vendor=Digi-Key
+ vendor_part_number=EG2496-ND
+ footprint=TL1105
+ npins=4
+
+S00:
+ hier=S00.pkg
+ part=pushbutton
+
+S01:
+ hier=S01.pkg
+ part=pushbutton
+
+S02:
+ hier=S02.pkg
+ part=pushbutton
+
+S03:
+ hier=S03.pkg
+ part=pushbutton
+
+S04:
+ hier=S04.pkg
+ part=pushbutton
+
+S10:
+ hier=S10.pkg
+ part=pushbutton
+
+S11:
+ hier=S11.pkg
+ part=pushbutton
+
+S12:
+ hier=S12.pkg
+ part=pushbutton
+
+S13:
+ hier=S13.pkg
+ part=pushbutton
+
+S14:
+ hier=S14.pkg
+ part=pushbutton
+
+S20:
+ hier=S20.pkg
+ part=pushbutton
+
+S21:
+ hier=S21.pkg
+ part=pushbutton
+
+S22:
+ hier=S22.pkg
+ part=pushbutton
+
+S23:
+ hier=S23.pkg
+ part=pushbutton
+
+S24:
+ hier=S24.pkg
+ part=pushbutton
+
+S30:
+ hier=S30.pkg
+ part=pushbutton
+
+S31:
+ hier=S31.pkg
+ part=pushbutton
+
+S32:
+ hier=S32.pkg
+ part=pushbutton
+
+S33:
+ hier=S33.pkg
+ part=pushbutton
+
+S34:
+ hier=S34.pkg
+ part=pushbutton
+
+S40:
+ hier=S40.pkg
+ part=pushbutton
+
+S41:
+ hier=S41.pkg
+ part=pushbutton
+
+S42:
+ hier=S42.pkg
+ part=pushbutton
+
+S43:
+ hier=S43.pkg
+ part=pushbutton
+
+S44:
+ hier=S44.pkg
+ part=pushbutton
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lunakpd1/src/Makefile	Sat May 09 00:38:07 2020 +0000
@@ -0,0 +1,28 @@
+BOMS=	tallied-bom.txt tallied-bom.csv comptab.txt
+NETS=	sverp.unet bound.unet pcb-netlist.txt
+
+all:	${BOMS} ${NETS} elements.pcb
+
+sverp.unet:	schem.v pushbutton_wrap.v primitives
+	ueda-sverp -o $@ schem.v pushbutton_wrap.v
+
+bound.unet:	MCL sverp.unet
+	unet-bind -c sverp.unet $@
+
+pcb-netlist.txt:	bound.unet
+	unet2pcb bound.unet $@
+
+tallied-bom.txt:	MCL
+	ueda-mkbom -cr > $@
+
+tallied-bom.csv:	MCL
+	ueda-csvbom > $@
+
+comptab.txt:	MCL
+	ueda-shortbom > $@
+
+elements.pcb:	MCL
+	ueda-getfps -ch | ueda-runm4 > $@
+
+clean:
+	rm -f *.unet *.txt *.csv errs elements.pcb*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lunakpd1/src/primitives	Sat May 09 00:38:07 2020 +0000
@@ -0,0 +1,2 @@
+header_10pin		numpins 10;
+pkg_pushbutton_4pin	numpins 4;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lunakpd1/src/pushbutton_wrap.v	Sat May 09 00:38:07 2020 +0000
@@ -0,0 +1,13 @@
+/* wrapper for the 4-pin pushbutton package */
+
+module pushbutton_wrap (side1, side2);
+
+input side1, side2;
+
+pkg_pushbutton_4pin pkg (.pin_1(side1),
+			 .pin_2(side1),
+			 .pin_3(side2),
+			 .pin_4(side2)
+	);
+
+endmodule
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lunakpd1/src/schem.v	Sat May 09 00:38:07 2020 +0000
@@ -0,0 +1,48 @@
+module board ();
+
+wire [4:0] KBC;
+wire [4:0] KBR;
+
+header_10pin J1 (.pin_1(KBR[3]),
+		 .pin_2(KBR[4]),
+		 .pin_3(KBR[1]),
+		 .pin_4(KBR[2]),
+		 .pin_5(KBC[4]),
+		 .pin_6(KBR[0]),
+		 .pin_7(KBC[2]),
+		 .pin_8(KBC[3]),
+		 .pin_9(KBC[0]),
+		 .pin_10(KBC[1])
+	);
+
+pushbutton_wrap S00 (KBR[0], KBC[0]);
+pushbutton_wrap S01 (KBR[0], KBC[1]);
+pushbutton_wrap S02 (KBR[0], KBC[2]);
+pushbutton_wrap S03 (KBR[0], KBC[3]);
+pushbutton_wrap S04 (KBR[0], KBC[4]);
+
+pushbutton_wrap S10 (KBR[1], KBC[0]);
+pushbutton_wrap S11 (KBR[1], KBC[1]);
+pushbutton_wrap S12 (KBR[1], KBC[2]);
+pushbutton_wrap S13 (KBR[1], KBC[3]);
+pushbutton_wrap S14 (KBR[1], KBC[4]);
+
+pushbutton_wrap S20 (KBR[2], KBC[0]);
+pushbutton_wrap S21 (KBR[2], KBC[1]);
+pushbutton_wrap S22 (KBR[2], KBC[2]);
+pushbutton_wrap S23 (KBR[2], KBC[3]);
+pushbutton_wrap S24 (KBR[2], KBC[4]);
+
+pushbutton_wrap S30 (KBR[3], KBC[0]);
+pushbutton_wrap S31 (KBR[3], KBC[1]);
+pushbutton_wrap S32 (KBR[3], KBC[2]);
+pushbutton_wrap S33 (KBR[3], KBC[3]);
+pushbutton_wrap S34 (KBR[3], KBC[4]);
+
+pushbutton_wrap S40 (KBR[4], KBC[0]);
+pushbutton_wrap S41 (KBR[4], KBC[1]);
+pushbutton_wrap S42 (KBR[4], KBC[2]);
+pushbutton_wrap S43 (KBR[4], KBC[3]);
+pushbutton_wrap S44 (KBR[4], KBC[4]);
+
+endmodule