annotate duart28c/src/vsrc/boot_ctrl.v @ 80:6bd0e0627938

sim-fpc-pasv: starting project with MCL
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 25 Oct 2022 03:17:34 +0000
parents 5bdd24aae51e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
50
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 /*
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 * This module encapsulates the boot control addition for DUART28C.
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 */
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 module boot_ctrl (GND, P_3V3, ChanB_RTS, ChanB_DTR);
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 input GND, P_3V3;
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 input ChanB_RTS, ChanB_DTR;
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 wire CTL1_out, CTL2_out;
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 /* pull-up resistors on FT2232D outputs */
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 resistor ChanB_RTS_pullup (ChanB_RTS, P_3V3);
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 resistor ChanB_DTR_pullup (ChanB_DTR, P_3V3);
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 /* open drain buffers */
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 od_buffer_ic_common od_buf_common (.Vcc(P_3V3),
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 .GND(GND)
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 );
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 capacitor od_buf_bypass_cap (P_3V3, GND);
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 od_buffer_ic_slot buf_CTL1 (.A(ChanB_RTS), .Y(CTL1_out));
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26 od_buffer_ic_slot buf_CTL2 (.A(ChanB_DTR), .Y(CTL2_out));
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 /* header connector */
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30 header_3pin ctl_if (.pin_1(GND),
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 .pin_2(CTL1_out),
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
32 .pin_3(CTL2_out)
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33 );
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34
5bdd24aae51e duart28c: new parts added to netlist
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35 endmodule