Handout 16. by Dr Sheikh Sharif Iqbal. Memory Interface Circuits 80x86 processors

Similar documents
Sequential Circuits: Latches & Flip-Flops

Chapter 2. Digital Circuits

D Latch (Transparent Latch)

Introduction to Sequential Circuits

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

Other Flip-Flops. Lecture 27 1

Chapter. Synchronous Sequential Circuits

ECE 341. Lecture # 2

Asynchronous (Ripple) Counters

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Slide 1. Flip-Flops. Cross-NOR SR flip-flop S R Q Q. hold reset set not used. Cross-NAND SR flip-flop S R Q Q. not used reset set hold 1 Q.

COE 202: Digital Logic Design Sequential Circuits Part 1. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Synchronous Sequential Logic

Logic Devices for Interfacing, The 8085 MPU Lecture 4

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Sequential Digital Design. Laboratory Manual. Experiment #3. Flip Flop Storage Elements

Module 4:FLIP-FLOP. Quote of the day. Never think you are nothing, never think you are everything, but think you are something and achieve anything.

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

LATCHES & FLIP-FLOP. Chapter 7

MC9211 Computer Organization

Combinational vs Sequential

CHAPTER1: Digital Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

IT T35 Digital system desigm y - ii /s - iii

Digital Circuits 4: Sequential Circuits

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

Lecture 7: Sequential Networks

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

Experiment 8 Introduction to Latches and Flip-Flops and registers

Sequential Logic and Clocked Circuits

Contents Circuits... 1

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

DIGITAL REGISTERS. Serial Input Serial Output. Block Diagram. Operation

Registers and Counters

ELCT201: DIGITAL LOGIC DESIGN

Module -5 Sequential Logic Design

LAB #4 SEQUENTIAL LOGIC CIRCUIT

Sequential Logic Basics

Registers and Counters

Clocks. Sequential Logic. A clock is a free-running signal with a cycle time.

Introduction. Serial In - Serial Out Shift Registers (SISO)

Unit 11. Latches and Flip-Flops

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

Counter dan Register

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

Chapter. Sequential Circuits

Counters

Logic Design II (17.342) Spring Lecture Outline

A clock is a free-running signal with a cycle time. A clock may be either high or low, and alternates between the two states.

SIGNETICS INTEGRATED CIRCUITS Low Power Schottky TTL 54LS00-74LS00 Series. Supply Current/typmA Delay/typns Quad 2-Input NAND Gate 54LS00/C,D

Digital Circuits ECS 371

CH 11 Latches and Flip-Flops

Chapter 4. Logic Design

CPS311 Lecture: Sequential Circuits

EECS 270 Midterm 1 Exam Closed book portion Winter 2017

EE292: Fundamentals of ECE

Spring 2017 EE 3613: Computer Organization Chapter 5: The Processor: Datapath & Control - 1

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

Topic D-type Flip-flops. Draw a timing diagram to illustrate the significance of edge

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

COSC 243. Sequential Logic. COSC 243 (Computer Architecture) Lecture 5 - Sequential Logic 1

UNIVERSITI TEKNOLOGI MALAYSIA

CHAPTER 4: Logic Circuits

NEW MEXICO STATE UNIVERSITY Electrical and Computer Engineering Department. EE162 Digital Circuit Design Fall Lab 5: Latches & Flip-Flops

CHAPTER 4: Logic Circuits

Department of Electrical and Computer Engineering Mid-Term Examination Winter 2012

B. Sc. III Semester (Electronics) - ( ) Digital Electronics-II) BE-301 MODEL ANSWER (AS-2791)

L5 Sequential Circuit Design

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic

Logic Design. Flip Flops, Registers and Counters

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Vignana Bharathi Institute of Technology UNIT 4 DLD

RS flip-flop using NOR gate

CHAPTER 11 LATCHES AND FLIP-FLOPS

Serial In/Serial Left/Serial Out Operation

Multiplexor (aka MUX) An example, yet VERY useful circuit!

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

CHAPTER 6 COUNTERS & REGISTERS

Flip-Flops and Sequential Circuit Design

DIGITAL CIRCUIT LOGIC UNIT 11: SEQUENTIAL CIRCUITS (LATCHES AND FLIP-FLOPS)

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

Chapter 5: Synchronous Sequential Logic

Computer Organization & Architecture Lecture #5

AIM: To study and verify the truth table of logic gates

A Combined Combinational-Sequential System

Chapter 11 Latches and Flip-Flops

To design a sequential logic circuit using D-Flip-flop. To implement the designed circuit.

problem maximum score 1 28pts 2 10pts 3 10pts 4 15pts 5 14pts 6 12pts 7 11pts total 100pts

