11 CACHE CONTROLLER (CCU)
11-8
Seiko Epson Corporation
S1C33L26 TECHNICAL MANUAL
D[6:4]
ARIC[2:0]: Instruction Cache Area Select Bits
Selects the area to read the instruction from via the instruction cache. (See Table 11.7.2)
D3
Reserved
D[2:0]
ARDC[2:0]: Data Cache Area Select Bits
Selects the area to read the data from via the data cache.
7.2 Selecting Area to Be Cached
Table 11.
ARIC[2:0]/ARDC[2:0]
Areas to be cached
0x7
Area 22 (0x80000000 to 0xffffffff)
0x6
Area 21 (0x40000000 to 0x7fffffff)
0x5
Area 20 (0x20000000 to 0x3fffffff)
0x4
Area 19 (0x10000000 to 0x1fffffff)
0x3
Area 18 (0x0c000000 to 0x0fffffff)
0x2
Area 17 (0x08000000 to 0x0bffffff)
0x1
Areas 15 and 16 (0x04000000 to 0x07ffffff)
0x0
Area 14 (0x03000000 to 0x03ffffff)
(Default: 0x0)
The CCU only caches access to the range of 64MB starting at the top of the selected area. The areas af-
ter the leading 16MB space in Areas 19 to 22 are mirror areas.
Cache Lock Register (CCU_LK)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
Cache Lock
Register
(CCU_LK)
0x302308
(32 bits)
D31–8 –
reserved
–
–
–
0 when being read.
D7
LKPRI7
Interrupt level 7 cache-lock enable
1 Lock
0 Unlock
0
R/W
D6
LKPRI6
Interrupt level 6 cache-lock enable
1 Lock
0 Unlock
0
R/W
D5
LKPRI5
Interrupt level 5 cache-lock enable
1 Lock
0 Unlock
0
R/W
D4
LKPRI4
Interrupt level 4 cache-lock enable
1 Lock
0 Unlock
0
R/W
D3
LKPRI3
Interrupt level 3 cache-lock enable
1 Lock
0 Unlock
0
R/W
D2
LKPRI2
Interrupt level 2 cache-lock enable
1 Lock
0 Unlock
0
R/W
D1
LKPRI1
Interrupt level 1 cache-lock enable
1 Lock
0 Unlock
0
R/W
D0
LKPRI0
Interrupt level 0 cache-lock enable
1 Lock
0 Unlock
0
R/W
D[31:8] Reserved
D[7:0]
LKPRI[7:0]: Interrupt Level [7:0] Cache-Lock Enable Bits
Selects the interrupt levels to lock the cache (the interrupt levels of the interrupt handler routines to dis-
able refilling).
1 (R/W): Lock the cache when IL[2:0] = specified interrupt level
0 (R/W): Release the cache lock when IL[2:0] = specified interrupt level (default)
By setting an LKPRI[7:0] bit to 1, the priority level of interrupts to disabled refilling can be selected.
Each LKPRI[7:0] bit corresponds to an interrupt level, for example, LKPRI0 corresponds to interrupt
level 0 (IL[2:0] = 0) and LKPRI7 corresponds to interrupt level 7 (IL[2:0] = 7). If the interrupt level
in IL[2:0] (set by the interrupt occurred) and an LKPRI[7:0] bit that has been set to 1 are matched, the
cache will be locked after a lapse of several cycles. After this point, the CCU will not refill the cache
until the IL[2:0] value is altered to the interrupt level of an LKPRI[7:0] bit that has been set to 0.
Cache Status Register (CCU_STAT)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
Cache Status
Register
(CCU_STAT)
0x30230c
(32 bits)
D31–4 –
reserved
–
–
–
0 when being read.
D3
ICLKS
Instruction cache lock status
1 Locked
0 Not locked
X
R
D2
DCLKS
Data cache lock status
1 Locked
0 Not locked
X
R
D1
ICS
Instruction cache operating status 1 Active
0 Inactive
X
R
D0
DCS
Data cache operating status
1 Active
0 Inactive
X
R
D[31:4] Reserved