Department of Computer and IT Engineering University of Kurdistan Computer Architecture (Review of Digital Design) By: Dr. Alireza Abdollahpouri.

Slides:



Advertisements
Similar presentations
Assignments The submission has to be by the end of this week Write your full name and the group number on the answer sheet.
Advertisements

التصميم المنطقي Second Course
COE 202: Digital Logic Design Sequential Circuits Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
1 Sequential Circuits Dr. Pang. 2 Outline Introduction to sequential circuits Basic latch Gated SR latch and gated D latch D flip-flop, T flip-flop, JK.
Circuits require memory to store intermediate data
Sequential Circuit Analysis & Design Dr. Aiman H. El-Maleh Computer Engineering Department King Fahd University of Petroleum & Minerals Dr. Aiman H. El-Maleh.
Registers.1. Register  Consists of N Flip-Flops  Stores N bits  Common clock used for all Flip-Flops Shift Register  A register that provides the.
Sequential Circuit Design
Sequential Circuits and Finite State Machines Prof. Sin-Min Lee
1 Digital Logic
CHAPTER 3 Digital Logic Structures
Sequential Circuit Design
Sequential circuits part 2: implementation, analysis & design All illustrations  , Jones & Bartlett Publishers LLC, (
Chapter 1_4 Part II Counters
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
ReVieW Combinational & Sequential Logic Circuit EKT 221 / 4 DIGITAL ELECTRONICS II.
Digital Computer Design Fundamental
Introduction to Digital Logic Design Appendix A of CO&A Dr. Farag
COE 202: Digital Logic Design Sequential Circuits Part 1
Boolean Algebra and Digital Logic
Chap 4. Sequential Circuits
Dept. of Computer Science Engineering Islamic Azad University of Mashhad 1 DIGITAL LOGIC CIRCUITS Dept. of Computer Science Engineering Islamic Azad University.
Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary.
B-1 Appendix B - Reduction of Digital Logic Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles.
Digital Logic Design Sequential circuits
Digital Logic Design Review Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM 2010.
Chapter 2Basic Digital Logic1 Chapter 2. Basic Digital Logic2 Outlines  Basic Digital Logic Gates  Two types of digital logic circuits Combinational.
1 Lecture #12 EGR 277 – Digital Logic Synchronous Logic Circuits versus Combinational Logic Circuits A) Combinational Logic Circuits Recall that there.
CE1110: Digital Logic Design Sequential Circuits.
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
ENG241 Digital Design Week #8 Registers and Counters.
In1200/04-PDS 1 TU-Delft Digital Logic. in1200/04-PDS 2 TU-Delft Unit of Information l Computers consist of digital (binary) circuits l Unit of information:
Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –
CHAPTER 6 Sequential Circuits’ Analysis CHAPTER 6 Sequential Circuits’ Analysis Sichuan University Software College.
Sequential Circuit: Analysis BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
Analysis and Synthesis of Synchronous Sequential Circuits A “synchronizing” pulse/edge signal (clock) controls the operation of the memory portion of the.
Registers; State Machines Analysis Section 7-1 Section 5-4.
CS/COE0447 Computer Organization & Assembly Language
A sequential logic circuit (a.k.a. state machine) consists of both combinational logic circuit(s) and memory devices (flip flops). The combinational circuits.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
ELECTRICAL ENGINEERING: PRINCIPLES AND APPLICATIONS, Third Edition, by Allan R. Hambley, ©2005 Pearson Education, Inc. Chapter 7 Logic Circuits.
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
1 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers: parallel and.
1 CHAPTER 12 REGISTERS AND COUNTERS This chapter in the book includes: Objectives Study Guide 12.1Registers and Register Transfers 12.2Shift Registers.
Lecture 1 Gunjeet kaur Dronacharya group of institutions.
Prof. Sin-Min Lee Department of Computer Science
Sequential Networks and Finite State Machines
Registers and Counters
DIGITAL LOGIC CIRCUITS
ANALYSIS OF SEQUENTIAL CIRCUITS
SLIDES FOR CHAPTER 12 REGISTERS AND COUNTERS
DIGITAL LOGIC CIRCUITS
Basics of Digital Logic Design Presentation D
Reading: Hambley Chapters
Chapter 11 Sequential Circuits.
Digital Logic Design Sequential Circuits (Chapter 6)
Digital Design Fundamentals
COE 202: Digital Logic Design Sequential Circuits Part 4
CSE 370 – Winter Sequential Logic-2 - 1
Computer Architecture and Organization: L02: Logic design Review
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
part 2: implementation, analysis & design
CSC3050 – Computer Architecture
14 Digital Systems.
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Presentation transcript:

Department of Computer and IT Engineering University of Kurdistan Computer Architecture (Review of Digital Design) By: Dr. Alireza Abdollahpouri

Analog offers Continuous Spectrum Digital offer distinct Steps Analog vs. Digital

Analog has Ambiguity Digital has only one interpretation Analog Clock 1:56 pm Digital Clock About 2:00 1:50 1:56

4 LOGIC GATES

DeMorgan equivalent symbols Which symbol to use? Answer depends on signal names and active levels.

6 Boolean Algebra is an algebra that deals with binary variables and logic operations. The three basic logic operations are AND, OR and complement (invert). BOOLEAN ALGEBRA Example:F = x + y' z

7 BOOLEAN ALGEBRA Truth Table Logic Diagram for F = x + y' z

8 Minterms and Maxterms

9 Deriving Boolean Expression from Truth Table  Input Output Minterm A B C F term designation A’B’C’m A’B’Cm A’BC’m A’BCm AB’C’m AB’Cm ABC’m ABCm7 => F = A’B’C’ + A’BC => F = m0 + m3 F =  m ( 0, 3)

Combinational Circuits Combinational Circuits... Input X Output Z Z = F(X) In combinational circuits, the output at any time is a direct function of the applied external inputs...

11 Decoder Encoder Decoder & Encoder

Decoder

13 Combining small decoders to build a bigger one

14 Multiplexer

15 Multiplexer

Sequential Circuits  A sequential circuit: outputs depends on inputs and previous inputs Previous inputs are stored as binary information into memory The stored information at any time defines a state next state depends on inputs and present state Combinational Circuit inputs X outputs Z Memory next statepresent state

Flip Flops Sheet (Mano’s Textbook)

18 Register A register is a group of flip-flops. An n-bit register is made of n flip-flips and can store n bits A register may have additional combinational gates to perform certain operations

19 Register

20 shift register Serial in – serial outSerial in – parallel out

21 shift register parallel in – serial out

22 shift register parallel in – parallel out

23 Bidirectional shift register

24 shift register with load

4-Bit Register A simple 4-bit register can be made with 4 D-FF Common Clock At each positive-edge, 4 bits are loaded in parallel Previous data is overwritten Common Clear Asynchronous clear When Clear = 0, all FFs are cleared; i.e. 0 is stored.

Sequential analysis  Step 1: List all possible combinations of current state and current input in an analysis table  Step 2: For each combination, compute the output and the current inputs to the state registers  Step 3: From the characteristic table, determine the next state and construct the state transition table and diagram

Example problem  State registers: FFA & FFB (T flip flops)  Combinational circuit  inputs:  X1 AND B (TA)  X2 OR A (TB)  TA & TB are inputs to FFA & FFB  output:  B’ AND X1 (Y)

Example problem  2 flip flops, so 4 possible states: AB inputs, so 4 possible input combinations: X1X

Analysis table for sample problem circuit  1 st 4 columns list possible combinations of initial state & initial input  By the logic diagram, we know:  Y(t)=X1(t) AND B’(t)  TA(t)=X1(t) AND B(t)  TB(t)=X2(t) OR A(t)  Compute next 3 columns given above  Compute last 2 from:  characteristic table for T flip flop  initial state of flip flop  flip flop’s initial input

State transition table  Table shows simple rearrangement of selected columns from table on previous slide  For given initial state A(t)B(t) and input X1(t)X2(t), lists next state (A+1)(t)(B+1)(t) and initial output Y(t)  States listed as ordered pairs – next state followed by initial output

State transition diagram  Easier to visualize circuit behavior  Transitions listed as ordered pairs of input followed by initial output, with slash separator

Asynchronous inputs  An asynchronous input changes state of a flip-flop immediately without regard to CP  Preset sets Q to 1  Clear clears Q to 0  Used to initialize the state of a machine  Normal operation: both lines 0

Sequential design  Given the state transition diagram, the output, and the type of flip-flop to be used, design the combinational circuit  Any unused input combinations or unused states are don’t care conditions  2 n states are possible with n flip-flops

Design steps  Step 1: In a design table, list the initial state, input, and output, and from the transition diagram list the next state  Step 2: Use the excitation table for the given type of flip-flop to determine the input required for the state registers  Step 3: Use Karnaugh maps to design a minimized two-level circuit for each flip-flop input

Sample problem

Design table for sample problem

Sequential design & K-maps  Each flip flop in the problem can be considered a function of four variables:  initial state (AB)  input (X1X2)  To design the combinational circuit we need a 4-variable K-map for each flip flop input

K-maps for sample problem  Figures a and b below show K-maps for S & R inputs to FFA  Row values are AB, columns are X1X2  X1X2 = 00 is a don’t care condition for both inputs, so first column of both tables is X

K-maps for sample problem  Figures c and d show inputs to FFB  Note that we can take advantage of don’t care conditions to minimize circuit

Resulting circuit with original spec

K-map & circuit for output Y

42 Memories

43 QuestionsQuestions