Section 4 Burst Buffer Controller Module: 4.1 Overview and General Description
Section 4 Burst Buffer Controller Module: 4.1 Overview and General Description
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-1
Sequencer
Address
U-bus
Slave
Machine
IMPU
Registers
Address
Buffer 2
Addresses
U-bus
Address
32
IMPU
32
Compressed
Address
Decompressor
Control
Logic
Data
1x32
Buffer
32
Decomp.
RAM
4 KB
BTB
ICDU
U-bus Data
32
U-bus
Decompressed
Data
32
Master
Machine
BIU
BBC
U-bus Controls
L/U Interface
SIU Interface
MOTOROLA
4-2
MOTOROLA
4-3
OFF. Switch between compressed and non-compressed user application software parts is possible.
adaptive vocabularies scheme is supported; each user application can have its
own optimum vocabularies.
Special branch target buffer (BTB) to improve system performance
[Link] DECRAM Key Features
Four Kbytes RAM for decompression vocabulary tables
Two clock read/write access U-bus general purpose RAM
Four clock load/store access from the L-bus
Byte, half-word (16-bit) or word (32-bit) read/write accesses and fetches
Special access protection functions
Low power standby operation for data retention
4.3 Class Based Compression Model Main Principles
4.3.1 Compression Model Features
Implemented for PowerPC architecture
Up to 50% code size reduction
No need for address translation tables
No changes in the CPU architecture
Compression is done off line by a special compressor tool, using Instruction
classes based algorithm optimized for PowerPC instructions set
Decompression is done at run-time by special hardware
Optimized for cache-less systems:
Highly effective in system solutions for low cache-hit ratio environment and for
systems with fast embedded program memory
Deterministic program execution time
No performance penalty during sequential program flow execution
Minimal performance penalty due to change of program flow execution
Switch between compressed and non-compressed user application sections is
possible. (Compressed subroutine can call non-compressed one and be called
from non-compressed portion of user application)
Adaptive vocabularies, generated for particular application
Slight changes in the core and existing RISC development tools compilers,
simulators, manually coded libraries
Compressed address space is up to one Gbyte
Branch displacement from its target:
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-4
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-5
COMPRESSED INSTRUCTION
UNCOMPRESSED INSTRUCTION
31
0
1.
0
15
31
15
31
2.
3.
or
31
0
4.
Legend:
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-6
Compressed
Instruction
Address
27
Base Address
31
IP
x
x+4
Memory
Layout
2*IP Bits
x+8
x+c
- Compressed Instruction
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-7
Program
Program
Executable
Executable
Non-compressed
Compressed
Compressor
Tool
Compiler/
Linker
Classes
Classes
Generator
Vocabulary
Vocabulary
Generator
= Change of Flow
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-8
Compressed
Instructions
Memory
De compressor
Bit-Aligned COF
Address
Vocabulary
Embedded
Non-Compressed
Instruction Code
CPU
Compressed
Instruction
Code
Classes (DCCR)
Registers
Compressed Space
Next Instruction
Address
ICDU
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-9
is set, the mode is Decompression ON. If it is not set, the mode is Decompression
OFF.
[Link] Decompression OFF Mode
In this mode the BIU module transfers fetch accesses from the RCPU to the U-bus.
When a new access is issued by the RCPU, it is transferred in parallel to both IMPU
and BIU. The IMPU compares the address of the access to its region programming.
The BIU checks if the access can be immediately transferred to the U-bus, otherwise
it requests the U-bus for the next clock.
The BIU may be programmed for burstable or non-burstable access. If the BIU is programmed for burstable access, U-bus address phase transaction is accompanied by
the burst request attribute. If burstable access is allowed by the U-bus slave, the BIU
continues current access as burstable, otherwise current access is executed as a single access. If any protection violation is detected by the IMPU, the current U-bus
access is aborted by the BIU and exception is signaled to the RCPU.
Show cycle, program trace and debug port access attributes accompanying the RCPU
access are forwarded by the BIU along with the U-bus access.
[Link] Decompression ON Mode
In this mode the RCPU sends the two-bit aligned change of flow address to the BBC.
The BIU transfers word portion of the address to the U-bus. The BBC continues to prefetch the data from the consequent memory addresses regardless RCPU requests in
order to supply data to the ICDU.
The data coming from the instruction memory is not provided directly to the RCPU, but
loaded into the ICDU for decompression. Decompressed instruction code together
with next instruction address are provided to the RCPU whenever it requires another
instruction fetch.
All addresses issued by the BIU to the U-bus are transferred in parallel to the IMPU.
The IMPU compares the address of the access to its region programming. If any protection violation is detected by the IMPU, the current U-bus access is aborted by the
BIU and an exception is signaled to the RCPU.
Show cycle and program trace access attributes accompanying the COF RCPU
access only are forwarded by the BIU along with the U-bus access. Additional information about IP part of compressed instruction address is provided on U-bus data
bus. Refer to [Link] Show Cycles in Decompression ON Mode for more details.
In this mode the ICDU DECRAM is used as decompressor vocabulary storage and
may not be used as a general purpose RAM.
[Link] Show Cycles in Decompression ON Mode
In the case of Decompression ON mode the instruction address consists of instruction base address and four bits of the instruction bit pointer. In order to provide the
capability to show full instruction address, including instruction bit pointer, on the exterMPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-10
nal bus, show cycles information is presented not only on the address bus, but also on
some bits of the data bus:
ADDR[0:29] - show the value of the base address of compressed instruction
(word pointer into the memory)
DATA[0] - shows in which mode the MPC565 / MPC566 is operating
0 = Decompression OFF mode.
1 = Decompression ON mode.
DATA[1:4] - represent an instruction bit pointer within the word.
NOTE
The BBCMCR[DECOMP_SC_EN] bit determines if the data portion
(DATA[0:4]) of the instruction show cycle is driven or not, regardless
of decompression mode (BBCMCR[EN_COMP] bit)
If the BBCMCR[DECOMP_SC_EN] bit is set the show cycle may be delayed by one
clock by the USIU. This happens if the show cycle occurs after external device read
cycle.
4.4.2 Burst Operation of the BBC
The BBC may initiate and handle burst accesses on the U-bus. The BBCMCR[BE] bit
determines whether the BBC operates burst cycles or not. Burst requests are enabled
when the BE bit is set. BBC handles non wrap-around bursts with up to 4 data beats
on internal U-bus. Refer to [Link] BBC Module Configuration Register BBCMCR.
NOTES
The burst operation in the MPC565 / MPC566 is useful if a user system implements burstable memory devices on external bus.
Otherwise the mode will cause the MPC565 / MPC566 performance
degradation.
When the RCPU runs in serialized mode its recommended to disable
bursts by the BBC to speed up MPC565 / MPC566 operation
Burst operation in Decompression ON and Debug mode is disabled regardless of BBCMCR[BE] bit setting.
4.4.3 Access Violation Detection
Instruction memory protection is assigned on a regional basis. Default operation of
IMPU is done on a global region. The IMPU has control registers which contain the
following information: region protection on/off, region base address, size and access
permissions.
Protection logic is activated only if RCPU MSR[IR] is set.
During each fetch request from the RCPU core to instruction memory, the address is
compared to value in region base address of enabled regions. Any address, matching
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-11
the specific region within its appropriate size as defined in the region attribute register,
sets a match indication.
When more than one match indication occurs, the effective region is the region with
the highest priority. Priority is determined by region number. The lowest region number
has highest priority. The global region has lowest priority.
When no match happens, the effective region is the global region.
The region attribute registers contain the region protection fields (PP, G, CMPR). The
protection fields are compared to address attributes issued by the RCPU. If the access
is permitted the address is passed to BIU and further to U-bus.
Whenever IMPU detects access violation, the following actions are taken:
1. The request, forwarded to the BIU is canceled
2. The RCPU is informed that the requested address caused an access violation
by exception request.
However, if the required address contains show cycle attribute, the BIU delivers the
access onto the U-bus to obtain program tracking
The exception vector (address) that the RCPU issues for this exception has a 0x1300
offset in PowerPC exception vector table. The access violation status is provided in
RCPU SRR1 special purpose register. The encoding of the status bits is as follows:
SRR1 [1] = 0
SRR1 [3] = Guarded storage
SRR1 [4] = Protected storage or Compression violation
SRR1 [10] = 0
Only one bit is set at a time.
4.4.4 Slave Operation
The BBC is operating as a U-bus slave when the IMPU registers, decompressor RAM
(DECRAM) or ICDU registers are accessed from the U-bus. The IMPU registers programming is done using PowerPC mtspr/mfspr instructions. The ICDU configuration
registers (DCCRs) (see Table 4-10) and DECRAM are mapped into the chip memory
space and accessed by PowerPC load/store instructions. DCCR and DECRAM
accesses may be disabled by BBCMCR[DCAE] bit. Refer to [Link] BBC Module
Configuration Register BBCMCR.
4.4.5 Reset Behavior
Upon soft reset the BBC switches to an idle state and all pending U-bus accesses
are ignored, ICDU internal queue is flushed and IMPU switches to a disabled state
where all memory space is accessible for both user and supervisor.
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-12
Hard reset sets some of the fields and bits in the BBC configuration registers to their
default reset state. Some bits in BBCMCR register get their values from the Reset
Configuration Word.
4.4.6 Debug Operation Mode
When the MPC565 / MPC566 RCPU core is under debug (in debug mode) the BBC
initiates not-burstable access to the debug port and ICDU is bypassed, (i.e., instructions, transmitted to debug port must be non-compressed, regardless of operational
mode).
4.5 Exception Table Relocation (ETR)
4.5.1 ETR Overview
The BBC is able to relocate the exception addresses of the RCPU. The relocation feature always maps the exception addresses into the internal memory space of the
MPC565 / MPC566 (See Figure 4-6). This feature is important in multi MPC565 /
MPC566 system, where although the memory map of some of them was shifted not to
be on the lower 4 MB, their RCPU cores can still access their own exception handlers
in their internal flash in spite of RCPU issues the same exception addresses.
The relocation also saves the wasted space between the exception table entries in the
case where each exception entry contained only a branch instruction to the exception
routine, which is located elsewhere.
Exception vector table may be programmed to be located in four places in MPC565 /
MPC566 internal memory space.
The exception table relocation is supported in both operation modes Decompression
ON and Decompression OFF.
The RESET routine vector is relocated differently in Decompression ON and in
Decompression OFF modes. This feature may be used by software code compression tool to guarantee that a vocabulary table initialization routine always executed
before application code running.
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-13
0
100
Decompression
ON
Y
branch to...
branch to...
10
branch to...
branch to...
branch to...
200
branch to...
branch to...
300
branch to...
branch to...
branch to...
500
branch to...
B8
600
Exception Table
branch to...
400
branch to...
700
branch to...
1F00
1FFC
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-14
NOTES
The eight Kbytes allocated for the original PowerPC exception table
can be almost fully utilized. This is possible if the MPC565 / MPC566
system memory is NOT mapped to the exception address space,
(i.e., the addresses 0xFFF0_0000 to 0xFFF0_1FFF are not used).
In such case, these eight Kbytes can fully be utilized by the compiler,
except for the lower 64 words (256 bytes) which are dedicated for the
branch instructions.
If the RCPU, while executing an exception, issues any address
between two successive exception entries (e.g., 0xFFF0_0104),
then the operation of the MPC565 / MPC566 is not guaranteed if the
ETR is enabled.
In order to activate the exception table relocation feature, the following steps are
required:
1. Set the RCPU MSR[IP] bit
2. Set the BBCMCR[ETRE] bit. See [Link] BBC Module Configuration Register BBCMCR for programming details.
3. Program the BBCMCR[OERC] bits to determine the exception branch table location in the memory, according the description in Table 4-2.
The ETR feature can be activated from reset, by setting corresponded bits in the reset
configuration word.
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-15
System Reset
EN_COMP= 1
Page_Offset+0x081
Page_Offset+0x0B8
0xFFF0_0100
Machine Check
0xFFF0 0200
Page_Offset+0x010
Data Storage
0xFFF0 0300
Page_Offset+0x018
Alignment
0xFFF0 0600
Page_Offset+0x030
Program
0xFFF0 0700
Page_Offset+0x038
0xFFF0 0800
Page_Offset+0x040
Decrementer
0xFFF0 0900
Page_Offset+0x048
System Call
0xFFF0 0C00
Page_Offset+0x060
Trace
0xFFF0 0D00
Page_Offset+0x068
0xFFF0 0E00
Page_Offset+0x070
Implementation Dependent
Software Emulation
0xFFF0 1000
Page_Offset+0x080
Implementation Dependent
Instruction Storage
Protection Error
0xFFF0 1300
Page_Offset+0x098
Implementation Dependent
Data Storage Protection
Error
0xFFF0 1400
Page_Offset+0x0A0
Implementation Dependent
Data Breakpoint
0xFFF0 1C00
Page_Offset+0x0E0
Implementation Dependent
Instruction Breakpoint
0x0FFF 1D00
Page_Offset+0x0E8
Implementation Dependent
Maskable External
Breakpoint
0xFFF0 1E00
Page_Offset+0x0F0
Non-Maskable External
Breakpoint
0xFFF0 1F00
Page_Offset+0x0F8
NOTES:
1. Refer to Table 4-2.
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-16
Page Offset
Comments
64 Kbytes2
512 Kbytes
L-bus (CALRAM)
Address
NOTES:
1. ISB offset is equal 4M * ISB (0x400000 * ISB), where ISB is value of bit field in USIU IMMR register.
2. Note that this offset was 32 Kbytes on the MPC555 due to the smaller flash block size (32 Kbytes) than the
MPC565 (64 Kbytes).
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-17
NOTES
If both the enhanced external interrupt relocation and exception table
relocation functions are activated simultaneously, the final external
interrupt vector is defined by EEIR mechanism.
When the EEIR function is activated, any branch instruction execution with the 0xFFF0_0500 target address may cause unpredictable
program execution.
0x500
External
Interrupt
Programmable
Base
Relocation Table
AddressAddress
Register
Base
Interrupt
Vector
Offset
000
(EIBADR)
External Interrupt
Vector Relocator
Translated Vectors
Interrupt code
from interrupt
controller
MOTOROLA
4-18
U-bus Address
U-bus Data
Slave BIU
ICDU
DECRAM
VT1 Data
VT1 Address
VT2 Data
VT2 Address
MOTOROLA
4-19
or read/write data operations. The base address of the DECRAM is 0x2F 8000. The
proper access rights to the DECRAM array may be defined by programming the R, D,
and S bits of BBCMCR register:
Read/write or read only
Instruction/data or data only
Supervisor/user or supervisor only
External access mode of the RAM is activated by the BBCMCR[DCAE] bit setting (see
[Link] BBC Module Configuration Register BBCMCR). In this mode the DECRAM
can be accessed from U-bus and cannot be accessed by the ICDU logic.
In this mode:
The DECRAM supports word, half-word and byte operations.
The DECRAM is emulated to be 32 bit wide. For example: load access from offset
0 in the DECRAM will deliver the concatenation of the first word in each of the DECRAM banks when RAM 1 contains the 16 LSB of the word and RAM 2 contains
the 16 MSB.
Load accesses at any width are supplied with 32 bits of valid data.
The DECRAM can be accessed while the MPC565 / MPC566 is in Decompression ON mode, but all fetched instructions should be in the global bypass format.
The DECRAM communicates with the U-bus pipeline but does not support pipelined accesses to itself. If a store operation is second in the U-bus pipe, the store
is carried out immediately and the U-bus acknowledgment is performed when the
previous transaction in the pipe completes.
Burst access is not supported.
[Link] Memory Protection Violations
The DECRAM module does not acknowledge U-bus accesses that violate the configuration defined in the BBCMCR. This causes the machine check exception for
internal RCPU or error condition for MPC565 / MPC566 external master.
[Link] DECRAM StandBy Operation Mode
The bus interface and DECRAM control logic are powered by VDD. The memory
array(s) is supplied by a separate power pin (VDDSRAM3). If main power is shut off,
VDDSRAM3 may subsequently be lowered for purposes of low voltage data retention.
When the DECRAM array is powered by the VDDSRAM3 pin, access to the RAM
array is blocked. The application software may use VSRMCR[LVDRS] bit value to
determine if the content of DECRAM is valid (See 8.12.4 VDDSRAM Control Register (VSRMCR) for details).
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-20
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-21
.
BTE Memory Array
Hit
VDC
Tag Register/Comparator
Next Address
Hit
VDC
Tag Register/Comparator
Next Address
Hit
VDC
Hit
VDC
Data Buffers
V
Hit
VDC
Data Buffers
Tag Register/Comparator
Next Address
Data Buffers
Tag Register/Comparator
Next Address
Data Buffers
Tag Register/Comparator
Next Address
Data Buffers
Hit
VDC
Tag Register/Comparator
Next Address
Data Buffers
Hit
VDC
Tag Register/Comparator
Next Address
Data Buffers
Hit
VDC
Data Buffers
BTE Hit
BCME Memory Array
BCME Hit
VDC
Data Buffers
BTB Hit
MOTOROLA
4-22
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-23
Address for
External
Master
Access (Hex)
528
0x2100
IMPU Global Region Attribute Register (MI_GRA). See Table 4-8 for bits
descriptions.
529
0x2300
External Interrupt Relocation Table Base Address Register (EIBADR). See Table
4-9 for bits descriptions.
560
0x2110
BBC Module Configuration Register (BBCMCR). See Table 4-4 for bits descriptions
784
0x2180
IMPU Region Base Address Register 0 (MI_RBA0). See Table 4-5 for bits
descriptions.
785
0x2380
IMPU Region Base Address Register 1 (MI_RBA1). See Table 4-5 for bits
descriptions.
786
0x2580
IMPU Region Base Address Register 2 (MI_RBA2). See Table 4-5 for bits
descriptions.
787
0x2780
IMPU Region Base Address Register 3 (MI_RBA3). See Table 4-5 for bits
descriptions.
816
0x2190
IMPU Region Attribute Register 0 (MI_RA0). See Table 4-6 for bits descriptions.
817
0x2390
IMPU Region Attribute Register 1 (MI_RA1). See Table 4-6 for bits descriptions.
818
0x2590
IMPU Region Attribute Register 2 (MI_RA2). See Table 4-6 for bits descriptions.
819
0x2790
IMPU Region Attribute Register 3(MI_RA3). See Table 4-6 for bits descriptions.
Register Name
All the above registers may be accessed in the supervisor mode only. An exception is
internally generated by the RCPU if there is an attempt to access them in user mode.
An external master receives a transfer error acknowledge when attempting to access
a register in user mode.
All the registers are reset using HRESET. SRESET alone has no effect on them.
[Link] DECRAM and DCCR Block
The DECRAM occupies addresses from 0x2F8000 to 0x2F8FFF. The DCCR block
occupies addresses from 0x2FA004 to 0x2FA03F.
Address for non-implemented memory blocks is not acknowledged, and causes an
error condition.
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-24
SPR 560
9
10
TEST
11
12
13
14
15
RESERVED
HRESET
0
16
17
18
19
20
21
RESERVED
BE
ETRE
EIR
EN_
COMP2
ID1(19)
ID(21)
22
23
EXC_ DECOMP
COMP2 _SC_EN2
24
25
26
27
OERC[0:1]
BTEE
BCMEE
ID(24:25)
28
30
LSB
31
DCA
E
TST
29
RESERVED
HRESET
0
ID(22)
ID(21)
NOTES:
1. ID - gets value of corresponding bit of Reset Configuration Word
2. Available only on the MPC566.
Name
Description
Read Only For any attempt to write to the DECRAM array while R is set, is terminated with an
error. This causes a machine check exception for RCPU.
0 = DECRAM array is Readable and Writable.
1 = DECRAM array is Read only.
Data Only The DECRAM array may be used for Instructions and Data or for Data storage only.
Any attempt to load instructions from the DCRAM array, while D is set, is terminated with an error
This causes a machine check exception for the RCPU.
0 = DECRAM array holds Data and/or Instruction.
1 = DECRAM array holds Data only.
Supervisor Only.
When the bit set (S = 1), only a Supervisor program may access the DECRAM. If a Supervisor
program is accessing the array, normal read/write operation will occur. If a User program is
attempting to access the array, the access will be terminated with an error This causes a
machine check exception for the RCPU.
If S = 0, the RAM array is placed in Unrestricted Space and access by both Supervisor and User
programs is allowed.
3:7
TEST
8:17
Reserved
18
BE
Burst Enable
0 = Burst access is disabled.
1 = Burst access is enabled.
19
ETRE
The bits can be set in Factory test mode only, User should treat the bits as reserved
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-25
201
21
Name
Description
EIR
Enhanced External Interrupt Relocation Enable This bit activates the external interrupt relocation table mechanism. This bit is independent from the value of ETR bit, but if EIR and ETR are
enabled, the mapping of external interrupt will be via EIR.
0 = EIR function is disabled.
1 = EIR function is active.
EN_
Enable COMPression This bit enables the operation of the MPC565 / MPC566 in Compression ON mode. The default state is disabled. This bit is read only.
0 = Decompression ON mode is disabled. The MPC565 / MPC566 operates only in Decompression OFF mode.
1 = Decompression ON mode is enabled. The MPC565 / MPC566 may operates with both Decompression ON and Decompression OFF modes.
COMP2
22
EXC_
COMP2
Exception Compression This bit determines the operation of the MPC565 / MPC566 with
exceptions. If this bit is set, the MPC565 / MPC566 assumes that the all exception routines code
is compressed; otherwise it is assumed that all exception routines code is not compressed. The
reset value is determined by reset configuration word bit #22.
0 = The MPC565 / MPC566 assumes that exception routines are non-compressed
1 = The MPC565 / MPC566 assumes that ALL exception routines are compressed.
This bit effects only when EN_COMP bit is set.
DECOMPression Show Cycle ENable This bit determines the way the MPC565
executes instruction show-cycle.
23
24:25
/ MPC566
DECOMP The reset value is determined by configuration word bit #21. For further details regarding show
_SC_EN2 cycles execution in Decompression ON mode see [Link] Decompression ON Mode.
0 = Decompression Show Cycle does not include the bit pointer.
1 = Decompression Show Cycles includes the bit pointer information on the data bus.
Other Exceptions Relocation Control These bits effect only if ETRE was enabled; See details
in 4.5.2 ETR Operation.
00: offset 0
OERC[0:1] 01: offset 64 Kbytes
10: offset 512 Kbytes.
11: offset to 0x003FE000 (SRAM start address)
The reset value is determined by reset configuration word bits #24, #25
26
BTEE2
27
BCMEE 2
28:29
30
DCAE
31
Branch Target Entries Enable This bit enables Branch Target Entries of BTB operation
0 = BTE operation is disable
1 = BTE operation is enable.
Branch Conditional Miss-predicted Entry Enable This bit enables Branch Conditional misspredicted Entry of BTB operation
0 = BCME operation is disable.
1 = BCME operation is enable.
Reserved
Decompressor Configuration Access Enable This bit enables DECRAM and DCCR registers
accesses from U-bus master (i.e. RCPU, external master).
0 = DECRAM and DCCR registers are locked.
1 = DECRAM allows accesses from the U-bus only.
DCAE bit should be set before vocabulary tables loading via U-bus.
Reserved for BBC Test Operations.
NOTES:
1. Bit 20 of the BBCMCR on the MPC555/556 was OERC. The OERC bits are now bits 24:25.
2. This bit is only available on the MPC566.
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-26
10
11
12
13
14
15
RA
HRESET
U
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
LSB
31
RA
RESERVED
HRESET
U
Name
Description
0:19
RA
Region Base address. The RA field provides the base address of the region. The region base
address should start on the memory block boundary for the corresponded region size, specified
in the region attribute register MI_RA.
20-31
Reserved
NOTE
When the MPC565 / MPC566 operates Decompression ON mode,
a minimum four unused words MUST be left after the last instruction
in any region.
[Link] Region Attribute Registers MI_RA[1:3]
The following registers define protection attributes and size for four memory regions.
,
10
11
12
13
14
15
RS
HRESET
U
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-27
16
17
18
19
20
RS
21
22
PP
23
24
RESERVED
25
26
27
CMPR
28
29
BTBINH
30
LSB
31
RESERVED
HRESET
U
Name
0:19
RS
1
Description
Region size. For byte size by region, see Table 4-7.
Protection bits:
00: Supervisor No Access, User No Access.
01: Supervisor Fetch, User No Access.
1x: Supervisor Fetch, User Fetch.
20:31
PP
22:24
Reserved
25
26:27
CMPR2
Compressed Region.
x0 = The region in not restricted
01 = Region is considered a non-compressed code region Access to the region is allowed only
in Decompression Off mode
11 = Region is considered a compressed code [Link] to the region is allowed only in Decompression On mode
28
BTBINH 2
29:30
NOTES:
1. G and PP attributes perform similar protection activities on a region. The more protective attribute will be implied
on the region if the attributes programming oppose each other.
2. This bit is available only on MPC566.
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-28
Size
0000_0000_0000_0000_0000
4 Kbytes
0000_0000_0000_0000_0001
8 Kbytes
0000_0000_0000_0000_0011
16 Kbytes
0000_0000_0000_0000_0111
32 Kbytes
0000_0000_0000_0000_1111
64 Kbytes
0000_0000_0000_0001_1111
128 Kbytes
0000_0000_0000_0011_1111
256 Kbytes
0000_0000_0000_0111_1111
512 Kbytes
0000_0000_0000_1111_1111
1 Mbyte
0000_0000_0001_1111_1111
2 Mbytes
0000_0000_0011_1111_1111
4 Mbytes
0000_0000_0111_1111_1111
8 Mbytes
0000_0000_1111_1111_1111
16 Mbytes
0000_0001_1111_1111_1111
32 Mbytes
0000_0011_1111_1111_1111
64 Mbytes
0000_0111_1111_1111_1111
128 Mbytes
0000_1111_1111_1111_1111
256 Mbytes
0001_1111_1111_1111_1111
512 Mbytes
0011_1111_1111_1111_1111
1 Gbyte
0111_1111_1111_1111_1111
2 Gbytes
1111_1111_1111_1111_1111
4 Gbytes
SPR 528
8
10
11
12
13
14
15
RESERVED
HRESET
0
16
17
18
19
20
RESERVED
21
22
PP
23
24
RESERVED
25
26
27
CMPR
28
29
BTBINH
30
LSB
31
RESERVED
HRESET
0
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-29
Name
ENR0
ENR1
ENR2
ENR3
4:19
Reserved
20:21
PP
Protection Bits
00: Supervisor No Access, User No Access.
01: Supervisor Fetch, User No Access.
1x: Supervisor Fetch, User Fetch.
22:24
Reserved
25
26:27
CMPR1
28
BTBINH 2
29:31
Description
Compressed Region.
x0 = The region in not restricted.
01= Region is considered a non-compressed code region. Access to the region is allowed only
in Decompression Off mode.
11= Region is considered a compressed code region. Access to the region is allowed only in Decompression On mode.
BTB Inhibit region
0 = BTB operation is not prohibited for current memory region.
1 = BTB operation is prohibited for current memory region.
Reserved
NOTES:
1. This bit is only available on the MPC566.
NOTE
The MI_GRA register should be programmed to enable fetch access
(PP and G bits) before RCPU MSR[IR] bit is set.
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-30
SPR 529
10
11
12
13
14
15
24
25
26
Base Address
HRESET
U
16
17
18
19
20
21
22
23
Base Address
27
28
29
30
LSB
31
RESERVED
HRESET
U
Name
0:20
BA
Description
21:31
Reserved
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-31
TP1LEN
0x2F A004
0x2F A008
0x2F A00C
0x2F A010
0x2F A014
0x2F A018
0x2F A01C
0x2F A020
0x2F A024
0x2F A028
0x2F A02C
0x2F A030
0x2F A034
0x2F A038
0x2F A03C
10
TP2LEN
11
12
13
14
15
TP1BA
TP2BA
HRESET
U
16
17
18
19
20
21
TP2BA
22
23
AS
DS
24
25
26
27
28
29
30
LSB
31
RESERVED
HRESET
U
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-32
Name
Description
TP1LEN
Length and Type of Table Pointer 1 This fields value defines the length of the field that contains a pointer to the first vocabulary table allocated for the class.
0x0 - Empty field
0x1 - Reserved
0x2 - TP1 length is 2 bits
0x3 - TP1 length is 3 bits
0x4 - TP1 length is 4 bits
0x5 - TP1 length is 5 bits
0x6 - TP1 length is 6 bits
0x7 - TP1 length is 7 bits
0x8 - TP1 length is 8 bits
0x9 - TP1 length is 9 bits
0xA to 0xF - Reserved
4:7
TP2LEN
Length and Type of Table Pointer 2 This fields value defines the length of the field that contains either a pointer to the second vocabulary table allocated for the class or a bypass field.
0x0 - Empty field
0x1 - Reserved
0x2 - TP2 length is 2 bits
0x3 - TP2 length is 3 bits
0x4 - TP2 length is 4 bits
0x5 - TP2 length is 5 bits
0x6 - TP2 length is 6 bits
0x7 - TP2 length is 7 bits
0x8 - TP2 length is 8 bits
0x9 - TP2 length is 9 bits
0xA - Reserved
0xB - Reserved
0xC - TP2 field is a 10 bits compact bypass field
0xD - TP2 field is a 15 bits compact bypass field
0xE - TP2 field is a 16 bits bypass field
0xF - Reserved.
8:14
TP1BA
Base address for vocabulary table in RAM Bank 1 This field specifies the base page address
of the class vocabulary table that resides in RAM Bank 1.
15:21
TP2BA
Base address for vocabulary table in RAM Bank 2 This field specifies the base page address
of the class vocabulary table that resides in RAM Bank 2.
0:3
22
AS
23
DS
24:31
Reserved
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-33
CLASS
2a
CLASS
2b
Left Segment
Compression, Right
Segment Bypassed,
Vocabulary In RAM #1
CLASS
3a
Left Segment
Compression, Right
Segment Bypassed,
Vocabulary In RAM #2
CLASS
3b
CLASS
4b
CLASS
4a
V1
V1
1
V1
V2
V2
V2
X11
X1 X2
X2 X1
V1
X1 BP2
0
0
V1
X1 BP
V2
X2 BP
Bypass
1
1
2
V2
X2 BP
NOTES:
1. X1,X2 - pointers to vocabularies
2. BP - the bypassed data
MPC565/MPC566
REFERENCE MANUAL
MOTOROLA
4-34