view venus/src/top/board.v @ 69:de44df15cf05

MCL capacitors: convert to parts
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 02 Dec 2021 07:20:13 +0000
parents 4baae6215619
children 541b55e6bf47
line wrap: on
line source

/*
 * This structural Verilog module is the top level for FC Venus board.
 * It interconnects the two principal domains: mobile and USB.
 */

module board ();

wire GND, VBUS, VCHG;

wire Host_TxD, Host_RxD, Host_RTS, Host_CTS;
wire Host_DTR, Host_DCD, Host_RI, Host_TxD2, Host_RxD2;

wire RPWON, nTESTRESET;

/* mobile and USB domains */

mobile mob (.GND(GND),
	    .VCHG(VCHG),
	    .Host_TxD(Host_TxD),
	    .Host_RxD(Host_RxD),
	    .Host_RTS(Host_RTS),
	    .Host_CTS(Host_CTS),
	    .Host_DTR(Host_DTR),
	    .Host_DCD(Host_DCD),
	    .Host_RI(Host_RI),
	    .Host_TxD2(Host_TxD2),
	    .Host_RxD2(Host_RxD2),
	    .RPWON(RPWON),
	    .nTESTRESET(nTESTRESET)
	);

usb_domain usb (.GND(GND),
		.VBUS(VBUS),
		.Host_TxD(Host_TxD),
		.Host_RxD(Host_RxD),
		.Host_RTS(Host_RTS),
		.Host_CTS(Host_CTS),
		.Host_DTR(Host_DTR),
		.Host_DCD(Host_DCD),
		.Host_RI(Host_RI),
		.Host_TxD2(Host_TxD2),
		.Host_RxD2(Host_RxD2),
		.RPWON(RPWON),
		.nTESTRESET(nTESTRESET)
	);

/* charging control switch */

switch_2pin chg_switch (VBUS, VCHG);

/* pull-down resistors before and after the switch */

resistor VBUS_pulldown (VBUS, GND);
resistor VCHG_pulldown (VCHG, GND);

endmodule