Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc.
??
MICROPROCESSORS
THE MOTOROLA GATEWAY BOARD
(MCF5202 Microprocessor To MC68EC000 Bus Interface Card)
Jeff Miller
October 15, 1997
1.0 Introduction
The integrated Gateway circuit board will bridge an existing MC68EC000 system to the new ColdFire?? MCF5202
2.0Gateway Board Overview
2.1Software 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 ColdFire instructions for the MCF5202 to work properly. Refer to Section 8, ???Porting from M68K Architec- ture,??? of the MCF5202 User???s Manual for an overview of the issues encountered when upgrading from the M68000 to the ColdFire microprocessor. In addition, you???ll have to keep three key things in mind while porting system software code from the MC68EC000 system to the MCF5202 system
1.mapping
2.cache coherency
3.RMW cycles
MOTOROLAGATEWAY BOARD1
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc.
2.1.1 Mapping
The Gateway board transfers only the lower
Table 1: Example Memory Map Translation
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
2GATEWAY BOARDMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc.
cache mode to
2.1.3 RMW cycles
If the TAS instruction is used in the original M68000 code for implementing the locked or
2.2 Hardware Considerations
The target system must have a female
3.0 Performance
The Gateway board performance will be ???rst discussed generally and then speci???cally with an
MOTOROLAGATEWAY BOARD3
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc.
Table 2: Bus Clock Timing Comparison
Table 3: Bus Clock Timing Comparison
The industry standard Dhrystone 2.1 benchmark was run on the Motorola Gateway board, as well as some other systems, and the results are shown in Table 4. If you notice in Table 4, the Gateway board requires about a 7.5MHz increase in frequency (12.5MHz to 20MHz) to get about the same MIPS performance of the 68EC000 evaluation board. This is attributable to the handshaking required between the MCF5202 and the 68EC000. Notice, however, if the internal cache of the MCF5202 is used, the MIPS performance of the system is increased
4GATEWAY BOARDMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc.
Table 4: Dhrystone 2.1 Benchmark Performance
4.0 Potential Performance and System Improvements
To fully take advantage of the MCF5202 performance in a target system, the 68EC000 bus could be changed to interface better to the MCF5202 bus. First, the maximum frequency of operation for the Gateway board???s MCF5202 is 33MHz, which can be a substantial improvement over the 12.5MHz, 16.7MHz, or even the 20MHz version of the 68EC000. So, if the 68EC000 system was designed to operate at higher frequencies, this would be an easy way to increase overall system performance. Second, the
The MCF5202 was chosen for the Gateway board because of its
5.0 Debug Support
There is a ColdFire BDM connector (labeled J2) on the Gateway board that is a
MOTOROLAGATEWAY BOARD5
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc.
6.0 Bus Operation
The Gateway board supports a synchronous interface between the MCF5202 bus and the MC68EC000 bus. The waveforms in this document are meant to provide a functional description of the bus cycles required for data transfer operations. The examples below show a longword read and write to a
Figure 1: Longword Read To A
CLOCK
TS*
R/W*
FC[2:0]
A[23:0]
6GATEWAY BOARDMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc.
Figure 2: Longword Write To A
MOTOROLAGATEWAY BOARD7
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc.
Figure 3:
AVEC*
IPL*[2:0]
8GATEWAY BOARDMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc.
7.0 PLD State Diagram
8.0 PLD ABEL Code
MODULE gateway
gateway device 'ispLSI';
pLSI property 'PART
pLSI property 'Y1_AS_RESET ON';
MOTOROLAGATEWAY BOARD9
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc.
10GATEWAY BOARDMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc.
MOTOROLAGATEWAY BOARD11
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc.
"AS is asserted for PS3, PS4, and the posclk of PS5 AS = PSTATE3 # PSTATE4 # PSTATE5&!NCLK;
"OEBA16 = (CF is master & not halted & during
"OEBA8 = (CF is master & not halted & during
"OEAB16 = (CF is master & not halted & during
"OEAB8 = (CF is master & not halted & during
OEAB8 = (!BG68K & !HALT & AS) & ( !RnW&!MODE );
" UDS = (Read&PS3 # PS4 # PCLK&PS5) &
UDS = (RnW&PSTATE3 # PSTATE4 # PSTATE5&!NCLK) & MODE & !( A0 & !SIZ1&SIZ0 ); " LDS = (Read&PS3 # PS4 # PCLK&PS5) &
LDS = (RnW&PSTATE3 # PSTATE4 # PSTATE5&!NCLK) & !( MODE & !A0 & !SIZ1&SIZ0 & !(TT1&TT0) );
"ADLT = (TS&PS1 # PS2 # PS3 # PS4 # PCLK&PS5)
12GATEWAY BOARDMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc.
"Function Codes for EC000 - (See NOTE 1)
"FC2 = ( (ATM &
"FC1 = ( (ATMA &
"FC0 = ( (!ATMA &
MOTOROLAGATEWAY BOARD13
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc.
END
14GATEWAY BOARDMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc.
9.0 Block Diagram
Figure 5: Gateway Board Block Diagram
10.0 Gateway Board Physical Layout
Figure 6: Physical Layout (Actual Size)
2 in.
MOTOROLAGATEWAY BOARD15
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc.
11.0 Gateway Board Bill Of Material
Table 5: Bill Of Material
16GATEWAY BOARDMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
12.0 ColdFire Gateway Board Schematics (1 of 2)
U1
MCF5202
0.01UF
Freescale Semiconductor, Inc.
ISPEN GND
10 PF
VCC GND
33 UF
VCC GND
0.1 UF
VCC GND
0.1 UF
VCC GND
0.1 UF
VCC GND
0.1 UF
VCC GND
0.1 UF
VCC GND
0.1 UF
VCC GND
0.1 UF
VCC GND
0.1 UF
VCC GND
0.1 UF
VCC GND
0.1 UF
VCC GND
0.1 UF
VCC GND
0.1 UF
VCC GND
0.1 UF
VCC GND
0.1 UF
VCC GND
0.1 UF
VCC GND
0.1 UF
VCC GND
0.1 UF
VCC GND
0.1 UF
VCC GND
0.1 UF
VCC GND
0.1 UF
BYPASS FOR U1
FOR U2 - U9
VCC GND
0.1 UF
VCC GND
0.1 UF
VCC GND
BYPASS
MOTOROLAGATEWAY BOARD17
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
ColdFire Gateway Board Schematics (2 of 2)
Freescale Semiconductor, Inc.
U2
U6
74F543
18GATEWAY BOARDMOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc.
convey any license under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components 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 its of???cers, employees, subsidiaries, af???liates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such
MOTOROLAGATEWAY BOARD19
For More Information On This Product,
Go to: www.freescale.com