Subversion Repositories MB01 Project

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 - 1
||	FILE:	#0203.PLD
2
||	PROJ:	20120601
3
||	PART:	G26CV12-#0203
4
||
5
||	DEV :	GAL26CV12
6
||
7
|| 	DESC:	MASTER DECODER - NEW BUS BOARD
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:HIM,
15
| 25:SW0, 26:SW1, 27:S0, S1:FWE,
16
|| OUTPUT
17
|  19:CEE, 20:CS0, 22:CSR, 23:CSF, 24:CSE
18
|
19
| ACTIVE-LOW: CEE, CS0, CSR, CSF, CSE
20
|
21
|
22
| SIGNATURE: "00203   "
23
|
24
|| MAP
25
|| CS0 - RAM BANK   $00
26
|| CSR - RAM BANK   $F0
27
|| CSF - FLASH BANK $F0
28
|| CSE - EEROM BANK $F0
29
|| CEE - EMU8U BANK $F0
30
||
31
|| 	MAP $00FE00 - $00FFFF IF HIM = 0
32
||	--------------------------------------
33
|| 	SW0	SW1	TYPE		SIGNAL
34
||	0	X	FLASH		CSF
35
||	1	0	EEROM		CSE
36
||	1	1	EMU8U		CEE
37
||
38
|| 	MAP $00FE00 - $00FFFF IF HIM = 1
39
||	--------------------------------------
40
|| 	SW0	SW1	TYPE		SIGNAL
41
||	X	X	RAM BANK $00	CS0
42
||
43
|| 	MAP BANK $F0 : $F00000 - $F0FFFF
44
||	--------------------------------------
45
||	S1	S0	TYPE		SIGNAL
46
||	0	0	RAM bank $F0	CSR
47
||	0	1	FLASH		CSF
48
||	1	0	EEROM		CSE
49
||	1	1	EMU8U		CEE
50
||
51
|| --------------------------------------------------------
52
||
53
|| BANK $00 : $000000 - $00FFFF
54
|  BANK0 = (A23' & A22' & A21' & A20' & A19' & A18' & A17' & A16' & VMA')
55
||
56
|| 32K BLOCK
57
|  RB0 = (BANK0 & A15' )
58
|| 16K BLOCK
59
|  RB1 = (BANK0 & A15  & A14' )
60
|| 8K BLOCK
61
|  RB2 = (BANK0 & A15  & A14  & A13' )
62
|| 4K BLOCK
63
|  RB3 = (BANK0 & A15  & A14  & A13  & A12' )
64
|| 2K BLOCK
65
|  RB4 = (BANK0 & A15  & A14  & A13  & A12  & A11' )
66
|| 1K BLOCK
67
|  RB5 = (BANK0 & A15  & A14  & A13  & A12  & A11  & A10')
68
|| 512 BYTES BLOCK $00FC00 - $00FDFF RESERVED FOR I/O
69
|| RB6 = (BANK0 & A15  & A14  & A13  & A12  & A11  & A10 & A9')
70
||
71
|| LAST 512 BYTES BLOCK ($00FE00 - $00FFFF) ONLY IF HIM=1
72
|  RB7 = (BANK0 & A15  & A14  & A13  & A12  & A11  & A10 & A9 & HIM)
73
||
74
|| BANK $00 RAM SELECT
75
|  CS0A = (RB0 # RB1 # RB2 # RB3 # RB4 # RB5 # RB7)
76
||
77
|| BANK $01 : $010000 - $01FFFF
78
|  BANK1 = (A23' & A22' & A21' & A20' & A19' & A18' & A17' & A16  & VMA')
79
||
80
|| 16K BLOCK $010000 - $013FFF RESERVED FOR EXTERNAL RAM
81
|| BR0 = (BANK1 & A15' & A14')
82
|| 16K BLOCK $014000 - $017FFF
83
|  BR1 = (BANK1 & A15' & A14)
84
|| 32K BLOCK $018000 - $01FFFF
85
|  BR2 = (BANK1 & A15)
86
||
87
|| BANK $01 RAM SELECT
88
|  CS0B = (BR1 # BR2 # BR3)
89
||
90
|| BANK $02 & $03 : $020000 - $03FFFF (128K BLOK)
91
|  CS0C = (A23' & A22' & A21' & A20' & A19' & A18' & A17  & VMA')
92
||
93
|| BANK $03 - $07 : $040000 - $07FFFF (256K BLOK)
94
|  CS0D = (A23' & A22' & A21' & A20' & A19' & A18 & VMA')
95
||
96
|| BANK $00 - $07 RAM SELECTION (512K BLOCK)
97
|  CSR = (CS0A # CS0B # CS0C # CS0D)
98
||
99
|| --------------------------------------------------------
100
||
101
|| BANKF0: $F00000 - $F7FFFF
102
|  BANKF0 = (A23 & A22 & A21 & A20 & A19' & VMA')
103
||
104
|| LAST 512 BYTES BLOCK ON BANK $00 ($00FE00 - $00FFFF) ONLY IF HIM=0
105
|  BR7 = (BANK0 & A15  & A14  & A13  & A12  & A11  & A10 & A9 & HIM')
106
|| BR7 MAPPED TO FLASH IF SW0=0
107
|  BR7F = BR7 & SW0'
108
|| BR7 MAPPED TO EEROM IF SW0=1 & SW1=1
109
|  BR7E = BR7 & SW0 & SW1
110
|| BR7 MAPPED TO EMU8U IF SW0=1 & SW1=0
111
|  BR7U = BR7 & SW0 & SW1'
112
|| BANK $F0 MAPPED TO FLASH IF S0=1 & S1=0
113
|  BF0F = BANKF0 & S0 & S1'
114
|| BANK $F0 MAPPED TO EEROM IF S0=0 & S1=1
115
|  BF0E = BANKF0 & S0' & S1
116
|| BANK $F0 MAPPED TO EMU8U IF S0=1 & S1=1
117
|  BF0U = BANKF0 & S0 & S1
118
|| BANK $F0 MAPPED TO RAM IF S0=0 & S1=0
119
|  BF0R = BANKF0 & S0' & S1'
120
|
121
|  CSR = BF0R
122
|  CSF = (BF0F # BR7F)
123
|  CSE = (BF0E # BR7E)
124
|  CEE = (BF0U # BR7U)