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