Recap: Registers A register is a single byte (or word) memory element. Once written to (clocked) it remembers the input byte and outputs the same number.

Slides:



Advertisements
Similar presentations
Computer Organization, Bus Structure
Advertisements

Tutorial 2 Sequential Logic. Registers A register is basically a D Flip-Flop A D Flip Flop has 3 basic ports. D, Q, and Clock.
Control path Recall that the control path is the physical entity in a processor which: fetches instructions, fetches operands, decodes instructions, schedules.
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
Give qualifications of instructors: DAP
CS 151 Digital Systems Design Lecture 19 Sequential Circuits: Latches.
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Engineering 4862 Microprocessors Lecture 23 Cheng Li EN-4012
8086.  The 8086 is Intel’s first 16-bit microprocessor  The 8086 can run at different clock speeds  Standard 8086 – 5 MHz  –10 MHz 
LOGIC GATES ADDERS FLIP-FLOPS REGISTERS Digital Electronics Mark Neil - Microprocessor Course 1.
SYSTEM CLOCK Clock (CLK) : input signal which synchronize the internal and external operations of the microprocessor.
EE1A2 Microprocessor Systems & Digital Logic Part I Digital Electronic System Design Dr. T. Collins.
The 8085 Microprocessor Architecture
Microprocessor and Microcontroller
The 8085 Microprocessor Architecture. Contents The 8085 and its Buses. The address and data bus ALU Flag Register Machine cycle Memory Interfacing The.
EE1A Revision What should you be expected to do in a typical exam question ? Understanding of basic principles. Ability to perform simple circuit analysis.
DIRECT MEMORY ACCESS CS 147 Thursday July 5,2001 SEEMA RAI.
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
Lecture 4: Computer Memory
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ input/output and clock inputs Sequence of control signal combinations.
I/O Subsystem Organization and Interfacing Cs 147 Peter Nguyen
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Hao Ji.
Introduction to Registers Being just logic, ALUs require all the inputs to be present at once. They have no memory. ALU AB FS.
Fall 2007 L16: Memory Elements LECTURE 16: Clocks Sequential circuit design The basic memory element: a latch Flip Flops.
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.
GURSHARAN SINGH TATLA PIN DIAGRAM OF 8085 GURSHARAN SINGH TATLA
9/15/09 - L25 Registers & Load Enable Copyright Joanne DeGroat, ECE, OSU1 Registers & Load Enable.
Counters and Registers
Chapter 4 Register Transfer and Microoperations
The Microcomputer System In this presentation you will: Investigate the microprocessor Title Page.
Embedded Systems Design 1 Lecture Set 6 I/O Ports.
Chapter 5 Basic Processing Unit
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
CS1Q Computer Systems Lecture 8
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
Eng.Samra Essalaimeh Philadelphia University 2013/ nd Semester PIC Microcontrollers.
Computer Architecture Lecture 09 Fasih ur Rehman.
8279 KEYBOARD AND DISPLAY INTERFACING
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits II.
Registers Page 1. Page 2 What is a Register?  A Register is a collection of flip-flops with some common function or characteristic  Control signals.
INTRODUCTION.  Upon completing this topic, you should be able to: Illustrate a basic elements of digital computer system and their functions, Depicts.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
IT253: Computer Organization Lecture 9: Making a Processor: Single-Cycle Processor Design Tonga Institute of Higher Education.
Computer Structure & Architecture 7b - CPU & Buses.
Microcontroller Intel 8051 [I/O Ports]. Pin out of the 8051 –40 pin package –32 pins are used for the 4 ports. –V CC / V SS –ALE Address Latch Enable.
MICROPROCESSORS AND APPLICATIONS
8279 KEYBOARD AND DISPLAY INTERFACING
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
THE MICROPROCESSOR A microprocessor is a single chip of silicon that performs all of the essential functions of a computer central processor unit (CPU)
MACHINE CYCLE AND T-STATE
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Microprocessors 3 Buses, Addresses and Machine Cycles 1 Modified April 2011 ©Paul R. Godin prgodin gmail.com.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ read/write and clock inputs Sequence of control signal combinations.
B ASIC I NTERFACING C ONCEPTS ( CONT.) L ECTURE 2 Gunjeet Kaur Dronacharya Group of institutions.
Copyright © 2001 Stephen A. Edwards All rights reserved Busses  Wires sometimes used as shared communication medium  Think “party-line telephone”  Bus.
Everybody.
The 8085 Microprocessor Architecture
Computer Architecture & Operations I
Introduction to Registers
Chap 7. Register Transfers and Datapaths
The 8085 Microprocessor Architecture
8085 Microprocessor Architecture
Chapter 11 Sequential Circuits.
Interfacing Memory Interfacing.
8085 Microprocessor Architecture
The 8085 Microprocessor Architecture
8085 Microprocessor Architecture
Presentation transcript:

