FreeCalypso > hg > freecalypso-schem2
view venus/src/top/board.v @ 28:f28249ee1ee5
Venus MCL: ready for first binding
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 21 Nov 2021 03:05:26 +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