HP MC68040 User Manual page 354

Emulator, graphical user interface
Table of Contents

Advertisement

Chapter 8: Configuring the Emulator
Mapping Memory
Examples
Example 1: Suppose you're using the emulator in-circuit, and there is a 12-byte I/O
port at 1c000 hex in your target system. You have ROM in your target system from
0 through ffff hex. Also, you want to use the dual-port emulation memory at 20000
hex. You could use the Memory Map dialog box to create the following three map
entries:
Start Address 1c000h, End Address 1c0ffh, Memory Type Target RAM
Start Address 0h, End Address 0ffffh, Memory Type Target ROM
Start Address 20000h, End Address 20fffh, Memory Type Emul RAM, Dual Port
Memory = Yes
Using the command line, you would enter:
1c000h thru 1c0ffh target ram
0 thru 0ffffh target rom
20000h thru 20fffh emulation ram dualport
Remember that the only way to make the dual-port emulation memory available for
your target program is to use the background monitor. When a foreground monitor
is in use, it occupies the dual-port emulation memory, by default.
Example 2: This second example shows the relationship between memory ranges
and the block sizes of memory. Suppose you have installed 256-Kbyte SRAM
memory modules in Memory slots 0 and 1 (called BANK 0 and BANK 1) on the
emulation probe. This makes four 64-Kbyte blocks and two 128-Kbyte blocks
available to the memory mapper. Then you enter the following map commands:
Start Address 0h, End Address 7fffh, Memory Type Emul RAM
Start Address 20000h, End Address 3f000h, Memory Type Emul RAM
Start Address 40000h, End Address 4ffffh, Memory Type Emul RAM
Start Address 50000h, End Address 500ffh, Memory Type Emul RAM
Map→Default Memory Type→Target RAM→Transfer Cache Inhibit ON
Using the command line, you would enter:
0 thru 7fffh emulation ram
20000h thru 3f000h emulation ram
40000h thru 4ffffh emulation ram
50000h thru 500ffh emulation ram
default target ram transfer_cache_inhibit
If you haven't used the dual-port emulation RAM, the first map term that is small
enough to fit is assigned to that memory. In this example, that is the last term you
324

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ec040Lc04064783a64783b

Table of Contents