FreeCalypso > hg > fc-small-hw
comparison duart28c/src/vsrc/boot_ctrl.v @ 50:5bdd24aae51e
duart28c: new parts added to netlist
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Wed, 29 Jul 2020 07:59:20 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 49:d4da3aed4c1e | 50:5bdd24aae51e |
|---|---|
| 1 /* | |
| 2 * This module encapsulates the boot control addition for DUART28C. | |
| 3 */ | |
| 4 | |
| 5 module boot_ctrl (GND, P_3V3, ChanB_RTS, ChanB_DTR); | |
| 6 | |
| 7 input GND, P_3V3; | |
| 8 input ChanB_RTS, ChanB_DTR; | |
| 9 | |
| 10 wire CTL1_out, CTL2_out; | |
| 11 | |
| 12 /* pull-up resistors on FT2232D outputs */ | |
| 13 | |
| 14 resistor ChanB_RTS_pullup (ChanB_RTS, P_3V3); | |
| 15 resistor ChanB_DTR_pullup (ChanB_DTR, P_3V3); | |
| 16 | |
| 17 /* open drain buffers */ | |
| 18 | |
| 19 od_buffer_ic_common od_buf_common (.Vcc(P_3V3), | |
| 20 .GND(GND) | |
| 21 ); | |
| 22 | |
| 23 capacitor od_buf_bypass_cap (P_3V3, GND); | |
| 24 | |
| 25 od_buffer_ic_slot buf_CTL1 (.A(ChanB_RTS), .Y(CTL1_out)); | |
| 26 od_buffer_ic_slot buf_CTL2 (.A(ChanB_DTR), .Y(CTL2_out)); | |
| 27 | |
| 28 /* header connector */ | |
| 29 | |
| 30 header_3pin ctl_if (.pin_1(GND), | |
| 31 .pin_2(CTL1_out), | |
| 32 .pin_3(CTL2_out) | |
| 33 ); | |
| 34 | |
| 35 endmodule |
