EECE 344 – Microprocessors Quick Review. Information Representation Integer representation – whole numbers –Unsigned binary –2’s complement –Excess codes.

Slides:



Advertisements
Similar presentations
Computer Architecture
Advertisements

Chapter 8: Central Processing Unit
Interrupts Chapter 8 – pp Chapter 10 – pp Appendix A – pp 537 &
Computer System Overview
CSCI 4717/5717 Computer Architecture
Interrupts (contd..) Multiple I/O devices may be connected to the processor and the memory via a bus. Some or all of these devices may be capable of generating.
1 Lecture 2: Review of Computer Organization Operating System Spring 2007.
Architectural Support for Operating Systems. Announcements Most office hours are finalized Assignments up every Wednesday, due next week CS 415 section.
1 Computer System Overview OS-1 Course AA
Chapter 7 Interupts DMA Channels Context Switching.
Basic Input/Output Operations
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
Midterm Wednesday 11/19 Overview: 25% First Midterm material - Number/character representation and conversion, number arithmetic - DeMorgan’s Law, Combinational.
Chapter 2: Computer-System Structures
Group 5 Alain J. Percial Paula A. Ortiz Francis X. Ruiz.
1 Computer System Overview Chapter 1 Review of basic hardware concepts.
What are Exception and Interrupts? MIPS terminology Exception: any unexpected change in the internal control flow – Invoking an operating system service.
1 Computer System Overview Chapter 1. 2 n An Operating System makes the computing power available to users by controlling the hardware n Let us review.
Computer System Overview Chapter 1. Operating System Exploits the hardware resources of one or more processors Provides a set of services to system users.
Chapter 1 Computer System Overview Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
Machine Instruction Characteristics
COMPUTER ORGANIZATIONS CSNB123 May 2014Systems and Networking1.
Three fundamental concepts in computer security: Reference Monitors: An access control concept that refers to an abstract machine that mediates all accesses.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Basic Architecture Lecture 15. In general, if the number of bits is n, then the number of different combinations of 0s and 1s that can be made is 2 n.
1 CS/COE0447 Computer Organization & Assembly Language Chapter 5 part 4 Exceptions.
Lecture 14 Today’s topics MARIE Architecture Registers Buses
Computer Architecture and Organization
Interrupt driven I/O. MIPS RISC Exception Mechanism The processor operates in The processor operates in user mode user mode kernel mode kernel mode Access.
Operating System Structure A key concept of operating systems is multiprogramming. –Goal of multiprogramming is to efficiently utilize all of the computing.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
Operating Systems 1 K. Salah Module 1.2: Fundamental Concepts Interrupts System Calls.
Silberschatz, Galvin and Gagne  Applied Operating System Concepts Chapter 2: Computer-System Structures Computer System Architecture and Operation.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
Processor Structure and Function Chapter8:. CPU Structure  CPU must:  Fetch instructions –Read instruction from memory  Interpret instructions –Instruction.
Lecture 1: Review of Computer Organization
IT3002 Computer Architecture
Interrupt driven I/O Computer Organization and Assembly Language: Module 12.
Chapter 3 : Top Level View of Computer Functions Basic CPU function, Interconnection, Instruction Format and Interrupt.
بسم الله الرحمن الرحيم MEMORY AND I/O.
Structure and Role of a Processor
MICROPROCESSOR DETAILS 1 Updated April 2011 ©Paul R. Godin prgodin gmail.com.
RISC / CISC Architecture by Derek Ng. Overview CISC Architecture RISC Architecture  Pipelining RISC vs CISC.
1 Computer Architecture. 2 Basic Elements Processor Main Memory –volatile –referred to as real memory or primary memory I/O modules –secondary memory.
Interrupts and Exception Handling. Execution We are quite aware of the Fetch, Execute process of the control unit of the CPU –Fetch and instruction as.
Embedded Real-Time Systems Processing interrupts Lecturer Department University.
CPIT Program Execution. Today, general-purpose computers use a set of instructions called a program to process data. A computer executes the.
Interrupts and exceptions
CS501 Advanced Computer Architecture
Computer Architecture
Day 08 Processes.
Day 09 Processes.
Overview Introduction General Register Organization Stack Organization
Introduction to Micro Controllers & Embedded System Design Stored Program Machine Department of Electrical & Computer Engineering Missouri University.
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Introduction to Microprocessors and Microcontrollers
Computer System Overview
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Module 2: Computer-System Structures
Chapter 5: Computer Systems Organization
Module 2: Computer-System Structures
Computer System Overview
Computer System Overview
Module 2: Computer-System Structures
Interrupts and exceptions
Chapter 10 Instruction Sets: Characteristics and Functions
Presentation transcript:

