SAP1 (Simple-As-Possible) Computer

Slides:



Advertisements
Similar presentations
Computer Architecture and Microprocessors
Advertisements

Fetch-Execute cycle. Memory Read operation Read from memory.
The Fetch – Execute Cycle
Central Processing Unit
Control path Recall that the control path is the physical entity in a processor which: fetches instructions, fetches operands, decodes instructions, schedules.
EEE 4211 Microprocessor and I/O System
Processor System Architecture
DH2T 34 Computer Architecture 1 LO2 Lesson Two CPU and Buses.
Dale & Lewis Chapter 5 Computing components. Let’s design a computer Generic CPU with registers −Program counter (PC) – 5 bits (size of addresses) −Instruction.
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.
The Computer Processor
SAP1 (Simple-As-Possible) Computer
ARCHITECTURE The architecture of SAP-1 shows that it is a bus-organized computer.All register outputs to the W bus are three-state;this allows orderly.
Module 8 Part B Adapted By and Prepared James Tan © 2001.
Model Computer CPU Arithmetic Logic Unit Control Unit Memory Unit
1 Purpose of This Chapter In this chapter we introduce a basic computer and show how its operation can be specified with register transfer statements.
Lec 5 Basic Computer Organization
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.
8085. Microcomputer Major components of the computer - the processor, the control unit, one or more memory ICs, one or more I/O ICs, and the clock Major.
September 26, 2001Systems Architecture I1 Systems Architecture I (CS ) Lecture 2: Implementation of a Simplified Computer Jeremy R. Johnson Wednesday,
COMPILERS CLASS 22/7,23/7. Introduction Compiler: A Compiler is a program that can read a program in one language (Source) and translate it into an equivalent.
Dale & Lewis Chapter 5 Computing components
Computer Organization and Assembly Languages Yung-Yu Chuang 2005/09/29
Computer Architecture Lecture 4 by Engineer A. Lecturer Aymen Hasan AlAwady 17/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
An Adder A Subtractor. A and B are the inputs of the adder/ subtractor R is the output of the adder/ subtractor F is the control to tell it to add or.
Designing a CPU –Reading a programs instruction from memory –Decoding the instruction –Executing the instruction –Transferring Data to/From memory / IO.
Jeremy R. Johnson William M. Mongan
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
8 085Microprocessor Temp Reg (8) Accumulator (A reg) Flag flip flops(8) Instruction Register (8) Arithmetic Logic Unit ALU Instruction Decoder and Machine.
Functions of Processor Operation Addressing modes Registers i/o module interface Memory module interface Interrupts.
3.1.4 Hardware a. describe the function and purpose of the control unit, memory unit and ALU (arithmetic logic unit) as individual parts of a computer;
STUDY OF PIC MICROCONTROLLERS.. Design Flow C CODE Hex File Assembly Code Compiler Assembler Chip Programming.
8085 Microprocessor Architecture
CS 270: Mathematical Foundations of Computer Science
Gunjeet Kaur Dronacharya Group of institutions
Introduction to Registers
Lecture on Microcomputer
Micro-Operations A computer executes a program Fetch/execute cycle
Chapter 4 The Von Neumann Model
William Stallings Computer Organization and Architecture
ADVANCED PROCESSOR ARCHITECTURE
William Stallings Computer Organization and Architecture 7th Edition
Ghifar Parahyangan Catholic University Sept 12, 2011
Computer Organization and Design
BASIC COMPUTER ORGANIZATION AND DESIGN
8085 microprocessor.
Chapter 15 Control Unit Operation
Computer Architecture
Chapter 4 The Von Neumann Model
BASIC COMPUTER ORGANIZATION AND DESIGN
Number Representations and Basic Processor Architecture
By: A. H. Abdul Hafez CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU
Functional Units.
MARIE: An Introduction to a Simple Computer
Systems Architecture I (CS ) Lecture 2: A Simplified Computer
Computer Architecture and Organization: L11: Design Control Lines
William Stallings Computer Organization and Architecture 7th Edition
8085 Microprocessor Architecture
Chapter 14 Control Unit Operation
Fundamental Concepts Processor fetches one instruction at a time and perform the operation specified. Instructions are fetched from successive memory locations.
Computer Architecture
William Stallings Computer Organization and Architecture 8th Edition
By: A. H. Abdul Hafez Computer Architecture and Organization: L06: Stored program and Instruction code.
The Stored Program Computer
8085 Microprocessor Architecture
Computer Organization and Assembly Languages Yung-Yu Chuang 2005/09/29
Information Representation: Machine Instructions
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
Computer Architecture
Presentation transcript:

