D75P 34 – HNC Computer Architecture Week 5 Memory Maps. © C Nyssen/Aberdeen College 2003 All images © C Nyssen/Aberdeen College except where stated Prepared.

Slides:



Advertisements
Similar presentations
Hardware Lesson 3 Inside your computer.
Advertisements

Computing Systems Organization
MEMORY MANAGEMENT Y. Colette Lemard. MEMORY MANAGEMENT The management of memory is one of the functions of the Operating System MEMORY = MAIN MEMORY =
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
Chapter 2 How Hardware and Software Work Together.
Chapter 6: Memory Management
D75P 34 – HNC Computer Architecture Week 10 Computer Memory. © C Nyssen/Aberdeen College 2003 All images © C Nyssen/Aberdeen College except where stated.
D75P 34 – HNC Computer Architecture Week 4 Reading and writing to RAM. © C Nyssen/Aberdeen College 2003 All images © C Nyssen/Aberdeen College except where.
1BA3 G Lacey Lecture 51 Evaluating mathematical expressions  How do computers evaluate x + y or any mathematical expression ?  Answer : “Reverse Polish.
Basic Input Output System
Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
TK 2633 Microprocessor & Interfacing Lecture 3: Introduction to 8085 Assembly Language Programming (2) 1 Prepared By: Associate Prof. Dr Masri Ayob.
Computer Terminology … Remember: Knowledge is Power!
CS2422 Assembly Language & System Programming September 22, 2005.
The Microprocessor-based PC System Prima Dewi Purnamasari Microprocessor Electrical Engineering Department University of Indonesia.
1 DOS with Windows 3.1 and 3.11 Operating Environments n Designed to allow applications to have a graphical interface DOS runs in the background as the.
6. The CPU and Memory Chapt. 7.
Conventional Memory 8088 processor could address only 1 MB
Operating Systems Who’s in charge in there?. Types of Software Application Software : Does things we want to do System Software : Does things we need.
How Hardware and Software Work Together
By the end of this lesson you will be able to explain: 1. What is the BOOT process 2. A Cold Boot 3. A Warm Boot.
Computer Maintenance Unit Subtitle: Basic Input/Output System (BIOS) Excerpted from 1 Copyright © Texas Education Agency, All.
Computers in the real world Objectives Understand what is meant by memory Difference between RAM and ROM Look at how memory affects the performance of.
CPU (CENTRAL PROCESSING UNIT): processor chip (computer’s brain) found on the motherboard.
1 Machine Architecture and Number Systems Topics Major Computer Components Bits, Bytes, and Words The Decimal Number System The Binary Number System Converting.
Instructor: Yuzhuang Hu Memory Hierarchy.
Chapter Two Hardware Basics: Inside the Box. ©1999 Addison Wesley Longman2.2 Chapter Outline What Computers Do A Bit About Bits The Computer’s Core: CPU.
1/2002JNM1 With 20 bits, 1,048,576 different combinations are available. Each memory location is assigned a different combination. Each memory location.
D75P 34 – HNC Computer Architecture Lecture 14 Clock Cycles and Program Analysis. © C Nyssen/Aberdeen College 2003 All images © C Nyssen/Aberdeen College.
D75P 34R HNC Computer Architecture 1 Week 9 The Processor, Busses and Peripherals © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College.
System Resources.
A+ Guide to Software Managing, Maintaining and Troubleshooting THIRD EDITION Chapter 9 Managing Memory.
MAC OS – Unit A Page: 10-11, Investigating Data Processing Understanding Memory.
Cpr E 308 Input/Output Recall: OS must abstract out all the details of specific I/O devices Today –Block and Character Devices –Hardware Issues – Programmed.
An Abacus. Babbage’s Difference Engine Electronic Computers  1939–1944, Howard H. Aiken developed the Harvard Mark I—also known as the IBM ASCC.  Grace.
Eng.Samra Essalaimeh Philadelphia University 2013/ nd Semester PIC Microcontrollers.
Fill in the blanks: (1) _________ has only two possible values 0 and 1. (2) There are __________bits in a byte. (3) 1 kilobyte of memory space can store.
Machine Architecture CMSC 104, Section 4 Richard Chang 1.
D75P 34 – HNC Computer Architecture Interim Week Hexadecimal revisited! © C Nyssen/Aberdeen College 2003 All images © C Nyssen/Aberdeen College except.
Inside your computer. Hardware Review Motherboard Processor / CPU Bus Bios chip Memory Hard drive Video Card Sound Card Monitor/printer Ports.
Inside your computer. Hardware Motherboard Processor / CPU Bus Bios chip Memory Hard drive Video Card Sound Card Monitor/printer Ports.
3 Computing System Fundamentals
Computer Systems Week 14: Memory Management Amanda Oddie.
The Microprocessor-based PC System Microprocessor Course Electrical Engineering Department University of Indonesia.
DH2T 34 – HNC Computer Architecture 1 Lecture 14 The Fetch-Decode-Execute Cycle [1]. © C Nyssen/Aberdeen College 2003 All images © C Nyssen/Aberdeen College.
D75P 34 – HNC Computer Architecture
Memory management.
Electronic Analog Computer Dr. Amin Danial Asham by.
Computer Architecture Lecture 27 Fasih ur Rehman.
© GCSE Computing Computing Hardware Starter. Creating a spreadsheet to demonstrate the size of memory. 1 byte = 1 character or about 1 pixel of information.
D75P 34 – HNC Computer Architecture Week 8 Direct Memory Access. © C Nyssen/Aberdeen College 2003 All images © C Nyssen/Aberdeen College except where stated.
Lecture 10 Page 1 CS 111 Summer 2013 File Systems Control Structures A file is a named collection of information Primary roles of file system: – To store.
Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
I/O Interface. INTRO TO I/O INTERFACE I/O instructions (IN, INS, OUT, and OUTS) are explained. Also isolated (direct or I/O mapped I/O) and memory-mapped.
Memory Management OS Fazal Rehman Shamil. swapping Swapping concept comes in terms of process scheduling. Swapping is basically implemented by Medium.
Computer Maintenance I
بسم الله الرحمن الرحيم MEMORY AND I/O.
Memory Management Chapter 5 Advanced Operating System.
Lesson Objectives Aims Key Words Paging, Segmentation, Virtual Memory
Computer systems is a 10-credit unit
Memory Management.
Chapter Objectives In this chapter, you will learn:
From Monoprogramming to multiprogramming with swapping
Computing Systems Organization
Computer Maintenance Unit Subtitle: Basic Input/Output System (BIOS)
IRQ, DMA and I/O Ports - Introduction -
Who’s in charge in there?
Networks & I/O Devices.
Memory Addresses.
Presentation transcript:

