Motorola VL-RISC MCF5202 User Manual Download Page 2

 

2

GATEWAY BOARD

MOTOROLA

2.1.1 Mapping 32-bit MCF5202 addresses to 24-bit 68EC000 addresses

 

The Gateway board transfers only the lower 24-bits of the address from the MCF5202 to the MC68EC000.  

This should make no difference in porting the system software (because a 24-bit addressing scheme can still be used, 
with the upper 8-bits as a  ÒdonÕt-careÒ) except when the on-chip cache is to be used.  The MCF5202 allows speciÞc 
regions of address space to be assigned access control attributes via the Access Control Registers (ACR0 and ACR1).  
Also, within the MCF5202Õs Cache Control Register (CACR), the default cache mode can be set up for regions that 
are not mapped by the ACRs.  Refer to the ÒCacheÓ section of the 

 

ColdFire MCF5202 UserÕs Manual

 

 for more 

details.  The MCF5202 ACRs use address bits 31-24 to determine the region of space to which the corresponding 
access control attributes are assigned.  Because the original M68000 system used only addresses 23-0, this at Þrst 
glance may seem to cause a problem when considering caching certain areas of memory that are smaller than 
16Mbytes.  However, virtual-to-physical memory mapping can be used to map unique regions in the 24-bit address 
space to unique 16Mbyte regions in the 32-bit address space, such that certain areas of the physical memory map can 
take advantage of the MCF5202 caching schemes.  One example of implementing this would be to simply concate-
nate A[31:24] = $01 in front of the Þrst 24-bit address region, and control the caching scheme for this region using 
ACR0.  Then concatenate A[31:24] = $02 in front of the second 24-bit address region, which will have a separate 
caching scheme, and control the caching scheme for this region with ACR1.  Finally, concatenate A[31:24] = $03 in 
front of the third 24-bit address region, which could have yet another caching scheme, and control the caching 
scheme for this region using the default cache mode in the CACR register.  This example memory map translation is 
shown in Table 1.

For this example, ACR0 can be set up such that everything within the region $01xxxxxx, which includes 

$01000000 - $011FFFFF containing instructions, can have a speciÞc cache attribute such as copyback.  ACR1 can be 
set up such that everything within the region $02xxxxxx, which includes $02200000 - $023FFFFF containing data, 
can have another speciÞc cache attribute such as writethrough.  The CACR can be set up such that everything not 
mapped by the ACRs, which includes $03400000 - $03FFFFFF containing I/O, can have a third cache attribute such 
as cache inhibit.  Now, when the software code is compiled, the new MCF5202 memory map that is speciÞc to the 
customerÕs system must be used when assigning the corresponding instruction, data, and I/O sections.

 

2.1.2 Cache Coherency

 

If the MCF5202 has its cache on and in copyback mode, and if there is another bus master in the system that 

can arbitrate the system bus away from the MCF5202 and modify a shared piece of memory, users should be careful 
about maintaining cache coherency.  Cache coherency is the term used to describe the act of keeping the on-chip 
cache consistent (or coherent) with external memory, if other masters will be using the same memory.  Refer to the 
ÒCache CoherencyÓ section of the 

 

ColdFire MCF5202 UserÕs Manual

 

.  If cache coherency is required, then the sim-

plest way to resolve this problem is to control the shared memory region with one of the ACRs and set this ACRÕs 

 

Table 1: Example Memory Map Translation

 

68000 MEMORY MAP

A[23:0]

CONTENTS

CACHE CONTROL

5202 MEMORY MAP

A[31:0]

 

$000000

$1FFFFF

Instructions

ACR0

$01000000

$011FFFFF

$200000

$3FFFFF

Data

ACR1

$02200000

$023FFFFF

$400000

$FFFFFF

I/O

CACR

$03400000

$03FFFFFF

 

   

  

F

re

e

sc

a

le

 S

e

m

ic

o

n

d

u

c

to

r,

 I

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

 

Freescale Semiconductor, Inc.

For More Information On This Product,

   Go to: www.freescale.com

n

c

.

..

Summary of Contents for VL-RISC MCF5202

Page 1: ...2 0 Gateway Board Overview 2 1 Software Considerations The principal use of this board is to help port system software code from the M68000 architecture to the Cold Fire architecture Users will have to recompile the system software to target the MCF5202 instead of targeting the M68000 Even though the system will see a hardware interface that looks like a MC68EC000 the software must con sist of Col...

Page 2: ...hich could have yet another caching scheme and control the caching scheme for this region using the default cache mode in the CACR register This example memory map translation is shown in Table 1 For this example ACR0 can be set up such that everything within the region 01xxxxxx which includes 01000000 011FFFFF containing instructions can have a speciÞc cache attribute such as copyback ACR1 can be...

