comparison venus/src/usb/usb_domain_bctl.v @ 24:4722b265cb8c

Venus src: USB domain captured
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 20 Nov 2021 19:44:59 +0000
parents
children 9309cebe07b8
comparison
equal deleted inserted replaced
23:9f70dc110ad7 24:4722b265cb8c
1 /*
2 * This module encapsulates the USB domain circuit for boot control.
3 */
4
5 module usb_domain_bctl (GND, P_3V3, ChanB_RTS, ChanB_DTR, CTL1_out, CTL2_out);
6
7 input GND, P_3V3;
8 input ChanB_RTS, ChanB_DTR;
9 output CTL1_out, CTL2_out;
10
11 /* pull-up resistors on FT2232D outputs */
12
13 resistor ChanB_RTS_pullup (ChanB_RTS, P_3V3);
14 resistor ChanB_DTR_pullup (ChanB_DTR, P_3V3);
15
16 /* open drain buffers */
17
18 logic_ic_common od_buf_common ( .Vcc(P_3V3),
19 .GND(GND)
20 );
21
22 capacitor od_buf_bypass_cap (P_3V3, GND);
23
24 buffer_slot_basic buf_CTL1 (.A(ChanB_RTS), .Y(CTL1_out));
25 buffer_slot_basic buf_CTL2 (.A(ChanB_DTR), .Y(CTL2_out));
26
27 endmodule