annotate venus/src/top/board.v @ 86:adc84e0e98d6

add 74AXP1T34 buffer for flash reset
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 10 Dec 2021 06:20:19 +0000
parents 541b55e6bf47
children
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
82
541b55e6bf47 add UART rescue header
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
56 /* UART interface "rescue" header */
541b55e6bf47 add UART rescue header
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
57
541b55e6bf47 add UART rescue header
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
58 header_10pin uart_header (.pin_1(GND),
541b55e6bf47 add UART rescue header
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
59 .pin_2(GND),
541b55e6bf47 add UART rescue header
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
60 .pin_3(Host_RxD2),
541b55e6bf47 add UART rescue header
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
61 .pin_4(Host_RxD),
541b55e6bf47 add UART rescue header
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
62 .pin_5(Host_TxD2),
541b55e6bf47 add UART rescue header
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
63 .pin_6(Host_TxD),
541b55e6bf47 add UART rescue header
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
64 .pin_7(Host_DCD),
541b55e6bf47 add UART rescue header
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
65 .pin_8(Host_CTS),
541b55e6bf47 add UART rescue header
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
66 .pin_9(Host_DTR),
541b55e6bf47 add UART rescue header
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
67 .pin_10(Host_RTS)
541b55e6bf47 add UART rescue header
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
68 );
541b55e6bf47 add UART rescue header
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
69
26
4baae6215619 Venus: reached the point of compiling sverp.unet
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
70 endmodule