Lecture 10 Instruction Set Architecture

Slides:



Advertisements
Similar presentations
Computing Systems Organization
Advertisements

Chapter Three: Interconnection Structure
Computer Architecture
Mr. Gursharan Singh Tatla
Computer Memory and Data Transfer
Digital Computer Fundamentals
MEMORY popo.
1 Operating Systems Input/Output Management. 2 What is the I/O System A collection of devices that different sub- systems of a computer use to communicate.
Instruction Set-Intro
Control path Recall that the control path is the physical entity in a processor which: fetches instructions, fetches operands, decodes instructions, schedules.
1 Microprocessor History. 2 The date is the year that the processor was first introduced. Many processors are re- introduced at higher clock speeds for.
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
DH2T 34 Computer Architecture 1 LO2 Lesson Two CPU and Buses.
Computer Organization. This module surveys the physical resources of a computer system. –Basic components CPUMemoryBus I/O devices –CPU structure Registers.
CHAPTER 4 COMPUTER SYSTEM – Von Neumann Model
1 Sec (2.1) Computer Architectures. 2 For temporary storage of information, the CPU contains cells, or registers, that are conceptually similar to main.
Computer Organization and Assembly language
Basic Computer Organization CH-4 Richard Gomez 6/14/01 Computer Science Quote: John Von Neumann If people do not believe that mathematics is simple, it.
Processor Types And Instruction Sets Barak Perelman CS147 Prof. Lee.
6. The CPU and Memory Chapt. 7.
CEG 320/520: Computer Organization and Assembly Language Programming1 CEG 320/520 Computer Organization and Assembly Language Programming.
CS-334: Computer Architecture
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
Computer Organization
The Structure of the CPU
Computer Organization Computer Organization & Assembly Language: Module 2.
Computer Systems 1 Fundamentals of Computing The CPU & Von Neumann.
The CPU The Central Presentation Unit Main Memory and Addresses Address bus and Address Space Data Bus Control Bus The Instructions set Mnemonics Opcodes.
4-1 Chapter 4 - The Instruction Set Architecture Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
THE COMPUTER SYSTEM. Lecture Objectives Computer functions – Instruction fetch & execute – Interrupt Handling – I/O functions Interconnections Computer.
4-1 Chapter 4 - The Instruction Set Architecture Department of Information Technology, Radford University ITEC 352 Computer Organization Principles of.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Top Level View of Computer Function and Interconnection.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.
4-1 Chapter 4 - The Instruction Set Architecture Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
EEE440 Computer Architecture
4-1 Chapter 4 - The Instruction Set Architecture Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles.
Aug CMSC 104, LECT-021 Machine Architecture Some material in this presentation is borrowed form Adrian Ilie From The UNIVERSITY of NORTH CAROLINA.
Computer System Internal components - The processor - Main memory - I / O controllers - Buses External components (peripherals). These include: - keyboard.
ECEG-3202 Computer Architecture and Organization Chapter 3 Top Level View of Computer Function and Interconnection.
7. Peripherals 7.1 Introduction of peripheral devices Computer Studies (AL)
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
20 October 2015Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
Microarchitecture. Outline Architecture vs. Microarchitecture Components MIPS Datapath 1.
Dr Mohamed Menacer College of Computer Science and Engineering, Taibah University CE-321: Computer.
ITEC 352 Lecture 19 Functions in Assembly. Functions + Assembly Review Questions? Project due on Friday Stacks Function activation / deactivation.
Engr. Muhammad Zakir Shaikh Visiting Faculty IBT LUMHS. 1.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
Chapter 4 The Von Neumann Model
Computer Architecture and Organization Miles Murdocca and Vincent Heuring Chapter 4 – The Instruction Set Architecture.
ECEG-3202 Computer Architecture and Organization
What is Computer Architecture?
Chapter 4 Introduction to Computer Organization
What is Computer Architecture?
What is Computer Architecture?
CSE378 Introduction to Machine Organization
William Stallings Computer Organization and Architecture
Chapter 4 The Von Neumann Model
Presentation transcript:

Lecture 10 Instruction Set Architecture

Review Latches Flip/flops SR D T JK What happens if we chain D flip flops together?

