Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | - | 1 | || FILE: #0155.PLD |
2 | || PROJ: 20120600 |
||
3 | || PART: G16V8-#0155 |
||
4 | || |
||
5 | || DEV : GAL16V8 |
||
6 | || |
||
7 | || DESC: DECODER ATA 0/1 |
||
8 | || |
||
9 | | |
||
10 | |GAL16V8 |
||
11 | | |
||
12 | || INPUT |
||
13 | | 1:A0, 2:A1, 3:A2, 4:A3, 5:RW, 6:PHI2, 7:ATA, 8:EN, 9:WA, 11:PHI0, |
||
14 | || OUTPUT |
||
15 | | 12:HWO, 13:HWC, 14:GA, 15:IOR, 16:IOW, 17:CS0, 18:CS1, 19:HRD |
||
16 | | |
||
17 | | ACTIVE-LOW: HWC, HWO, HRD, CS0, CS1, GA, IOR, IOW |
||
18 | | |
||
19 | | PROPERTY:"SIMPLE" |
||
20 | | |
||
21 | | SIGNATURE: "0155 " |
||
22 | | |
||
23 | || -------------------------------------------------------- |
||
24 | || INDIRIZZO I/O ATA |
||
25 | | IOA = (ATA') |
||
26 | || -------------------------------------------------------- |
||
27 | || ATAA => XXX0 - XXX7 |
||
28 | | ATAA = (IOA & A3') |
||
29 | || ATAB => XXXE - XXXF |
||
30 | | ATAB = (IOA & A3 & A2 & A1) |
||
31 | || REGISTRO HIGH DATA ATA => XXXC |
||
32 | | HDA0 = (IOA & A3 & A2 & A1' & A0') |
||
33 | || REGISTRO DATI 16 BIT ATA => XXX0 |
||
34 | | RDR0 = (ATAA & A2' & A1' & A0') |
||
35 | || -------------------------------------------------------- |
||
36 | || CONTROLLO ATA |
||
37 | || CS0 => XXX0 - XXX7 |
||
38 | | CS0 = ATAA |
||
39 | || CS1 => XXXE - XXXF |
||
40 | | CS1 = ATAB |
||
41 | | ATAX = (ATAA # ATAB) |
||
42 | | GA = ATAX |
||
43 | || -------------------------------------------------------- |
||
44 | || SEGNALI ATA IOR, IOW |
||
45 | || IOR, IOW SINCRONIZZATI CON PHI2 (WA = 1) |
||
46 | | RD1 = (ATAX & WA & RW & PHI2) |
||
47 | | WR1 = (ATAX & WA & RW' & PHI0) |
||
48 | || IOR, IOW SINCRONIZZATI CON EN (WA = 0) |
||
49 | | RD2 = (ATAX & WA' & RW & EN) |
||
50 | | WR2 = (ATAX & WA' & RW' & EN) |
||
51 | | IOR = (RD1 # RD2) |
||
52 | | IOW = (WR1 # WR2) |
||
53 | || -------------------------------------------------------- |
||
54 | || CONTROLLO REGISTRO HIGH ATA |
||
55 | || HWC => WRITE XXXC (comando clock) |
||
56 | | HWC = (HDA0 & RW' & PHI0) |
||
57 | || HRD => READ XXXC |
||
58 | | HRD = (HDA0 & RW) |
||
59 | || HWO => WRITE REG. ATA XXX0 (8 bit alti) |
||
60 | | HWO = (RDR0 & RW') |