annotate venus/src/top/board.v @ 35:971c05950675

starpoints in core: commit to using pcb-rnd intnoconn
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 22 Nov 2021 09:54:48 +0000
parents 4baae6215619
children 541b55e6bf47
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 /*
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 * This structural Verilog module is the top level for FC Venus board.
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 * It interconnects the two principal domains: mobile and USB.
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 */
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 module board ();
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 wire GND, VBUS, VCHG;
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 wire Host_TxD, Host_RxD, Host_RTS, Host_CTS;
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 wire Host_DTR, Host_DCD, Host_RI, Host_TxD2, Host_RxD2;
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 wire RPWON, nTESTRESET;
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 /* mobile and USB domains */
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 mobile mob (.GND(GND),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 .VCHG(VCHG),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 .Host_TxD(Host_TxD),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 .Host_RxD(Host_RxD),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 .Host_RTS(Host_RTS),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 .Host_CTS(Host_CTS),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 .Host_DTR(Host_DTR),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 .Host_DCD(Host_DCD),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 .Host_RI(Host_RI),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26 .Host_TxD2(Host_TxD2),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 .Host_RxD2(Host_RxD2),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 .RPWON(RPWON),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29 .nTESTRESET(nTESTRESET)
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30 );
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
32 usb_domain usb (.GND(GND),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33 .VBUS(VBUS),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34 .Host_TxD(Host_TxD),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35 .Host_RxD(Host_RxD),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
36 .Host_RTS(Host_RTS),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
37 .Host_CTS(Host_CTS),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
38 .Host_DTR(Host_DTR),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
39 .Host_DCD(Host_DCD),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
40 .Host_RI(Host_RI),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
41 .Host_TxD2(Host_TxD2),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
42 .Host_RxD2(Host_RxD2),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
43 .RPWON(RPWON),
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
44 .nTESTRESET(nTESTRESET)
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
45 );
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
46
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
47 /* charging control switch */
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
48
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
49 switch_2pin chg_switch (VBUS, VCHG);
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
50
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
51 /* pull-down resistors before and after the switch */
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
52
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
53 resistor VBUS_pulldown (VBUS, GND);
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
54 resistor VCHG_pulldown (VCHG, GND);
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
55
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
56 endmodule