Recap: Registers A register is a single byte (or word) memory element. Once written to (clocked) it remembers the input byte and outputs the same number regardless of further changes at the D input… …until the next clock input of course. CLK D 0-7 Q 0-7 D 0-7 Q 0-7 CLK 88

Interconnecting Registers Interconnecting registers in a computer is like building roads to connect towns on a map: Silly way n towns require (n 2 -n)/2 roads A C B E D

Interconnecting Registers Interconnecting registers in a computer is like building roads to connect towns on a map: Sensible way Far fewer roads, (but lesser capacity) AB C E D

Interconnecting Registers CLK D 0-7 Q 0-7 CLK1 88 CLK D 0-7 Q 0-7 CLK2 88 CLK D 0-7 Q 0-7 CLK3 88 8

Register Connections Data can be written from any register to any other register Limitations Only one data transfer can happen at once In general, this is how computers work. They can only do a small number of very simple operations… …and they can only do one of them at a time. But, they do it very quickly!

Bi-directional Connection Connections from the common bus to the registers are bi-directional.

Tri-State Ports This arrangement is often known as a tri- state port. Each input/output line can have three possible states: When being read from (input/output is low) Low-Impedance, Logic 1 (or high) Low-Impedance, Logic 0 (or low) Otherwise (input/output is high) High-Impedance (or floating, open-circuit)

Impedance A simple switch can be thought of of having two states: Low impedance (on) High impedance (off) High impedance (tens of M  ) No current flows Low impedance (tens of  ) Current flows

Equivalent Circuits for Tri-State Port Low Impedance Logic 0 (Low) High Impedance Low Impedance Logic 1 (High) +5 V 0 V +5 V 0 V +5 V 0 V I/O Three ports sharing a common bus. Port 1 is in the high state, ports 2 and 3 are in the high impedance states. +5 V 0 V I/O 1 I/O 2 I/O 3

What NOT to do… Three ports sharing a common bus. Port 1 is in the high state, ports 2 is in the high impedance state, port 3 is in low state. Current  Only one port can be in a low-impedance (output) state at any time +5 V 0 V I/O 1 I/O 2 I/O 3

Tri-State Ports and a Common Bus Only one register can be read from at a time. i.e. all tri-state ports except one must be high- impedance. Any register can read and store the contents of any other. A I/O CLK I/O 8 CLK A I/O A CLK B I/O B CLK C I/O C System Bus B I/O CLK I/O C CLK I/O

Example To store the contents of register A in register B… 8 CLK A I/O A CLK B I/O B System Bus CLK A I/O A CLK B I/O B A I/O CLK I/O B CLK I/O B is triggered to store input from bus A – Outputs contents to bus

Simplifying the ALU with a Bus ALU A B S C OUT F Single input byte Control inputs Result Carry output Working register D Q CLK 8 8 Before 8 data input lines 8 data outputs ALU A B S C OUT F Control inputs Carry output Working register Bus After One set of 8 shared data input/output lines

Example of ALU Operation To add the contents of register R 1 to the contents of register R 2 and place the result in register R 3 : WR1R1 R2R2 R3R3 System Bus 8 registers ALU Carry output A B S C OUT F 8 8 R 1 outputs to the bus, W inputs and stores. R 2 outputs to the bus, the ALU adds and stores the result in W. W outputs to the bus, R 3 inputs and stores.

ALU Operation Notes Although the ALU performs calculations instantaneously (nearly), this addition requires three separate operations However, it is now possible to perform ALU operations on any pair of register contents Despite this flexibility, the required connections are relatively simple

Automating the ALU To perform calculations like the previous example, the following control signals must be generated in sequence: Input / Output select signals to the registers Clock (latch enable) signals to the registers Selection inputs to the ALU To perform a predetermined set of operations, the corresponding sequence of control signals must be stored. This is called a program.

A Victorian Computer Control signals = piano key presses Sequences of key presses are stored as holes on a paper roll. This is exactly how early computer programs were stored too.

Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ input/output and clock inputs Sequence of control signal combinations

Summary The use of tri-state ports and a common system bus hugely simplifies register interconnections. With an ALU and a few registers, relatively elaborate operations can be performed. The necessary control signals could be recorded for automatic operation. Of course, we don’t really use paper tape. Instead we use program memory.