September 26, 2001Systems Architecture I1 Systems Architecture I (CS 281-001) Lecture 2: Implementation of a Simplified Computer Jeremy R. Johnson Wednesday,

Slides:



Advertisements
Similar presentations
11-instruction CPU with 2 12 (4096) 16-bit RAM. Illustrates how a general-purpose computer is assembled from gates and registers. The design is simplified.
Advertisements

Topics covered: CPU Architecture CSE 243: Introduction to Computer Architecture and Hardware/Software Interface.
ARITHMETIC LOGIC SHIFT UNIT
Execution of an instruction
Chapter 16 Control Unit Operation No HW problems on this chapter. It is important to understand this material on the architecture of computer control units,
Midterm Wednesday Chapter 1-3: Number /character representation and conversion Number arithmetic Combinational logic elements and design (DeMorgan’s Law)
Chapter 16 Control Unit Implemntation. A Basic Computer Model.
Chapter 15 IA 64 Architecture Review Predication Predication Registers Speculation Control Data Software Pipelining Prolog, Kernel, & Epilog phases Automatic.
Elements of the Computer (How a processor works)
1 CS Programming Languages Random Access Machines Jeremy R. Johnson.
Lecture 13 - Introduction to the Central Processing Unit (CPU)
Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer.
SAP1 (Simple-As-Possible) Computer
Lecture 16 Today’s topics: –MARIE Instruction Decoding and Control –Hardwired control –Micro-programmed control 1.
Computer Architecture and the Fetch-Execute Cycle
Chapter 4 MARIE: An Introduction to a Simple Computer.
CONTROL UNIT OPERATION MICROPROGRAMMED CONTROL. 2.
Lec 3bSystems Architecture1 Systems Architecture Lecture 3b: Review of Sequential Logic Circuits Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan.
Chapter 8: The Very Simple Computer
Model Computer CPU Arithmetic Logic Unit Control Unit Memory Unit
The structure COMPUTER ARCHITECTURE – The elementary educational computer.
Lecture 14 Today’s topics MARIE Architecture Registers Buses
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
Computer Organization CSC 405 (VSC) Very Simple Computer.
Computer Science 101 Computer Systems Organization ALU, Control Unit, Instruction Set.
Lecture 7: 9/17/2002CS149D Fall CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI N305 Information Representation: Machine Instructions.
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.
Computer Systems Organization
Dale & Lewis Chapter 5 Computing components
Computer Organization and Assembly Languages Yung-Yu Chuang 2005/09/29
Basic Elements of Processor ALU Registers Internal data pahs External data paths Control Unit.
GROUP 2 CHAPTER 16 CONTROL UNIT Group Members ๏ Evelio L. Hernandez ๏ Ashwin Soerdien ๏ Andrew Keiper ๏ Hermes Andino.
Chapter 10 Control Unit Operation “Controls the operation of the processor”
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.
BASIC COMPUTER ARCHITECTURE HOW COMPUTER SYSTEMS WORK.
Lec 4-2 Five operations of the machine cycle Fetch- fetch the next program instruction from memory. (PC+1); instruction to IR Decode- decode the instruction.
Types of Micro-operation  Transfer data between registers  Transfer data from register to external  Transfer data from external to register  Perform.
Functions of Processor Operation Addressing modes Registers i/o module interface Memory module interface Interrupts.
Today’s Agenda Exam 2 Part 2 (11:15am-12:30pm)
CS 270: Mathematical Foundations of Computer Science
Lecture 13 - Introduction to the Central Processing Unit (CPU)
Computer Architecture
INDEX UNIT-III PPT SLIDES
BASIC COMPUTER ORGANIZATION AND DESIGN
The Processor and Machine Language
Systems Architecture I (CS ) Lecture 1: Random Access Machines
Computer Architecture and Design Lecture 6
MARIE: An Introduction to a Simple Computer
Systems Architecture I (CS ) Lecture 2: A Simplified Computer
CDCA 2203 Elements of Computer Architecture Open University Malaysia
THE FETCH-EXECUTE CYCLE.
William Stallings Computer Organization and Architecture 8th Edition
Computer Architecture
Chapter 14 Control Unit Operation
A Discussion on Assemblers
Systems Architecture I
Program Execution.
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.
Systems Architecture I (CS ) Lecture 1: Random Access Machines
UNIT – III Microprogrammed Control
COMPUTER ARCHITECTURE
Presentation transcript:

September 26, 2001Systems Architecture I1 Systems Architecture I (CS ) Lecture 2: Implementation of a Simplified Computer Jeremy R. Johnson Wednesday, September 26, 2001

