comparison fc-uja/schem+bom/vsrc/application_block.v @ 0:0f9bdd60ce50

fc-small-hw separated from old freecalypso-schem repo
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 21 Oct 2019 00:53:38 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0f9bdd60ce50
1 /*
2 * This module encapsulates the application function of our board:
3 * going from FT2232D to target interfaces.
4 */
5
6 module application_block (GND, P_3V3, P_2V8, ADBUS, ACBUS, BDBUS);
7
8 input GND, P_3V3, P_2V8;
9
10 inout [7:0] ADBUS, BDBUS;
11 inout [3:0] ACBUS;
12
13 /* target interface wires */
14
15 wire JTAG_TCK, JTAG_TDI, JTAG_TDO, JTAG_TMS;
16 wire nTESTRESET;
17 wire UART_TxD, UART_RxD;
18
19 target_if target_if ( .GND(GND),
20 .JTAG_TCK(JTAG_TCK),
21 .JTAG_TDI(JTAG_TDI),
22 .JTAG_TDO(JTAG_TDO),
23 .JTAG_TMS(JTAG_TMS),
24 .nTESTRESET(nTESTRESET),
25 .nEMU[0](ACBUS[2]),
26 .nEMU[1](ACBUS[3]),
27 .UART_TxD(UART_TxD),
28 .UART_RxD(UART_RxD)
29 );
30
31 /* output buffers */
32
33 buffer_ic_common output_buf_common (.Vcc(P_2V8), .GND(GND));
34 capacitor output_buf_bypass_cap (P_2V8, GND);
35
36 buffer_ic_slot buf_JTAG_TCK (.A(ADBUS[0]), .Y(JTAG_TCK), .nOE(ADBUS[5]));
37 buffer_ic_slot buf_JTAG_TDI (.A(ADBUS[1]), .Y(JTAG_TDI), .nOE(ADBUS[5]));
38 buffer_ic_slot buf_JTAG_TMS (.A(ADBUS[3]), .Y(JTAG_TMS), .nOE(ADBUS[5]));
39
40 buffer_ic_slot buf_UART_TxD (.A(BDBUS[0]), .Y(UART_TxD), .nOE(GND));
41
42 /* input buffers */
43
44 buffer_ic_common input_buf_common (.Vcc(P_3V3), .GND(GND));
45 capacitor input_buf_bypass_cap (P_3V3, GND);
46
47 buffer_ic_slot buf_JTAG_TDO (.A(JTAG_TDO), .Y(ADBUS[2]), .nOE(ADBUS[6]));
48 buffer_ic_slot buf_UART_RxD (.A(UART_RxD), .Y(BDBUS[1]), .nOE(GND));
49
50 /* input pull-up resistors */
51
52 resistor JTAG_TDO_pullup (JTAG_TDO, P_2V8);
53 resistor UART_RxD_pullup (UART_RxD, P_2V8);
54
55 /* reset signal driver */
56
57 od_buffer reset_driver (.GND(GND), .Vcc(P_3V3), .A(ADBUS[7]), .Y(nTESTRESET));
58 capacitor reset_driver_bypass_cap (P_3V3, GND);
59
60 /* pull-up resistors on control lines */
61
62 resistor ADBUS5_pullup (ADBUS[5], P_3V3);
63 resistor ADBUS6_pullup (ADBUS[6], P_3V3);
64 resistor ADBUS7_pullup (ADBUS[7], P_3V3);
65
66 endmodule