EECE 344 – Microprocessors Quick Review

Information Representation Integer representation – whole numbers –Unsigned binary –2’s complement –Excess codes Floating point representation – IEEE 32 bit normalized numbers Other: instruction, address, parity, etc.

Basic Computer Architecture Fundamental principle: fetch-decode-execute cycle Instruction types –Work: logic, arithmetic –Movement: between registers, to/from memory –Program control: behavior of program –System control: behavior of system

Comp Arch Information (1) “Normal” registers: MAR, IR, PC, Status, General purpose registers Registers: hold values for work, movement activities as determined by program Memory – used to store programs and data Address space: for both memory and devices. 2 ADR locations for ADR bits

Comp Arch Information (2) Memory Mapped I/O  elements can be addressed like memory locations –I/O devices controlled by writing bits to registers located at specific memory addresses –Status determined by reading memory locations –Data transfer to/from I/O devices done by instructions acting as if working with memory

Comp Arch Information (3) Register set: hold values for work, movement instructions Alternate register set: additional registers allow for fast, easy context switch Complex Instruction Set Computer (CISC) – complex addressing modes – operands located in memory – complexity of program in complex instructions

Comp Arch Information (4) Reduced Instruction Set Computer (RISC) –Strive for single cycle execution –Work done only in registers –Simple addressing modes –Complexity in instruction groups, speed

Comp Arch Information (5) Control registers: used for system control –System status/control (PSR, GCR, GSR) –Interrupt activities (VBR, EPC, EPSR, FPC, FPSR) –Operating System functions (SS0 – SS4)

Interrupt System (1) Provide timely access to processor facilities Mechanism for returning to program without any program change Caused by events needing attention –Errors (div by 0, illegal instr, priv violation, etc) –Intentional events of system (bkpt, traps, etc) –External events (timers, UART, keypad, etc) Response activity contained in ISR

Interrupt System (2) Determine cause of interrupt, which ISR to invoke –Concept of vector for one of several ISRs –Concept of polling for multiple interrupts that share a single ISR –Use of LSB of ISR address to specify reg set –Interrupt controller identifies which interrupts are enabled (bits in NIER) and requesting service (bits in NIPND)

Interrupt System (3): Initialization Activities that occur only once, to allow participation in interrupt system or identify details of interrupt process –Creation of ISRs to deal with interrupt action –Setup of registers in individual functional units –Building Int Vector Table, setup of VBR –Set bits in Interrupt Controller (NIER, FIER) –Setup of PSR (IE, EE, FE)

Interrupt System (4): Steady State Activity defined by ISR (user supplied) In MMC2001, user interrupts: vector 10 –NIPND has info about which interrupt needs service –User must deal with possible events efficiently –User resets flags, re-establish setup condition Return from interrupt – return PC, PSR

MMC2001 Subsystems We have dealt with most MMC2001 subsystems –UART (2 channels) –PWM (6 channels) –Timer –Keypad –LCD –Interrupt controller

Techniques Used in EECE 344 Work accomplished by machine level instructions Subroutines to compartmentalize activity –Subroutine linkage –Parameter passing Movement of information using registers Movement of information using stack Mailbox technique for sending information