The MMU Demonstration
The remainder of this demonstration shows how the MC68040 emulator helps you
develop and analyze your target program within a memory system that is managed
by the MMU of the MC68040 processor.
The MMU demo program attempts to simulate a real target system to display
hexadecimal characters on the seven-segment display on the HP 64783A demo
board (used with HP 64783A and HP 64783B emulators). A simple operating
system uses interrupts to maintain a system clock and configures the MMU to
translate addresses and provide memory access protection. The operating system
waits for a hexadecimal string to be placed in "sysbuf" and then spawns a user task
to display each character on the demo board’s seven-segment display. The user
task interfaces with the operating system to set up an alarm timer and to output
individual characters to the display. The display of characters is interrupt driven.
This demo requires 128 Kbytes of emulation memory. The first 64-Kbyte block of
emulation memory is mapped to lower memory and corresponds to system ROM.
ROM space is translated 1:1 and is entirely write protected. The first half of ROM
contains privileged operating system code and is also protected against user mode
access. The second half of ROM is user accessible and contains shared library and
operating system interface functions. The second 64-Kbyte block of emulation
memory is mapped to upper memory and corresponds to system RAM. RAM
space is NOT translated 1:1 and has varying access protections. During bootup, the
operating system loads the user program, user data, and operating system data from
ROM into RAM after the MMU is enabled. The user program is loaded into the
first half of RAM and gets write-protected. The user data and stack is located in the
next quarter of RAM and has no access protections. The last quarter of RAM
contains operating system data and stack and is protected against user access. A
transparent translation register is used to provide a 1:1 address translation for the
emulation monitor located at 0xff000000. The following MMU translation display
summarizes all address translations:
Logical Address Physical Address Attributes
00000000..00007fff 00000000..00007fff@a S W (32K sprog)
00008000..0000ffff 00008000..0000ffff@a W (32K libc)
00010000..00017fff ffff0000..ffff7fff@a W (32K uprog)
00010000..0001bfff ffff8000..ffffBfff@a (16K udata)
0001C000..0001ffff ffffC000..ffffffff@a S (16K sdata)
ff000000..ffffffff ff000000..ffffffff@a TT (monitor)
Where:
S = Supervisor access only.
W = Write-protected.
TT = Controlled by a transparent translation register.
Chapter 1: Getting Started
Step 12: Patch assembly language code
28
Summary of Contents for 64783A
Page 30: ...xxx ...
Page 31: ...Part 1 Quick Start Guide 1 ...
Page 33: ...1 Getting Started 3 ...
Page 70: ...40 ...
Page 75: ...Part 2 Using The Emulator 45 ...
Page 140: ...110 ...
Page 141: ...4 Using the Emulator How to control the processor and view system resources 111 ...
Page 227: ...5 Using the Emulation Bus Analyzer How to record program execution in real time 197 ...
Page 290: ...260 ...
Page 331: ...8 Configuring the Emulator 301 ...
Page 382: ...352 ...
Page 383: ...9 Solving Problems What to do when the emulator doesn t behave as expected 353 ...
Page 397: ...Part 3 Reference 367 ...
Page 399: ...10 Using Memory Management Understanding logical and physical emulation and analysis 369 ...
Page 429: ...11 Emulator Commands The command syntax reference for the emulator softkey interface 399 ...
Page 443: ...copy Chapter 11 Emulator Commands copy 413 ...
Page 451: ...display Chapter 11 Emulator Commands display 421 ...
Page 457: ...DISPLAY MEMORY Chapter 11 Emulator Commands DISPLAY MEMORY 427 ...
Page 461: ...DISPLAY MMU Chapter 11 Emulator Commands DISPLAY MMU 431 ...
Page 464: ...DISPLAY TRACE Chapter 11 Emulator Commands DISPLAY TRACE 434 ...
Page 480: ...modify Chapter 11 Emulator Commands modify 450 ...
Page 501: ...set Chapter 11 Emulator Commands set 471 ...
Page 514: ... SYMB Chapter 11 Emulator Commands SYMB 484 ...
Page 582: ...552 ...
Page 583: ...13 Setting X Resources 553 ...
Page 598: ...568 ...
Page 606: ...576 ...
Page 613: ...16 Specifications and Characteristics 583 ...
Page 627: ...Part 4 Concept Guide 597 ...
Page 629: ...17 X Resources and the Graphical User Interface 599 ...
Page 639: ...Part 5 Installation and Service Guide 609 ...
Page 697: ...19 Installation and Service 667 ...
Page 746: ...Chapter 19 Installation and Service Verifying the Installation 716 ...
Page 755: ...20 Installing Updating Emulator Firmware 725 ...
Page 762: ...732 ...
Page 778: ...748 ...
Page 810: ...X server 554 604 X Window System 54 Index 780 ...