Latches, Flip-Flops, and Registers. Dr. Ouiem Bchir

Flip-Flops and Related Devices. Wen-Hung Liao, Ph.D. 4/11/2001

Slide Set 7. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

1. Convert the decimal number to binary, octal, and hexadecimal.

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

Transcription:

Handout 16 Ref: Online course on EE-390, KFUPM by Dr Sheikh Sharif Iqbal Memory Interface Circuits 80x86 processors Objective: - To learn how memory interface blocks, such as Bus-controller, Address bus latch, Address decoder, Memory bank control logic for 8086 and Data bus transceiver buffer IC s are implemented using logic circuits. - To discuss the operating detail of these circuits.

Slide 1: 8-bit Address Bus-latch IC for Memory interface: - Address-bus latch ( 74F373 ) is controlled by ALE signal and used to latch the valid physical address ( ALE CPU C 74F373 ). - The ( C ) signal is used to switch the outputted signals to transparent (input output) and latched (fixed output) states. 1D 2D 3D C 1Q 2Q 3Q - The output control ( OC ) signal is used to assign high impedance state to the output lines (Q s), 4D 5D 6D 7D 8D OC 74F373 4Q 5Q 6Q 7Q 8Q OC L L L H Inputs C H H L x D s H L x x Output Q s H L Q 0 high-z Note: the circuitry used to construct this IC and their operating details are discussed in the following slides. Note that if the clock (C) input is logic low, the output logic level (Q s) remained unchanged or unaffected by inputted data (D s).

- Slide 2: Circuit diagram of 8-bit Address latch IC 74F373 : D flip-flops Buffers D F/F D flip-flop - The main components of this circuit are D type flip-flops (in blue) and buffers (in brown) Note: before explaining the operation of this circuit, lets discuss the construction and operation of these components.

Slide 3: Flip-flops and Buffers used in Address bus latch circuit: - Buffers are used to control and boast signal strength. For logic 0 control signal, buffers are in transparent mode and the inputted data is directly outputted. - With logic 1 control input, high-impedance state is outputted. - Flip-flops are memory elements in a sequential circuit. - The circuit and transition-table of a D-type flip-flop are shown: - Note that only logic 1 clock (C) signal activates NAND gates, which drives the NOR gate based SR (set-reset) flip-flop. Typically, all flip-flops provide a complemented output (Q). Note: The maximum delay of latching D-type circuit is 13 nano second. It is important to keep this delay to a minimum. Also, the outputs of the latch can sink a maximum of 24 milli-ampere current.

Slide 4: Operation of 8-bit Address bus latch 74F373 IC: Logic 0 ALE signal from CPU D F/F Animate Valid P.A. from CPU Latched P.A. send to memory NOTE: If valid physical address is applied to the eight input pins (D s) of the IC and then ALE pulse is applied into the clock input of the IC, the D flip-flops will be activated and latch the inputted information. Due to Logic 0 input of the output control pin, the buffers are activated and behave in transparent mode. Thus, the latched 8-bit physical address is outputted through the Q-pins.

Slide 5: Operation of 20-bit Address bus latch circuit: - Three 74F373 octal bus IC s are connected in parallel to construct the complete address bus latch circuit, which can latch 20 bit physical address and BHE signal (for 8086 case). Such a circuit for 8086 memory interface is shown below: The complete memory interface with this circuit component as "Address Bus Latch" is show in next figure. Note: Note that each of the 74F373 IC s are used to latch 8-bit information as per ALE pulses, as buffers works in transparent mode. This diagram consists the Address bus latch block, of the memory interface discussed before. Click the link to see this complete circuit.

AD0-AD15 A16 -A19 A0 - A19 Address Bus latch A17L-A19L Address Decoder CE0 - CE7 A1L- A16L 8086 MPU BHE ALE A0L BHEL Bus Controller 8288 MWTC Bank write control logic WRU WRL Memory Subsystem S 0 S 1 S 2 S 0 S 1 S 2 MRDC DT/R DEN Bank Read control logic RDU RDL DIR EN MN/MX D0-D15 Data Bus Transceive buffer D0-D15 Ready Ready The complete memory interface circuit