SAP1 (Simple-As-Possible) Computer

Architecture Program counter 4-bit wide Input & MAR Includes the address & data switch registers Send 4 address bits and 8 data bits to the RAM RAM 16 x 8 Instruction Register Loads the content of the addressed memory location through the W bus Upper nibble goes directly to the Controller-Sequencer Lower nibble is read onto the W bus when needed

Architecture Controller-Sequencer Before each computer run CLR’ signal sent to PC –resets the program counter to 0000 CLR signal sent to IR – wipes out the last instruction in the IR CLK signal sent to all buffer registers – synchronizes the operation of the computer CLK’ signal to PC The 12 bits that comes out controls the rest of the computer The 12 wires carrying the control word is called control bus

Architecture Control word format CON = CP EP L’M CE’ L’I E’I L’ AEA SU EU L’B L’O This word determines how the registers will react to the next positive CLK edge Ex. EP = high, L’M = low – mean that the contents of PC are latched into the MAR on the next (+) clock edge Ex. CE’ = low, L’A = low – mean that the addressed RAM word will be transferred to the accumulator on the next (+) clock edge

Architecture Accumulator Adder-Subtracter Buffer register 8-bit wide When EA is high, the content appears on the W bus Adder-Subtracter 2’s complement adder-subtracter When SU is low, S = A + B When SU is high, S = A + B’ When EU is high, the content appears on the W bus

Architecture B Register Output Register Binary display Another 8-bit wide buffer register Used in arithmetic operations When L’B is low & (+) clock edge, the word on the W bus will be loaded Output Register Often called the output port When EA is high & L’O is low , the next (+) clock edge loads the accumulator word into the output register Binary display Row of 8 LEDs Each LED connects to 1 flip-flop (FF) of the output port

Architecture Control Unit ALU PC Controller-Sequencer IR Memory Accumulator B register Adder-subtracter Memory MAR I/O unit Input programming switches Output port Binary display

Instruction Set LDA ADD Load the accumulator Ex LDA 5H (R5 = 1010 1111) A = 1010 1111 ADD Ex ADD 3H Adds the content of memory location 3H to the accumulator content, save the result to the accumulator Content of R3 is loaded to B

Instruction Set SUB OUT HLT Ex SUB 2H Subtracts the content of memory location 2H from the accumulator content, save the result to the accumulator Content of R3 is loaded to B OUT Transfer the accumulator content to the output port HLT Tells the computer to stop processing data

Instruction Set Memory-reference instructions LDA, ADD, SUB Not Memory-reference instructions OUT, HLT Mnemonics – abbreviated instructions SAP1 – upward compatible with the 8080/8085 instruction set

Fetch Cycle T1 – address state - the address from PC is transferred to MAR CON = CP EP L’M CE’ L’I E’I L’A EA SU EU L’B L’O = 0 1 0 1 1 1 1 0 0 0 1 1 T2 – increment state - PC +1 = 1 0 1 1 1 1 1 0 0 0 1 1

Fetch Cycle T3 – memory state - the addressed RAM instruction is transferred from the memory to IR CON = CP EP L’M CE’ L’I E’I L’A EA SU EU L’B L’O = 0 0 1 0 0 1 1 0 0 0 1 1

Execute Cycle LDA Routine – ex LDA 9H IR = 0000 1001 T4 – 0000 goes to the controller-sequencer - 1001 goes to the MAR CON = CP EP L’M CE’ L’I E’I L’A EA SU EU L’B L’O = 0 0 0 1 1 0 1 0 0 0 1 1 T5 – the addressed data word will be loaded to the Accumulator = 0 0 1 0 1 1 0 0 0 0 1 1 T6 – no operation state