Introduction to Computer Systems CCE 1011. INPUT Human/Machine Interface DATA Organisation Access Analysis Computation Synthesis PROCESSING Systems Programming.

Slides:



Advertisements
Similar presentations
CPU Structure and Function
Advertisements

Computer Architecture and Organization
1 (Review of Prerequisite Material). Processes are an abstraction of the operation of computers. So, to understand operating systems, one must have a.
CSCI 4717/5717 Computer Architecture
1 Lecture 2: Review of Computer Organization Operating System Spring 2007.
1 Computer System Overview OS-1 Course AA
1 CSIT431 Introduction to Operating Systems Welcome to CSIT431 Introduction to Operating Systems In this course we learn about the design and structure.
University College Cork IRELAND Hardware Concepts An understanding of computer hardware is a vital prerequisite for the study of operating systems.
TECH CH03 System Buses Computer Components Computer Function
Computer Organization and Assembly language
CS-334: Computer Architecture
Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer.
Computer Systems Overview. Page 2 W. Stallings: Operating Systems: Internals and Design, ©2001 Operating System Exploits the hardware resources of one.
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.
THE COMPUTER SYSTEM. Lecture Objectives Computer functions – Instruction fetch & execute – Interrupt Handling – I/O functions Interconnections Computer.
Computer Architecture and Organization Introduction.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Top Level View of Computer Function and Interconnection.
Ihr Logo Operating Systems Internals & Design Principles Fifth Edition William Stallings Chapter 1 Computer System Overview.
Chapter 1 Introduction. Architecture & Organization 1 Architecture is those attributes visible to the programmer —Instruction set, number of bits used.
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
Interrupts, Buses Chapter 6.2.5, Introduction to Interrupts Interrupts are a mechanism by which other modules (e.g. I/O) may interrupt normal.
CPU How It Works. 2 Generic Block Diagram CPU MemoryInputOutput Address Bus Data Bus.
COMPUTER ARCHITECTURE. Recommended Text 1Computer Organization and Architecture by William Stallings 2Structured Computer Organisation Andrew S. Tanenbaum.
2 nd Year - 1 st Semester Asst. Lect. Mohammed Salim Computer Architecture I 1.
COMPUTER ORGANIZATIONS CSNB123. COMPUTER ORGANIZATIONS CSNB123 Expected Course Outcome #Course OutcomeCoverage 1Explain the concepts that underlie modern.
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
EEE440 Computer Architecture
ECEG-3202 Computer Architecture and Organization Chapter 3 Top Level View of Computer Function and Interconnection.
Fall 2000M.B. Ibáñez Lecture 25 I/O Systems. Fall 2000M.B. Ibáñez Categories of I/O Devices Human readable –used to communicate with the user –video display.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Architecture 2 nd year (computer and Information Sc.)
CSC 235 Computer Organization. Computer Organizaton ä Top_Level Structure ä The von-Neumann Machine ä Stack Machine ä Accumulator Machine ä Load/Store.
Stored Program A stored-program digital computer is one that keeps its programmed instructions, as well as its data, in read-write,
Chapter 6: Computer Components Dr Mohamed Menacer Taibah University
Dr Mohamed Menacer College of Computer Science and Engineering, Taibah University CE-321: Computer.
Lecture 1: Review of Computer Organization
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Overview von Neumann Architecture Computer component Computer function
Chapter 3 : Top Level View of Computer Functions Basic CPU function, Interconnection, Instruction Format and Interrupt.
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
Group 1 chapter 3 Alex Francisco Mario Palomino Mohammed Ur-Rehman Maria Lopez.
Structure and Role of a Processor
1 Computer Architecture. 2 Basic Elements Processor Main Memory –volatile –referred to as real memory or primary memory I/O modules –secondary memory.
Chapter 3 System Buses.  Hardwired systems are inflexible  General purpose hardware can do different tasks, given correct control signals  Instead.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
Computer Systems Overview. Lecture 1/Page 2AE4B33OSS W. Stallings: Operating Systems: Internals and Design, ©2001 Operating System Exploits the hardware.
Computer System Overview
Chapter 3 Top Level View of Computer Function and Interconnection
Computer System Overview
ECEG-3202 Computer Architecture and Organization
BIC 10503: COMPUTER ARCHITECTURE
Computer Architecture
Computer System Overview
Information Representation: Machine Instructions
William Stallings Computer Organization and Architecture 7th Edition
Presentation transcript:

Introduction to Computer Systems CCE 1011

INPUT Human/Machine Interface DATA Organisation Access Analysis Computation Synthesis PROCESSING Systems Programming Software Organisation Operations Handling OUTPUT Human/Machine Interface CCE1011_07_1.1 DATA Storage Magnetic Discs Optical Discs Magnetic Tapes

Human Machine Interface Machine is electronic Machine is binary Human input/output Five senses: vision Hearing and speech Touch Taste Smell Special input/output units to adapt and convert between humans and machine CCE1011_07_1.2

Electronic Digital System Requires electronic building blocks for operation. Requires boolean mathematics for analysis and design. Requires systems methods of interpreting binary sequences as eitherdata orprogram instruction CCE1011_07_1.3

Data Processing The computer is a state sequential machine. States give rise to machine cycles. Machine cycles make up machine instructions. Systems programming interface higher level program languages to the machine instructions. Millions of instructions per second can be handled. Processor architecture handles simultaneous instruction processing using pipelining or parallel paths. Systems organisation handles movement of data and instructions in and out of the processing unit Data codes and standards interpret binary sequences into characters, pixels, audio, etc depending on the I/O device CCE1011_07_1.4

Data Storage Volatile storage in RAM – order of few GB Permanent Read/Write Storage – Hard Disk hundreds of GB Transportable Storage – CD hundreds of MB -- DVD tens of GB -- USB storage device GB Database Management Systems (DBMS) to store and access data quickly and reliably. Data storage includes text, vision, audio, general multimedia. CCE1011_07_1.5

Data Communications Processing possible on remote machines. Client-Server Model – Local Area Networks (LAN) Virtual worldwide processing via Internet. Personal Multimedia access via wireless electronic equipment – mobiles, wireless LANs, GSM. Voice, pictures, videos and data streaming in real-time using the same common backbone telecommunications infrastructure. CCE1011_07_1.6

Architecture & Organization 1 Architecture is those attributes visible to the programmer –Instruction set, number of bits used for data representation, I/O mechanisms, addressing techniques. –e.g. Is there a multiply instruction? Organization is how features are implemented –Control signals, interfaces, memory technology. –e.g. Is there a hardware multiply unit or is it done by repeated addition? Stallings_COA7e1_2

Functional View Stallings_COA7e1_6

Structure - Top Level Computer Main Memory Input Output Systems Interconnection Peripherals Communication lines Central Processing Unit Computer Stallings_COA7e1_11

Structure - The CPU Computer Arithmetic and Login Unit Control Unit Internal CPU Interconnection Registers CPU I/O Memory System Bus CPU Stallings_COA7e1_12

von Neumann/Turing Stored Program concept Main memory storing programs and data ALU operating on binary data Control unit interpreting instructions from memory and executing Input and output equipment operated by control unit Princeton Institute for Advanced Studies –IAS Completed 1952 Stallings_COA7e2_4

Structure of von Neumann machine Stallings_COA7e2_5

IAS - details 1000 x 40 bit words –Binary number –2 x 20 bit instructions Set of registers (storage in CPU) –Memory Buffer Register –Memory Address Register –Instruction Register –Instruction Buffer Register –Program Counter –Accumulator –Multiplier Quotient Stallings_COA7e2_6

Structure of IAS – detail Stallings_COA7e2_7

Special Registers MAR – Memory address Register is a processor register that contains the address of the memory location being or to be accessed MBR – Memory Buffer (Data) Register is a processor register that contains the data to be written to memory or where the data read from memory is stored PC – Program Counter is a processor register that contains the start address in memory of the next instruction to be executed IR – Instruction Register contains a copy of the instruction operand fetched from memory ACC – Accumulator is a register associated with the ALU that is used as a working register to store operands that are to be used in the ALU. CCE1011_07_1.7

A register is a group of binary storage cells or flipflops. Registers usually have parallel load enable and are synchronised in their timing operation by a clock input 4-bit register Enable control line Clock input Parallel loading The 4-bit register above can have its four cells loaded in parallel, if the Enable is active and when the clock is active. Computer registers started as 4-bit registers and today they are 64-bit Registers. CCE1011_07_1.8

Memory A memory location is distinguished by an address. At every location there are a number of bits stored as one word. Memory is still quoted in terms of bytes (8 bits) but it can be organised to have At each address 32 bits (4 bytes) or 64 bits (8 bytes) There are 2 control lines associated with memory access A read control line and A write control line. An active read means data is being read from memory to processor An active write means data is written from processor to memory CCE1011_07_1.9

Main memory contains data that can be interpreted either as an instruction Or as operand data. This interpretation is based on the principle of the fetch – execute cycle Of an instruction cycle. Instruction Cycle 1.Fetch Cycle (i) PC MAR; Read (from memory to MBR) (ii) MBR IR 2. Execute cycle (i) decode opcode of instruction (ii) update the PC register contents for the next instruction (iii) execute the instruction CCE1011_07_1.10

Program flow A program has associated procedures or methods Branching to a procedure or method necessitates that present data and a return address be stored A part of main memory called the stack is used to remember data and addresses A stack pointer register in the processor is used to point at top of stack CCE1011_07_1.11

Interrupts Mechanism by which other modules (e.g. I/O) may interrupt normal sequence of processing Program –e.g. overflow, division by zero Timer –Generated by internal processor timer –Used in pre-emptive multi-tasking I/O –from I/O controller Hardware failure –e.g. memory parity error Stallings_COA7e3_12

Interrupt Cycle Added to instruction cycle Processor checks for interrupt –Indicated by an interrupt signal If no interrupt, fetch next instruction If interrupt pending: –Suspend execution of current program –Save context –Set PC to start address of interrupt handler routine –Process interrupt –Restore context and continue interrupted program Stallings_COA7e3_14

Transfer of Control via Interrupts Stallings_COA7e3_15

Instruction Cycle with Interrupts Stallings_COA7e3_16

Advantages of Interrupts Processor initialises an I/O operation (4) (necessary both with and without interrupts) I/O Operation starts – without interrupts processor waits till end - with interrupts processor starts some other task (2a) At end of I/O - without interrupts processor finishes the I/O operation (5), then starts another task (2) with interrupts, processor receives an interrupt, stops the current task,(2a), services the interrupt to finish the I/O operation,(5), and continues the interrupted task, (2b). CCE1011_07_1.12

Program Timing - Short I/O Wait Stallings_COA7e3_17

Multiple Interrupts Disable interrupts –Processor will ignore further interrupts whilst processing one interrupt –Interrupts remain pending and are checked after first interrupt has been processed –Interrupts handled in sequence as they occur Define priorities –Low priority interrupts can be interrupted by higher priority interrupts –When higher priority interrupt has been processed, processor returns to previous interrupt Stallings_COA7e3_20

Multiple Interrupts - Sequential Stallings_COA7e3_21

Multiple Interrupts – Nested Stallings_COA7e3_22