FreeCalypso > hg > freecalypso-schem2
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/venus/src/usb/usb_domain_bctl.v Sat Nov 20 19:44:59 2021 +0000 @@ -0,0 +1,27 @@ +/* + * This module encapsulates the USB domain circuit for boot control. + */ + +module usb_domain_bctl (GND, P_3V3, ChanB_RTS, ChanB_DTR, CTL1_out, CTL2_out); + +input GND, P_3V3; +input ChanB_RTS, ChanB_DTR; +output CTL1_out, CTL2_out; + +/* pull-up resistors on FT2232D outputs */ + +resistor ChanB_RTS_pullup (ChanB_RTS, P_3V3); +resistor ChanB_DTR_pullup (ChanB_DTR, P_3V3); + +/* open drain buffers */ + +logic_ic_common od_buf_common ( .Vcc(P_3V3), + .GND(GND) + ); + +capacitor od_buf_bypass_cap (P_3V3, GND); + +buffer_slot_basic buf_CTL1 (.A(ChanB_RTS), .Y(CTL1_out)); +buffer_slot_basic buf_CTL2 (.A(ChanB_DTR), .Y(CTL2_out)); + +endmodule