Slide 6: Operation of Data bus transceiver buffer: - Data bus transceiver buffer in 8088 system is implemented using 74F245 octal bus IC s, where the control inputs DIR and G is used to control the data flow (A n B n or B n A n ) Animate - Once enabled with G = 0 DIR = 0 B n => A n ; DIR = 1 A n => B n ; Note:. The figures above shows the block and circuit diagram of the 8-bit Data bus transceiver buffer IC. Also note that G bar input is used to enable the buffer operation, whereas DIR input selects the direction of intended data transfer. Assume that the device is enabled by applying G bar = 0. Now if DIR is set to logic 0, the output of AND gate 1 will be 0 and all the odd numbered buffers (G3, G5, G7 and so on) will be off. So the data path from An to Bn will be disabled. But the output of AND gate 2 will be logic 1 and all the even numbered buffers (G4, G6, G8 and so on) will be ON. Consequently, the data path from Bn to An will be ENABLED. Similarly, for G bar = 0 and DIR = logic 1, data path from An to Bn will be ENABLED.,

Slide 7: Operation of Data bus transceiver buffer (cont d): - The transceiver buffer in 8086 system is implemented using two parallel IC s capable of 16-bit bidirectional data transfer The complete memory interface with this circuit component as "Data Bus Transceiver Buffer" is show in next figure. Note: Here two octal buffer IC s are parallely connected to achieve 16-bit bidirectional data bus transceiver buffer operation. The complete memory interface circuit with this transceiver buffer component can be seen by clicking the given link. Note that the enable signal (G) that comes from the DEN signal of the CPU, requires logic -1 to enable the buffer, unlike that of 8088.

AD0-AD15 A16 -A19 A0 - A19 Address Bus latch A17L-A19L Address Decoder CE0 - CE7 A1L- A16L 8086 MPU BHE ALE A0L BHEL Bus Controller 8288 MWTC Bank write control logic WRU WRL Memory Subsystem S 0 S 1 S 2 S 0 S 1 S 2 MRDC DT/R DEN Bank Read control logic RDU RDL DIR EN MN/MX D0-D15 Data Bus Transceive buffer D0-D15 Ready Ready The complete memory interface circuit

Slide 8: Decoder circuits used in 8088/8086 memory interfaces: - Decoder circuit s implements Address-decoder in both 8088 & 8086 interface and Bus-controller in 8086 based system. - The operation of a 2-line by 4-line decoder is presented below: - Note that G input is the control input that enables the decoder. Once enabled, any of the four outputs (Y 0 to Y 3 ) are selected depending on logic levels of inputs 'A & B, as shown in Table Note: Note that due to the output inverters of the IC, when selected, the outputs generated a logic low signal.

Slide 10: Decoder Circuits used in Memory Interface (Cont d): - The circuit diagram of a decoder/demultiplexer (74F139) is: - The device has two independent decoders, each accepting 2- inputs and providing 4 mutually exclusive active LOW outputs. Note: Each decoder has an active LOW Enable input, which can be used to activate the decoder.

Slide11: Controller circuits of 8086 Memory Interface: - Bank read and write control logic circuits enables even and odd address byte transfer, as per logic levels of BHE and A 0 signals. Note: Detail discussion in this topic can be found in next lecture. - For even addressed words, both BHE and A 0 signals are activated at the same time to initiate 16-bit data transfer - Read and Write bank control logic circuits are as given below: Note: Note proper read or write signal should also be generated by the CPU to activate these controllers. The complete memory interface circuit where this above component is used is: AD0-AD15 A16 -A19 A0 - A19 Address Bus latch A17L-A19L Address Decoder CE0 - CE7 A1L- A16L 8086 MPU BHE ALE A0L BHEL Bus Controller 8288 MWTC Bank write control logic WRU WRL Memory Subsystem S 0 S 1 S 2 S 0 S 1 S 2 MRDC DT/R DEN Bank Read control logic RDU RDL DIR EN MN/MX D0-D15 Data Bus Transceive buffer D0-D15 Ready Ready

Slide 12: Example 1: Design a Decoder circuit QUESTION: Using 4-input NAND gates, design a 3-line by 8-line decoder circuit with one enable input. Thus, when Enable input is at logic 1 and the three coded inputs (CBA) are at logic 0 state ( C = B = A = 0 ) the corresponding decoded output should be enabled or at logic 0 level ( Y 0 = 0 ) and all the remaining seven outputs should be disabled or at logic 1 state. SOLUTION: The required circuit is shown in the figure. Note that when Enable = logic-1 and C=B=A are at logic-0 state, only AND gate-0 has all its four inputs at logic-1 level. Consequently, the output Y 0 will be enabled or at logic-0 state. All other AND gates have one or more inputs at logic-0, and the corresponding output (Y 1 to Y 7 ) will be disabled or stay at logic-1 state.

Slide 13: Exercise 1: Using eight buffer circuits, design a 4-bit data bus transceiver buffer circuit that once enabled with G = 1, transfers data according to following DIR input. (a) B n A n if DIR = 1 (b) A n B n if DIR = 0 ; SOLUTION: