Subversion Repositories MB01 Project

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 - 1
||	FILE:	#0168.PLD
2
||	PROJ:	20170501
3
||		FD-02 FDC/ATA/DMA BOARD
4
||
5
||	PART:	G26CV12-#0168
6
||
7
||	DEV :	GAL26CV12
8
||
9
|| 	DESC:	ATA0 CONTROL
10
||
11
|
12
|GAL26CV12
13
|
14
|| INPUT
15
|  1:A0, 2:A1, 3:A2, 4:A3, 5:A4, 6:A5, 8:A6, 9:RW, 10:PHI2,
16
| 11:IO, 12:DMA, 13:PHI0, 14:IOR, 15:IOW, 28:MW0,
17
|| OUTPUT
18
|  16:WRH, 17:WRL, 18:WRD, 19:RDH, 20:WE, 22:RDD, 23:GA,
19
|  24:RDL, 25:RD, 26:CS0, 27:CS1
20
|
21
| ACTIVE-LOW: CS0, CS1, WRH, WRL, WRD, RDH, RDL, RDD, RD, WE, GA
22
|
23
|
24
| SIGNATURE: "0168    "
25
|
26
|| --------------------------------------------------------
27
|| common signals when dma disabled (DMA = 1 => cpu access)
28
||
29
| ATA  = DMA & IO' & A6' & A5 & A4'		|| ata0 => FDA0-FDAF
30
|| ATA  = DMA & IO' & A6' & A5 & A4		|| ata1 => FDB0-FDBF
31
| S01  = ATA & A3' & A2' & A1' & A0		|| FDB1
32
| S02  = ATA & A3' & A2' & A1			|| FDB2-FDB3
33
| S04  = ATA & A3' & A2				|| FDB4-FDB7
34
| S08  = ATA & A3  & A2' & A1' & A0'		|| FDB1
35
| S0A  = ATA & A3  & A2' & A1  & A0'		|| FDBA
36
| S0B  = ATA & A3  & A2' & A1  & A0		|| FDBB
37
| S0E  = ATA & A3  & A2  & A1  & A0'		|| FDBE
38
| SATA = (S01 # S02 # S04 # S0E)		|| valid ata registers
39
| CRD  = SATA & RW  & PHI2			|| cpu read ata
40
| CWR0 = SATA & RW' & PHI2 & MW0		|| cpu write ata (02)
41
| CWR1 = SATA & RW' & PHI0 & MW0'		|| cpu write ata (00)
42
| CWE  = (CWR0 # CWR1)				|| cpu write ata
43
||
44
|| signals when dma0 access ata
45
| DRD  = DMA' & IOR'				|| dma read  ata port 0
46
| DWR  = DMA' & IOW'				|| dma write ata port 0
47
||
48
|| output signals
49
| WRL  = S0A & RW' & PHI0			|| cpu write low  latch
50
| WRH  = S0B & RW' & PHI0			|| cpu write high latch
51
| RDL  = S0A & RW  & PHI2			|| cpu read  low  latch
52
| RDH  = S0B & RW  & PHI2			|| cpu read  high latch
53
| WRD  = S08 & RW' & PHI2			|| cpu dummy write latch
54
| RDD  = S08 & RW  & PHI2			|| cpu dummy read  latch
55
| RD   = CRD # DRD
56
| WE   = CWE # DWR
57
| GA   = (SATA # S0A # S0A)			|| enable internal data bus
58
| CS0  = (S01 # S02 # S04 # S08) & PHI2
59
| CS1  = S0E & PHI2