Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | - | 1 | || FILE: #0165.PLD |
2 | || PROJ: 20170501 |
||
3 | || FD-02 FDC/ATA/DMA BOARD |
||
4 | || |
||
5 | || PART: G26CV12-#0165 |
||
6 | || |
||
7 | || DEV : GAL26CV12 |
||
8 | || |
||
9 | || DESC: DECODER I/O |
||
10 | || |
||
11 | | |
||
12 | |GAL26CV12 |
||
13 | | |
||
14 | || INPUT |
||
15 | | 1:A1, 2:A2, 3:A3, 4:A4, 5:A5, 6:A6, 8:IO, 9:RW, 10:PHI2, |
||
16 | | 11:CX2, 12:FDC, 13:PHI0, 14:DMAE, 28:MW0, |
||
17 | || OUTPUT |
||
18 | | 15:CS0, 16:CS1, 17:CS2, 18:CS3, 19:CS4, 20:DBE, 22:GDD, 23:CS5, |
||
19 | | 24:RD, 25:WE, 26:IOR, 27:IOW |
||
20 | | |
||
21 | | ACTIVE-LOW: CS0, CS1, CS2, CS3, DBE, GDD, CS5, RD, WE, IOR, IOW |
||
22 | | |
||
23 | | |
||
24 | | SIGNATURE: "0165 " |
||
25 | | |
||
26 | || -------------------------------------------------------- |
||
27 | || common signals when dma disbled (DMAE = 1 => cpu access) |
||
28 | || |
||
29 | | SCX2 = CX2' & DMAE || ram select when cpu access |
||
30 | | SFDC = FDC' & DMAE || fdc select FD58-FD5F |
||
31 | | DMA0 = IO' & A6' & A5' & A4' & DMAE || dma0 select FD80-FD8F |
||
32 | | DMA1 = IO' & A6' & A5' & A4 & DMAE || dma1 select FD90-FD9F |
||
33 | | ATA0 = IO' & A6' & A5 & A4' & DMAE || ata0 select FDA0-FDAF |
||
34 | | ATA1 = IO' & A6' & A5 & A4 & DMAE || ata1 select FDB0-FDBF |
||
35 | | VIA = IO' & A6 & A5' & A4' || via select FDC0-FDCF (always) |
||
36 | || usb host CH376/CH375 select FDD0-FDD1 (always) |
||
37 | | USB = IO' & A6 & A5' & A4 & A3' & A2' & A1' |
||
38 | || |
||
39 | | FDCR = SFDC & RW & PHI2 || cpu read fdc 02 sync |
||
40 | | FDCW0 = SFDC & RW' & PHI2 & MW0' || cpu write fdc 02 sync |
||
41 | | FDCW1 = SFDC & RW' & PHI0 & MW0 || cpu write fdc 00 sync |
||
42 | | DM0R = DMA0 & RW & PHI2 || cpu read dma0 02 sync |
||
43 | | DM0W0 = DMA0 & RW' & PHI2 & MW0' || cpu write dma0 02 sync |
||
44 | | DM0W1 = DMA0 & RW' & PHI0 & MW0 || cpu write dma0 00 sync |
||
45 | | DM1R = DMA1 & RW & PHI2 || cpu read dma1 02 sync |
||
46 | | DM1W0 = DMA1 & RW' & PHI2 & MW0' || cpu write dma1 02 sync |
||
47 | | DM1W1 = DMA1 & RW' & PHI0 & MW0 || cpu write dma1 00 sync |
||
48 | | IORD = FDCR # DM0R # DM1R || cpu access to fdc, dma0, dma1 |
||
49 | | IOWE = FDCW0 # FDCW1 # DM0W0 # DM0W1 # DM1W0 # DM1W1 |
||
50 | | USBR = USB & RW & PHI2 || cpu read usb 02 sync |
||
51 | | USBW0 = USB & RW' & PHI2 & MW0' || cpu write usb 02 sync |
||
52 | | USBW1 = USB & RW' & PHI0 & MW0 || cpu write usb 00 sync |
||
53 | || |
||
54 | || global data bus enable for cpu access |
||
55 | | BUSEN = SCX2 # SFDC # DMA0 # DMA1 # ATA0 # ATA1 # VIA # USB |
||
56 | || |
||
57 | || local shared dma data bus enable for cpu access |
||
58 | | LBUSE = SCX2 # SFDC # DMA0 # DMA1 # ATA0 # ATA1 |
||
59 | || |
||
60 | || output signals |
||
61 | | CS0 = DMA0 || dma0 FD80-FD8F |
||
62 | | CS1 = DMA1 || dma1 FD90-FD9F |
||
63 | | CS2 = VIA || via FDC0-FDCF |
||
64 | | CS3 = SFDC || fdc FD58-FD5F |
||
65 | | CS4 = SFDC || fdc FD58-FD5F (positive) |
||
66 | | CS5 = USB || usb FDD0-FDD1 |
||
67 | | RD = USBR || usb read strobe |
||
68 | | WE = USBW0 # USBW1 || usb write strobe |
||
69 | | IOR = DMAE ?? IORD || i/o read strobe 3-states |
||
70 | | IOW = DMAE ?? IOWE || i/o write strobe 3-states |
||
71 | | DBE = BUSEN & PHI2 || global data bus enable |
||
72 | | GDD = LBUSE || local data bus enable |