September 26, 2001Systems Architecture I2 Introduction Objective: To develop a simple model of a computer and its execution that is capable of executing RAM programs. To introduce the concept of abstraction in computer design. The model will be given schematically with timing sequences. RAL instructions will be implemented using microinstructions described in a notation called “Register Transfer Language” (RTL). The control logic for implementing microinstructions will be described at the gate level. References: Dewdney, The New Turing Omnibus (Chapter 48).

September 26, 2001Systems Architecture I3 SCRAM A Simple but Complete Random Access Machine. This computer can execute RAL instructions. 8-bit words 16 word memory (4 address bits) Instructions (4 bit opcode, 4 bit operand) 7 registers –PC (program counter) –IR (instruction register - IR(C) = instruction code, IR(O) = operand –MAR (memory address register) –MBR (memory buffer register) –AC (accumulator) –AD (register for addition internal to the ALU - arithmetic logic unit) Driven by the CLU (control logic unit) A timer T generates pulses that are decoded into separate input lines to the CLU

September 26, 2001Systems Architecture I4 Fetch and Execute A cycle of operation consists of two stages –The fetch cycle gets the next executable instruction and loads it into the IR –The execute cycle performs the instruction in the IR The fetch and execute cycles are written as a sequence of micro-instructions described in a notation called “Register Transfer Language” (RTL)

September 26, 2001Systems Architecture I5 MBR MAR AC ALU PC IR(C) IR(O) Memory MUX MUX t 9 t 8 t 7 t 6 t 5 t 4 t 3 t 2 t 1 t 0 q 9 q 8 q 7 q 6 q 5 q 4 q 3 q 2 q 1 x 13 x 12 x 11 x 10 x 9 x 8 x 7 x 6 x1x2x3x4x5x1x2x3x4x5 DecoderT s s s s LOAD LOAD AD READ/ WRITE INC CLEAR INC CLU

September 26, 2001Systems Architecture I6 Instruction Opcodes LDA 0001 X; Load contents of memory address X into the AC LDI 0010 X; Indirectly load contents of address X into the AC STA 0011 X; Store contents of AC at memory address X STI 0100 X; Indirectly store contents of AC at address X ADD 0101 X; Add contents of address X to the AC SUB 0110 X; Subtract contents of address X from the AC JMP 0111 X; Jump to the instruction labeled X JMZ 1000 X; Jump to instruction X if the AC contains 0

September 26, 2001Systems Architecture I7 MicroProgram Fetch cycle –t 0 : MAR  PC –t 1 : MBR  M; PC  PC + 1 –t 2 : IR  MBR Execute cycle (LDA) –q 1 t 3 : MAR  IR(O) –q 1 t 4 : MBR  M –q 1 t 5 : AC  MBR

September 26, 2001Systems Architecture I8 MicroProgram Execute cycle (LDI) –q 2 t 3 : MAR  IR(O) –q 2 t 4 : MBR  M –q 2 t 5 : MAR  MBR –q 2 t 6 : MBR  M –q 2 t 7 : AC  MBR Execute cycle (ADD) –q 5 t 3 : MAR  IR(O) –q 5 t 4 : MBR  M –q 5 t 5 : AD  MBR –q 5 t 6 : AD  AD + AC –q 5 t 7 : AC  AD

September 26, 2001Systems Architecture I9 Logic for the Fetch Cycle –t 0 : MAR  PC –t 1 : MBR  M; PC  PC + 1 –t 2 : IR  MBR t0t0 x 10 x4x4 t1t1 x7x7 x5x5 x 13 t2t2 x1x1 x2x2

September 26, 2001Systems Architecture I10 Logic for Loading the Accumulator t3t3 x 10 t4t4 x7x7 t5t5 x 11 q3q3 MAR  IR(0) MBR  M AC  MBR x4x4 x2x2 x5x5 x 12

September 26, 2001Systems Architecture I11 CLU Logic Some of the output lines from the two previous slides appear in both circuits. It is necessary to have some logic to connect and coordinate the individual outputs to the wires leaving the CLU.

September 26, 2001Systems Architecture I12 Exercises Write microprograms for STA, STI, and JMZ. Implement the microprograms in standard logic. Design the portion of the CLU that determines the two output lines labeled x 10. Input to this circuit will be one or both of the lines previously labeled x 10 in the individual circuits for LDA, LDI, and the other circuits. Convert the following program to the equivalent set of binary words, as indicated in this chapter. This is called machine code. Trace the execution of the program by listing the q, t, and x variables. –LDA 1 –ADD 2 –STA 3