diff mmtb1/schem+bom/vsrc/board.v @ 0:0f9bdd60ce50

fc-small-hw separated from old freecalypso-schem repo
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 21 Oct 2019 00:53:38 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mmtb1/schem+bom/vsrc/board.v	Mon Oct 21 00:53:38 2019 +0000
@@ -0,0 +1,84 @@
+/*
+ * This is the top level structural Verilog module for the MMTB1 board.
+ */
+
+module board ();
+
+wire GND, VBAT, Vio;
+wire PWON, nTESTRESET;
+
+wire TX_IRDA, RX_IRDA;
+wire TX_MODEM, RX_MODEM, RTS_MODEM, CTS_MODEM;
+wire GPIO2_DCD, GPIO3_DTR;
+
+wire VSIM, SIM_CLK, SIM_RST, SIM_IO;
+
+wire EARP, EARN, MICP, MICN;
+
+/* power input to the rig */
+conn_3pin pwr_input_conn (.pin_1(VBAT),
+			  .pin_2(),
+			  .pin_3(GND)
+	);
+
+capacitor big_cap (VBAT, GND);
+
+/* DUT interface connector */
+interface dut_if (.GND(GND),
+		  .VBAT(VBAT),
+		  .PWON(PWON),
+		  .nTESTRESET(nTESTRESET),
+		  .Vio(Vio),
+		  .TX_IRDA(TX_IRDA),
+		  .RX_IRDA(RX_IRDA),
+		  .TX_MODEM(TX_MODEM),
+		  .RX_MODEM(RX_MODEM),
+		  .RTS_MODEM(RTS_MODEM),
+		  .CTS_MODEM(CTS_MODEM),
+		  .GPIO2_DCD(GPIO2_DCD),
+		  .GPIO3_DTR(GPIO3_DTR),
+		  .VSIM(VSIM),
+		  .SIM_IO(SIM_IO),
+		  .SIM_CLK(SIM_CLK),
+		  .SIM_RST(SIM_RST),
+		  .EARP(EARP),
+		  .EARN(EARN),
+		  .MICP(MICP),
+		  .MICN(MICN)
+	);
+
+/* PWON and nTESTRESET pushbuttons */
+pushbutton_wrap pwr_btn (PWON, GND);
+pushbutton_wrap reset_btn (nTESTRESET, GND);
+
+/* power on LED */
+led_circuit led (.GND(GND),
+		 .VBAT(VBAT),
+		 .Signal(Vio)
+	);
+
+/* SIM socket */
+sim_socket_block sim (.GND(GND),
+		      .VSIM(VSIM),
+		      .SIM_CLK(SIM_CLK),
+		      .SIM_RST(SIM_RST),
+		      .SIM_IO(SIM_IO)
+	);
+
+/* UART interfaces */
+uart_bringout uart_if (.GND(GND),
+		       .TX_MODEM(TX_MODEM),
+		       .RX_MODEM(RX_MODEM),
+		       .RTS_MODEM(RTS_MODEM),
+		       .CTS_MODEM(CTS_MODEM),
+		       .GPIO_DCD(GPIO2_DCD),
+		       .GPIO_DTR(GPIO3_DTR),
+		       .TX_IRDA(TX_IRDA),
+		       .RX_IRDA(RX_IRDA)
+	);
+
+/* earpiece and microphone connectors */
+header_2pin J5 (EARP, EARN);
+header_2pin J6 (MICP, MICN);
+
+endmodule