Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | - | 1 | || FILE: #0053.PLD |
2 | || PROJ: 20120601 |
||
3 | || PART: G26CV12-#0053 |
||
4 | || |
||
5 | || DEV : GAL26CV12 |
||
6 | || |
||
7 | || DESC: MASTER DECODER |
||
8 | || |
||
9 | | |
||
10 | |GAL26CV12 |
||
11 | | |
||
12 | || INPUT |
||
13 | | 1:A9, 2:A10, 3:A11, 4:A12, 5:A13, 6:A14, 8:A15, 9:A16, 10:A17, |
||
14 | | 11:A18, 12:A19, 13:A20, 14:A21, 15:A22, 16:A23, 17:VMA, 18:RW, |
||
15 | | 24:HIM, 25:X0E, 26:X1E, 27:XFE, 28:FWE, |
||
16 | || OUTPUT |
||
17 | | 19:FE, 20:CS0, 22:ME, 23:CSF |
||
18 | | |
||
19 | | ACTIVE-LOW: FE, CS0, ME, CSF |
||
20 | | |
||
21 | | |
||
22 | | SIGNATURE: "0053L " |
||
23 | | |
||
24 | || VERSONE DEBUG/LOADER |
||
25 | | |
||
26 | || -------------------------------------------------------- |
||
27 | || HIM -> MAPPA AREA 00FE00 - 00FFFF IN RAM INVECE CHE IN FLASH |
||
28 | || X0E -> ABILITA EXTERN MEMORY (/CX0) IN BANCO 1 AREA 010000 - 011FFF (8K) |
||
29 | || X1E -> ABILITA EXTERN MEMORY (/CX1) IN BANCO 1 AREA 012000 - 013FFF (8K) |
||
30 | || XFE -> ABILITA FLASH MEMORY BANCHI F0/F7 AREA F00000 - F7FFFF |
||
31 | || FWE -> ABILITA WRITE FLASH MEMORY |
||
32 | || -------------------------------------------------------- |
||
33 | || |
||
34 | || /FE -> ABILITA FLASH MEMORY F00000 - F7FFFF (512K) |
||
35 | || /ME -> ABILITA BANCHI RAM DA 4MB (ESCLUSO CSX, BK0) |
||
36 | || BLOCCO F80000 - FFFFFF ABILITATO SE: |
||
37 | || HIM = 1 AND XFE = 1 AND RW = 0 |
||
38 | || HIM = 0 AND RW = 1 |
||
39 | || /CS0 -> PRIMO BLOCCO 128K IN 00000 - 01FFFF (ESCLUSO IO) |
||
40 | || /CSF -> BLOCCO FLASH IN F80000 - FFFFFF (512K) |
||
41 | || READ ONLY IF HIM = 1 AND XFE = 1 |
||
42 | || MAPPA 00FE00 - 00FFFF IN F8FE00 - F8FFFF SE HIM=0 E RW=1 |
||
43 | || -------------------------------------------------------- |
||
44 | || |
||
45 | || ABILITAZIONE RAM RANGE 020000 - FFFFFF |
||
46 | || B4MH -> BLOCCO 4MB 800000 - BFFFFF |
||
47 | | B4MH = (VMA' & A23 & A22' ) |
||
48 | || B2MH -> BLOCCO 2MB C00000 - DFFFFF |
||
49 | | B2MH = (VMA' & A23 & A22 & A21' ) |
||
50 | || B1MH -> BLOCCO 1MB E00000 - EFFFFF |
||
51 | | B1MH = (VMA' & A23 & A22 & A21 & A20' ) |
||
52 | || B5KA -> BLOCCO 512KB F00000 - F7FFFF (RAM SOLO SE XFE=0) |
||
53 | | B5KA = (VMA' & A23 & A22 & A21 & A20 & A19' & XFE') |
||
54 | || B5KB -> BLOCCO 512KB F00000 - F7FFFF (RAM SOLO SE XFE=1, FWE=0, RW=0) |
||
55 | | B5KB = (VMA' & A23 & A22 & A21 & A20 & A19' & XFE & FWE' & RW') |
||
56 | | B6K = (A23 & A22 & A21 & A20 & A19 & VMA') |
||
57 | | B6KR = (B6K & HIM & RW) |
||
58 | | B6KW = (B6K & HIM' & RW') |
||
59 | | B6RM = (B6KR # B6KW) |
||
60 | || |
||
61 | || B4ML -> BLOCCO 4MB 400000 - 7FFFFF |
||
62 | | B4ML = (VMA' & A23' & A22 ) |
||
63 | || B2ML -> BLOCCO 2MB 200000 - 3FFFFF |
||
64 | | B2ML = (VMA' & A23' & A22' & A21 ) |
||
65 | || B1ML -> BLOCCO 1MB 100000 - 1FFFFF |
||
66 | | B1ML = (VMA' & A23' & A22' & A21' & A20 ) |
||
67 | || B5KL -> BLOCCO 512KB 080000 - 0FFFFF |
||
68 | | B5KL = (VMA' & A23' & A22' & A21' & A20' & A19 ) |
||
69 | || |
||
70 | || /ME -> ABILITAZIONE RAM RANGE 080000 - F7FFFF |
||
71 | | MXH = (B4MH # B2MH # B1MH # B5KA # B5KB) |
||
72 | | MXL = (B4ML # B2ML # B1ML # B5KL) |
||
73 | | ME = (MXL # MXH # B6RM) |
||
74 | || |
||
75 | || -------------------------------------------------------- |
||
76 | || |
||
77 | | BANK0 = (A23' & A22' & A21' & A20' & A19' & A18' & A17' & A16' & VMA') |
||
78 | | BANK1 = (A23' & A22' & A21' & A20' & A19' & A18' & A17' & A16 & VMA') |
||
79 | || -------------------------------------------------------- |
||
80 | || |
||
81 | || B0M -> ABILITAZIONE RAM RANGE 000000 - 00FFFF (BANCO 0) |
||
82 | || |
||
83 | || BLOCCO 32K |
||
84 | | RB0 = (BANK0 & A15' ) |
||
85 | || BLOCCO 16K |
||
86 | | RB1 = (BANK0 & A15 & A14' ) |
||
87 | || BLOCCO 8K |
||
88 | | RB2 = (BANK0 & A15 & A14 & A13' ) |
||
89 | || BLOCCO 4K |
||
90 | | RB3 = (BANK0 & A15 & A14 & A13 & A12' ) |
||
91 | || BLOCCO 2K |
||
92 | | RB4 = (BANK0 & A15 & A14 & A13 & A12 & A11' ) |
||
93 | || BLOCCO 1K |
||
94 | | RB5 = (BANK0 & A15 & A14 & A13 & A12 & A11 & A10') |
||
95 | || ULTIMO BLOCCO 512B (00FE00 - 00FFFF) |
||
96 | | RB7 = (BANK0 & A15 & A14 & A13 & A12 & A11 & A10 & A9) |
||
97 | || RB7A -> RANGE 00FE00 - 00FFFF IN RAM SOLO SE HIM=1 |
||
98 | | RB7A = (RB7 & HIM) |
||
99 | || RB7B -> RANGE 00FE00 - 00FFFF IN RAM SOLO SE RW=0 |
||
100 | | RB7B = (RB7 & RW') |
||
101 | || |
||
102 | | B0M = (RB0 # RB1 # RB2 # RB3 # RB4 # RB5 # RB7A # RB7B) |
||
103 | || -------------------------------------------------------- |
||
104 | || |
||
105 | || B1M -> ABILITAZIONE RAM RANGE 010000 - 01FFFF (BANCO 1) |
||
106 | || |
||
107 | || B32KH -> BLOCCO 32KB 018000 - 01FFFF |
||
108 | | B32KH = (BANK1 & A15) |
||
109 | || B16KH -> BLOCCO 16KB 014000 - 017FFF |
||
110 | | B16KH = (BANK1 & A15' & A14) |
||
111 | || B08KL -> BLOCCO 8KB 010000 - 011FFF |
||
112 | | B08KL = (BANK1 & A15' & A14' & A13' & X0E') |
||
113 | || B08KH -> BLOCCO 8KB 012000 - 013FFF |
||
114 | | B08KH = (BANK1 & A15' & A14' & A13 & X1E') |
||
115 | || |
||
116 | | B1M = (B32KH # B16KH # B08KL # B08KH) |
||
117 | || -------------------------------------------------------- |
||
118 | || |
||
119 | || /CS0 -> ABILITAZIONE RAM RANGE 000000 - 01FFFF (BANCHI 0 & 1) |
||
120 | | CS0 = (B0M # B1M) |
||
121 | || -------------------------------------------------------- |
||
122 | || |
||
123 | || FS0 -> ABILITA FLASH RANGE F00000 - F7FFFF SOLO SE XFE=1 |
||
124 | || FS0R -> ABILITA FLASH RANGE F00000 - F7FFFF SOLO LETTURA |
||
125 | | FS0R = (A23 & A22 & A21 & A20 & A19' & VMA' & RW & XFE) |
||
126 | || FS0W -> ABILITA FLASH RANGE F00000 - F7FFFF SOLO SCRITTURA (FWE=1) |
||
127 | | FS0W = (A23 & A22 & A21 & A20 & A19' & VMA' & RW' & XFE & FWE) |
||
128 | || |
||
129 | || /FE -> ABILITAZIONE FLASH RANGE F00000 - F7FFFF |
||
130 | | FE = (FS0R # FS0W) |
||
131 | || -------------------------------------------------------- |
||
132 | || |
||
133 | || FS1 -> ABILITA FLASH RANGE F80000 - FFFFFF |
||
134 | || FS1R -> ABILITA FLASH RANGE F80000 - FFFFFF SOLO LETTURA |
||
135 | | FS1R = (A23 & A22 & A21 & A20 & A19 & VMA' & RW & HIM') |
||
136 | || FS1W -> ABILITA FLASH RANGE F80000 - FFFFFF SOLO SCRITTURA (FWE=1) |
||
137 | | FS1W = (A23 & A22 & A21 & A20 & A19 & VMA' & RW' & FWE & HIM) |
||
138 | || FS2R -> MAPPA RANGE 00FE00 - 00FFFF IN F8FE00 - F8FFFF (HIM=0, RW=1) |
||
139 | | FS2R = (RB7 & RW & HIM') |
||
140 | || |
||
141 | || /CSF -> ABILITAZIONE FLASH RANGE F80000 - FFFFFF |
||
142 | | CSF = (FS1R # FS2R # FS1W) |