view 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
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