annotate venus/src/periph/calypso_uart_in.v @ 20:143768e8e729

Venus MCL: USB connector and ICs from DUART28
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 20 Nov 2021 06:19:00 +0000
parents 42a02257d457
children 4baae6215619
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 /*
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 * This module encapsulates the mobile power domain buffers
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 * in front of Calypso UART inputs.
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 */
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 module calypso_uart_in (GND, VBAT, Vio,
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 Host_TxD, Host_RTS, Host_DTR, Host_TxD2,
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 RX_MODEM, CTS_MODEM, GPIO_DTR, RX_IRDA);
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 input GND, VBAT, Vio;
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 input Host_TxD, Host_RTS, Host_DTR, Host_TxD2;
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 output RX_MODEM, CTS_MODEM, GPIO_DTR, RX_IRDA;
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 /* U401 buffer common part */
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 logic_ic_common U401_common (.Vcc(Vio), .GND(GND));
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 /* buffer slots */
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 buffer_slot_3state Host_TxD_buffer (.A(Host_TxD), .Y(RX_MODEM));
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 buffer_slot_3state Host_RTS_buffer (.A(Host_RTS), .Y(CTS_MODEM));
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 buffer_slot_3state Host_DTR_buffer (.A(Host_DTR), .Y(GPIO_DTR));
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 buffer_slot_3state Host_TxD2_buffer (.A(Host_TxD2), .Y(RX_IRDA));
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 /* pull-ups to VBAT */
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 resistor Host_TxD_pullup (Host_TxD, VBAT);
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 resistor Host_DTR_pullup (Host_DTR, VBAT);
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26 resistor Host_TxD2_pullup (Host_TxD2, VBAT);
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 /* pull-down to GND */
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29 resistor Host_RTS_pulldown (Host_RTS, GND);
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30
42a02257d457 venus/src/periph/calypso_uart_in.v written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 endmodule