view duart28c/src/vsrc/boot_ctrl.v @ 68:8bfa10553e36

lunalcd2/src/MCL: different part for two-post VBAT supply header The tin-plated part is currently out of stock at Digi-Key, but the better gold-plated part is in stock and still reasonably inexpensive.
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 26 Jun 2021 20:40:29 +0000
parents 5bdd24aae51e
children
line wrap: on
line source

/*
 * This module encapsulates the boot control addition for DUART28C.
 */

module boot_ctrl (GND, P_3V3, ChanB_RTS, ChanB_DTR);

input GND, P_3V3;
input ChanB_RTS, ChanB_DTR;

wire 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 */

od_buffer_ic_common od_buf_common (.Vcc(P_3V3),
				   .GND(GND)
	);

capacitor od_buf_bypass_cap (P_3V3, GND);

od_buffer_ic_slot buf_CTL1 (.A(ChanB_RTS), .Y(CTL1_out));
od_buffer_ic_slot buf_CTL2 (.A(ChanB_DTR), .Y(CTL2_out));

/* header connector */

header_3pin ctl_if (.pin_1(GND),
		    .pin_2(CTL1_out),
		    .pin_3(CTL2_out)
	);

endmodule