Page 3: ...ot Also the interrupt level being acknowledged is driven onto A D 4 2 by the MCF5202 which has to be routed onto address lines A 3 1 for the 68EC000 See Figure 3 for more details The board also has control logic to handle bus arbitration for alternate bus masters If the HALT signal is asserted the processor will stop bus activity at the completion of the current bus cycle and will place all contro...

Page 4: ...sed later even greater system performance will result Table 2 Bus Clock Timing Comparison 16 bit mode MCF5202 DATA ACCESS READ WRITE GATEWAY BOARD BUS CLOCKS EQUIVALENT MC68EC000 BUS CLOCKSTO GET SAME DATA Byte Word Long Read 7 6 7 13 4 4 4 8 Byte Word Long Write 7 5 7 12 4 4 4 8 Line Fill 4 Longs Read 6 6 6 6 6 6 6 7 49 4 4 4 4 4 4 4 4 32 Line Fill 4 Longs Write 5 5 5 5 5 5 5 7 42 4 4 4 4 4 4 4 4...

Page 5: ... example the 2KB uniÞed cache can be conÞg ured to be 2KB of I cache only 2KB of D cache only 1KB of I cache and 1KB of D cache or as a normal 2KB uniÞed cache with a dynamic mixture of both instructions and data Other ColdFire microprocessors can be selected according to speciÞc system requirements For example the MCF5204 which would not require latches and buffers because it has a demultiplexed ...

Page 6: ...knowledge Cycle Note that at all times the MCF5202 will not burst TBI 0 and that the address phase lasts for only one clock AA 0 Figure 1 Longword Read To A 16 Bit Port AD 31 16 CLOCK READ D 31 16 ADDR 00 ADDR ADDR ADDR READ D 15 0 00 01 01 10 READ D 31 24 READ D 23 16 READ D 15 8 READ D 7 0 TS R W TT 1 0 ATM SIZ 1 0 AD 15 0 DA 1 0 FC 2 0 A 23 0 AS UDS LDS DTACK D 15 8 D 7 0 w S0 S2 S4 S6 w w PS1 ...

Page 7: ...4 PS5 PS1 PS1 w PS1 WRITE D 31 16 ADDR 00 ADDR 00 01 WRITE D 31 24 ADDR ADDR WRITE D 15 0 01 WRITE D 23 16 WRITE D 7 0 WRITE D 15 8 10 AD 31 16 TS R W TT 1 0 ATM SIZ 1 0 AD 15 0 DA 1 0 FC 2 0 A 23 0 AS UDS LDS DTACK D 15 8 D 7 0 Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc ...

Page 8: ...0 S2 S4 S6 w w PS1 w PS1 PS2 PS3 PS4 PS5 PS1 PS1 S0 S2 S4 S6 w w PS2 PS3 PS4 PS5 PS1 PS1 w PS1 IPL AD 31 24 AD 4 2 AD 1 0 AVEC IPL 2 0 LEVEL A 3 1 A0 IPL LEVEL IPL LEVEL VECTOR IPL LEVEL IACK CYCLE VECTOR NUMBER ACQUISITION AUTOVECTORED IACK CYCLE w PS1 10 01 or 10 Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc ...

Page 9: ...property LOCK TT1 9 pLSI property LOCK TT0 10 pLSI property LOCK ATM 11 pLSI property LOCK BR68K 15 pLSI property LOCK SDO 18 pLSI property LOCK SIZ1 19 pLSI property LOCK BDCF 21 pLSI property LOCK SCLK 27 pLSI property LOCK RSTI 29 Reset Wait for beginning of ColdFire cycle Begin a 68EC000 cycle Data Acknowledge to the MCF5202 Wait for Acknowledge from 68EC000 TS TS TS TS DTACK DTACK Grant to Co...

Page 10: ...d to uP pin 8 istype input SDI only used for in circuit programming of PLD TT1 pin 9 istype input TT0 pin 10 istype input ATM pin 11 istype input BR68K pin 15 istype input nBR68K pin 18 istype input SDO only used for in circuit programming of PLD SIZ1 pin 19 istype input BDCF pin 21 istype input nBDCF pin 27 istype input SCLK only used for in circuit programming of PLD RSTI pin istype input pin 29...

Page 11: ... 37 istype output Addr Enable for A 23 8 AEUP 0 HIZ AEUP 1 output Internal Nodes PQ0 PQ1 PQ2 node istype reg buffer A0 node istype reg buffer ATMA node istype reg buffer NQ1 node istype reg NQ2 node istype reg NCLK node BQ0 BQ1 node istype reg buffer Constants c k x z C K X Z this is used for test vectors State Value Constants psreg PQ2 PQ1 PQ0 Positive Clk State Register PS0 0 0 0 PQ2 PQ1 PQ0 PS1...