Outline The instruction set architecture Chapter 4 in textbook

Problem What have you learned so far in this course? How do you structure what you have learned (or do you see any structure)? In terms of programming, what have we been working on so far? What are we missing?

Machine language is the language which a computer understands. It is represented in bits. As it is difficult to program using bits, we use actual words such as “add” etc… This is called assembly language.

Assembly languages Dependent on the specific architecture, e.g., x86, ARC etc…, In your textbook, they use simplified SPARC architecture (this is what SUN machines use) called ARC. Next: review of some of the components of a computer.

Von Neumann Three major parts of a computer: CPU, Memory and the bus that connects CPU from the memory. Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring There a number of buses (over 100) in a computer. However, we can classify them into three main groups: Data bus, Address Bus and Control Bus. Bus that connects major components of a computer is called System Bus

System bus Aspects of a bus Multiple devices can connect to the same bus. If two devices transmit at same time – signals will be garbled Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring There a number of buses (over 100) in a computer. However, we can classify them into three main groups: Data bus, Address Bus and Control Bus. Bus that connects major components of a computer is called System Bus Aspects of a bus

Data bus Data Bus: Move data between system modules. Made of several separate wires (usually from 32 to any number). Each wire is called a line. A line can carry 1 bit at a time. The number of lines determines the number of bits that can be transmitted at a given time. The number of lines is also called width.

Address bus Address Bus: Specify the source and destination of the data on the data bus. The width of the address bus (the number of lines/wires that make the bus) determines the memory capacity of a system. E.g., if the bus width is 16 bits (there are 16 wires), then the capacity is: ______________ Usually the address can be divided into two parts: high parts contain module (e.g.: Memory, I/O etc.) address, lower part contains memory within a module.

Control bus The Control Bus: Sends the timing information of when a module can send or receive data. Ensures data is not garbled. Specific controls it sends: memory write/read, I/O write/read, Bus request, Bus grant, Clock, Reset etc…

Using the system bus If one module (e.g, I/O) wants to send data to another module (e.g., memory): It must first request “bus grant” access Transfer the data. To execute a program: Program is first loaded from disk into memory. Each instruction is brought into the ALU from the memory along with data that needs to execute the instruction. Output is then placed on a device such as TTY display or disk. Everything is orchestrated by the Control Unit

Memory Collection of consecutively numbered registers. Each register holds a byte or usually (these days) 4/8 bytes. Each register has an address, called memory location Such machines are called byte-addressable In memory, we use different terms …

Sizes • A byte is composed of 8 bits. Two nibbles make up a byte. • Halfwords, words, doublewords, and quadwords are composed of bytes as shown below:

Big / Little Endian • In a byte addressable memory, the smallest data that can be addressed is a byte. So how can we store a word? It is easy to see that to store a word we will need 4 bytes or 4 memory locations. We distinguish between two ways of storing a word in 4 bytes: big endian and little endian Usually, the specific way of storing depends on the Operating System Sometimes this poses interesting problems, e.g., what if two machines have to communicate with each other and they use different endian ways to store data? E.g., in computer networks.

Summary so far … Memory in a computer can be byte-addressable, i.e., the smallest unit of memory that can be addressed is a byte. To store a word using multiple bytes there are two ways: big endian and little endian. Memory locations are arranged consecutively. E.g., to store a word, we use 4 consecutive bytes. Next: Memory map

Memory map Every computer has a finite amount of memory. This memory has to be shared by several entities: the operating system, multiple programs and input and output buffers (e.g., Network card) Hence, in most architectures to make this management easier, memory is divided into sections Each section is assigned to an entity. This is a memory map.

ARC Map Addresses Unique numbers that identify each word. e.g., 2048 Address space: The amount of total memory that can be addressed. With 32 bits, in a byte addressable memory, we can address, 232 bytes. In most architectures, I/O devices like hard disk are treated like memory, i.e., to write onto the disk, the CPU will issue a memory location. This is called memory mapped IO

Summary For this chapter we will confine ourselves to one contiguous memory. We however need to remember that there are different types of memory: including cache etc.. We will look at these during a later week. But tomorrow, we will look at the chief: the CPU.