D75P 34 – HNC Computer Architecture Week 5 Memory Maps. © C Nyssen/Aberdeen College 2003 All images © C Nyssen/Aberdeen College except where stated Prepared 10/9/03

When a computer is first booted up, the operating system and any device drivers are loaded from the Hard Drive into the RAM.

The OS and any drivers will “claim” bits of RAM for their own use. Any other applications to be run from this point on, have to fit themselves in to the available RAM space left.

Memory is assigned to running applications by various algorithms –  First Fit - Take the first thing that comes along.  Best Fit - Allocate the block closest in size.  Worst Fit - Allocate the largest block (Reduces small holes)  Quick Fit - Make several lists, each has a common size block in it.

The number of addresses, or bytes, that can be pointed to by the Address Bus is 2 width of bus. An 8-bit bus can reference 2 8, or 256, addresses. If the locations are 1 byte in size, this is equivalent to ¼ kilobyte addressable memory. The address numbers referenced will run from 0 – 255 (00h – FFh).

Old 16-bit applications used 16-bit data paths, meaning that only the first 64KB of memory could be addressed. The locations referenced would be numbered 0 to (0-FFFFh). This is still a very common configuration. 32-bit applications can use 4GB of addressable memory.

What happens if a system can only reference the first 64KB, but the memory installed is much bigger? The higher addresses have to be referenced indirectly. This means setting up a “stepping stone” within the range that can be directly addressed.

Sometimes it is essential to know which areas of memory are “pre-claimed” by the boot code, Operating System and peripheral drivers. This information is particularly useful to hardware manufacturers and assembly code developers, especially when writing device driver software. We depict this information graphically as a memory map.

You will find many widely differing examples of “memory maps” on the Internet, many written by vintage computer enthusiasts. A true memory map will show the whole of the addressable memory, the spaces claimed and the remaining free space. They are usually labelled in hexadecimal notation.

When drawing your Memory Map for your Outcome question, you will be given the following information.  The width of the address bus  The width of the locations (it might not always be 1 byte!)  The spaces already claimed. You will be given the dimensions in either decimal or hexadecimal notation or by the size in bytes.

We will look at the specification of a very early business computer from Sharp, and draw a partial map of the processor chip.

First work out the size of addressable memory using 2 address bus width. Draw a box and mentally divide it up into that number of boxes. They will be labelled from 0 to (2 address bus width – 1).

Now fill in the claimed space. We are told that the Stack and Monitor Working Store starts at 0 and extends for 4.5 kilobytes. 4.5 kb = 4608 bytes. As each location is 1 byte in size, this gives us 4608 locations. This section of claimed memory therefore occupies boxes 0 – 4607 (0 –11FFh).

The disk system occupies the top 4KB of memory. This is 4096 bytes or locations. The top address was (FFFFh). Counting down from 65535, this gives a starting address of (F000h). We now fill in the disk system space.

The I/O Ports and Timers start from E000h and are 64 bits wide. 64 bits is equivalent to 8 bytes or locations. Counting up from E000h (or decimal 57344), the top address will be E007h (decimal 57351).

RAM started from (4806h) and was 22KB (or bytes) in size. This gives us a top address of (A005h). Immediately after this (no free space between) came 512 bytes of Video RAM. Video RAM therefore starts from (A006h) and ends on (A205h).

Note that if the space occupied is an even number of addresses, and it starts from an odd number, it must always end on an even one (and vice versa).

Lastly, label all the used blocks and free space.

Summary Portions of the RAM will be claimed by the boot code, drivers and operating system on startup. This can be graphically depicted as a Memory Map. The top address will be (2 address bus width – 1). Fill in the used memory as directed in the question. Finally, label all the used blocks and free space.