comparison fc-uja/schem+bom/vsrc/FT2232D_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 FT2232D chip and its immediate accessories:
3 * the oscillator crystal, the EEPROM, the AVCC filter and the cap on 3V3OUT.
4 */
5
6 module FT2232D_block (GND, VCC, VCCIOA, VCCIOB,
7 USBDP, USBDM, RESET, RSTOUT, PWREN,
8 ADBUS, ACBUS, SI_WUA, BDBUS, BCBUS, SI_WUB);
9
10 input GND, VCC, VCCIOA, VCCIOB;
11
12 inout USBDP, USBDM;
13
14 input RESET;
15 output RSTOUT, PWREN;
16
17 inout [7:0] ADBUS, BDBUS;
18 inout [3:0] ACBUS, BCBUS;
19 input SI_WUA, SI_WUB;
20
21 /* FT2232D pins handled within this block */
22
23 wire EECS, EESK, EEDATA;
24 wire XTIN, XTOUT;
25 wire AVCC, FTDI_3V3;
26
27 /* instantiate the FT2232D */
28
29 FT2232D_chip FT2232D (.GND(GND),
30 .AGND(GND),
31 .VCC(VCC),
32 .AVCC(AVCC),
33 .VCCIOA(VCCIOA),
34 .VCCIOB(VCCIOB),
35 .OUT_3V3(FTDI_3V3),
36 .USBDP(USBDP),
37 .USBDM(USBDM),
38 .EECS(EECS),
39 .EESK(EESK),
40 .EEDATA(EEDATA),
41 .RESET(RESET),
42 .RSTOUT(RSTOUT),
43 .TEST(GND),
44 .PWREN(PWREN),
45 .XTIN(XTIN),
46 .XTOUT(XTOUT),
47 .ADBUS(ADBUS),
48 .ACBUS(ACBUS),
49 .SI_WUA(SI_WUA),
50 .BDBUS(BDBUS),
51 .BCBUS(BCBUS),
52 .SI_WUB(SI_WUB)
53 );
54
55 /* AVCC filter */
56
57 resistor AVCC_filter_R (VCC, AVCC);
58 capacitor AVCC_cap (AVCC, GND);
59
60 /* 3V3OUT */
61
62 capacitor FTDI_3V3_cap (FTDI_3V3, GND);
63
64 /* crystal oscillator */
65
66 xtal_2pin_pkg xtal (XTIN, XTOUT);
67 capacitor XTIN_cap (XTIN, GND);
68 capacitor XTOUT_cap (XTOUT, GND);
69
70 /* serial EEPROM */
71
72 wire EEPROM_DOUT;
73
74 eeprom_93Cx6_16bit eeprom (.GND(GND),
75 .VCC(VCC),
76 .CS(EECS),
77 .SK(EESK),
78 .DIN(EEDATA),
79 .DOUT(EEPROM_DOUT)
80 );
81
82 resistor DOUT_series_R (EEPROM_DOUT, EEDATA);
83 resistor DOUT_pullup_R (EEPROM_DOUT, VCC);
84
85 endmodule