Page 12: ...TE5 NCLK OEBA16 CF is master not halted during AS 16 bit read IACK OEBA16 BG68K HALT AS RnW MODE TT1 TT0 OEBA8 CF is master not halted during AS 8 bit read IACK OEBA8 BG68K HALT AS RnW MODE TT1 TT0 OEAB16 CF is master not halted during AS 16 bit write OEAB16 BG68K HALT AS RnW MODE OEAB8 CF is master not halted during AS 8 bit write OEAB8 BG68K HALT AS RnW MODE UDS Read PS3 PS4 PCLK PS5 16 bit Odd ...

Page 13: ...PS3 else goto state 3 STATE PS3 Assert other control signals GOTO PS4 Unconditionally goto state 4 STATE PS4 Waiting for DTACK from 68K IF TT1 TT0 AVEC THEN if TT 1 0 11 IACK and AVEC then PS5 goto state 5 just DA the cycle ELSE IF DTACK THEN else if Normal or IACK without AVEC look for DTACK PS5 goto state 5 ELSE PS4 else stay in state 4 STATE PS5 Data acknowledge to ColdFire GOTO PS1 Uncondition...

Page 14: ...0 0 0 1 Normal User Data 1 0 0 0 0 1 0 Normal User Instruction 0 1 0 0 1 0 1 Normal Supervisor Data 1 1 0 0 1 1 0 Normal Supervisor Instruction X X 0 1 0 0 0 Reserved X X 1 0 Emulator Access X X 1 1 1 1 1 CPU Space or IACK NOTE 2 RnW MODE A0 SIZ1 AENORM AEIACK UDS LDS OExxxx Notes SIZ0 1 1 0 1 1 0 1 0 OEBA16 Read 16 bit even byte Normal 1 1 0 1 0 1 1 1 OEBA8 Read 16 bit even byte IACK 1 1 0 0 x x ...

Page 15: ...PLD 68EC000 Connector 68 pin PLCC ColdFire MCF5202 B D M A D A D U1 U2 J3 U9 U6 U8 U7 U4 U5 U3 J2 ISP ColdFire Gateway Board S N 1 9 10 26 44 60 61 1 26 25 2 BDM Component Side Solder Side 10 9 1 26 27 44 60 61 J1 43 3 5 in 2 in J1 J2 J3 Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc ...

Page 16: ... R8 Res 4 7K 5 1 8W 1206 7 4 Samtec TMS 117 55 G S J1 Conn HDR 17 pins 50Mil ctr single row 1X17 8 1 AMP 1 103783 3 J2 Conn HDR 26 pins 100Mil ctr dual row 2X13 9 1 AMP 1 87499 3 J3 Conn HDR 8 pins 100Mil ctr single row 1X8 10 1 Samwa Venkel CS3216X7R103K500R C1206X7R500 103KNE C1 Cap 0 01UF 10 50V 1206 11 1 Panasonic S1012 36 ND C2 Cap 33UF 10 16V 1206 TANT 12 22 Samwa Venkel CS3216X7R104K500R C1...

Page 17: ...AD22 AD23 D0 D1 D2 D3 D4 D5 D6 D7 74F573 U9 19 18 17 16 15 14 13 12 Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 A16 A17 A18 A19 A20 A21 A22 A23 OE AEUPPER 1 C ADLT 11 2 3 4 5 6 7 8 9 AD8 AD9 AD10 AD11 AD12 AD13 AD14 AD15 D0 D1 D2 D3 D4 D5 D6 D7 74F573 U3 19 18 17 16 15 14 13 12 Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 A8 A9 A10 A11 A12 A13 A14 A15 OE AEIACK 1 C ADLT 11 2 3 4 5 6 7 8 9 AD5 AD2 AD3 AD4 AD5 AD5 AD6 AD7 D0 D1 D2 D3 D4 D5...

Page 18: ...6 OEBA 2 EAB GND 11 LEAB nLE16_8 14 3 4 5 6 7 8 9 10 AD24 AD25 AD26 AD27 AD28 AD29 AD30 AD31 A0 A1 A2 A3 A4 A5 A6 A7 74F543 U7 22 21 20 19 18 17 16 15 B0 B1 B2 B3 B4 B5 B6 B7 D8 D9 D10 D11 D12 D13 D14 D15 OEAB nOEAB16 13 GND EBA 23 nLE16_8 LEBA 1 nOEBA16 OEBA 2 EAB GND 11 LEAB nLE16_8 14 3 4 5 6 7 8 9 10 AD24 AD25 AD26 AD27 AD28 AD29 AD30 AD31 A0 A1 A2 A3 A4 A5 A6 A7 74F543 U8 22 21 20 19 18 17 16...

Page 19: ...s in systems intended for surgical implant into the body or other applications intended to support or sustain life or for any other application in which the failure of the Motorola product could create a situation where personal injury or death may occur Should Buyer purchase or use Motorola products for any such unintended or unauthorized application Buyer shall indemnify and hold Motorola and it...

Reviews: