Conversion from one number base to another Equation simplification Conversion to/from SOP/POS Minimization using Karnaugh Maps Minterm and Maxterm Equations.

Slides:



Advertisements
Similar presentations
컴퓨터구조론 교수 채수환. 교재 Computer Systems Organization & Architecture John D. Carpinelli, 2001, Addison Wesley.
Advertisements

State-machine structure (Mealy)
Review for Exam 2 Using MUXs to implement logic
Chapter 5 The LC-3 Instruction Set Architecture l ISA Overview l Operate instructions l Data Movement instructions l Control Instructions l LC-3 data path.
Circuits require memory to store intermediate data
1 Lecture 23 More Sequential Circuits Analysis. 2 Analysis of Combinational Vs. Sequential Circuits °Combinational : Boolean Equations Truth Table Output.
Sequential Circuit Design
ECE 331 – Digital System Design Introduction to and Analysis of Sequential Logic Circuits (Lecture #20) The slides included herein were taken from the.
Gate-Level Minimization. Digital Circuits The Map Method The complexity of the digital logic gates the complexity of the algebraic expression.
Revision Mid 2 Prof. Sin-Min Lee Department of Computer Science.
Chapter 5 The LC-3 LC-3 Computer Architecture Memory Map
Chapter 6 Programming in Machine Language The LC-3 Simulator
Contemporary Logic Design Finite State Machine Design © R.H. Katz Transparency No Chapter #8: Finite State Machine Design Finite State.
Sequential Circuit Design
Give qualifications of instructors: DAP
Overview Sequential Circuit Design Specification Formulation
Chapters 5 - The LC-3 LC-3 Computer Architecture Memory Map
Design of Two-Level Multiple-Output Networks
1 Chapter 5: Datapath and Control CS 447 Jason Bakos.
بهينه سازي با نقشة کارنو Karnaugh Map. 2  Method of graphically representing the truth table that helps visualize adjacencies 2-variable K-map 3-variable.
Introduction to Digital Logic Design Appendix A of CO&A Dr. Farag
Review for Exam 3 LC3 control State Graphs
Spring 2007W. Rhett Davis with slight modification by Dean Brock UNCA ECE 406Slide 1 ECE 406 – Design of Complex Digital Systems Lecture 11: Memories,
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.
Lecture 5 Key Locker using FPGA 2007/10/05 Prof. C.M. Kyung.
Introduction to Computing Systems from bits & gates to C & beyond Chapter 5 The LC-2 Instruction Set Architecture Operate instructions Data Movement instructions.
Chapter 2Basic Digital Logic1 Chapter 2. Basic Digital Logic2 Outlines  Basic Digital Logic Gates  Two types of digital logic circuits Combinational.
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
Designing of a D Flip-Flop Final Project ECE 491.
1 Lecture #12 EGR 277 – Digital Logic Synchronous Logic Circuits versus Combinational Logic Circuits A) Combinational Logic Circuits Recall that there.
CPEN Digital System Design Chapter 5 - Sequential Circuits Sequential Circuit Design C. Gerousis © Logic and Computer Design Fundamentals, 4 rd Ed.,
Introduction to Computing Systems from bits & gates to C & beyond Chapter 5 The LC-3 Instruction Set Architecture ISA Overview Operate instructions Data.
Review for Final Exam LC3 – Controller FPGAs Multipliers
Chap 2. Combinational Logic Circuits
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Conversion from one number base to another Binary arithmetic Equation simplification DeMorgan’s Laws Conversion to/from SOP/POS Reading equations from.
© BYU 11b MSFF Page 1 ECEn 224 MSFF Master/Slave Flip Flops.
Spring 2007W. Rhett Davis with minor modification by Dean Brock UNCA ECE 406Slide 1 ECE 406 – Design of Complex Digital Systems Lecture 12: Intro to the.
© BYU LC3-DC Page 1 ECEn 224 LC3-DC Designing The LC-3 Control IR PC enaMARMenaPC enaALU enaMDR ALU AB.
ENG241 Digital Design Week #7 Sequential Circuits (Part B)
Spring 20067W. Rhett Davis with minor modification by Dean Brock UNCA ECE 406Slide 1 ECE 406 Design of Complex Digital Systems Lecture 11: Data Converter,
EEE515J1_L4-1/12 EEE515J1 ASICs and DIGITAL DESIGN EGBCDCNT.pdf An example of a synchronous sequential machine.
Digital Logic (Karnaugh Map). Karnaugh Maps Karnaugh maps (K-maps) are graphical representations of boolean functions. One map cell corresponds to a row.
CEC 220 Digital Circuit Design More Karnaugh Maps Monday, February 02 CEC 220 Digital Circuit Design Slide 1 of 11.
Revision Mid 1 Prof. Sin-Min Lee Department of Computer Science.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Spring 2009W. Rhett DavisNC State UniversityECE 406Slide 1 ECE 406 – Design of Complex Digital Systems Lecture 12: Intro to the LC-3 Micro-architecture.
1 Overview of CS 151 Fall Combinational Logic Design –Simplifying a logic function using algebraic method –Truth table and logic function representation.
1 Lecture 24 Transistors A look ahead Course summary.
Computer Science 210 Computer Organization Machine Language Instructions: Control.
Lecture 7 Multi-Level Gate Networks
FIGURE 3.1 Two-variable K-map
Chapter #6: Sequential Logic Design
Learning Outcome By the end of this chapter, students are expected to refresh their knowledge on sequential logic related to HDL.
FIGURE 5.1 Block diagram of sequential circuit
Computer Science 210 Computer Organization
The LC-3 Instruction Set Architecture Data Movement instructions
Assistant Prof. Fareena Saqib Florida Institute of Technology
CSE 140 MT 2 Review By Daniel Knapp.
FINITE STATE MACHINES (FSMs)
CSE 140 : Components and Design Techniques for Digital Systems
David Culler Electrical Engineering and Computer Sciences
Computer Science 210 Computer Organization
ECE 120 Midterm 2 HKN Review Session
D Flip-Flop Schematic Block Symbol Truth Table D Q Clk Q Clk D Q(t+1)
Computer Science 210 Computer Organization
13 Digital Logic Circuits.
Overview Part 2 – Circuit Optimization
Chapter 5 – Sequential Circuits
ECE 120 Midterm 2 HKN Review Session.
Presentation transcript:

Conversion from one number base to another Equation simplification Conversion to/from SOP/POS Minimization using Karnaugh Maps Minterm and Maxterm Equations Determining Prime Implicants and Essential Prime Implicants Logical completeness Using MUXs and ROMs to implement logic Timing Analysis The internal structure of flip-flops Flip-flop timings Rising and falling edge triggered flip-flops Counters and state machines Generating next state equations from counter sequences. Implementation using RS, D, T and JK flip-flops Determining next states from schematics Moore vs. Mealy State Graphs Completeness and conflict issues Creating transition tables and next state equations from state graphs Verilog code One-hot encoding LC3 control UART Review for Final Exam

Conversion from one number base to another

Equation simplification (X + Y)(X + Z) = (X + YZ) X + XY = X X + X’Y = X + Y X + XY = X

Conversion to/from SOP/POS (X + YZ) = (X + Y)(X + Z)

Minimization using Karnaugh Maps AB CD AB + C’D + A’B’C + ABCD + AB’C AB + C’D + B’C

Minterm and Maxterm Equations F(ABCD) =  m (0,2,4,7,9,12,14,15) AB CD BC’D’ + BCD + ABC + A’B’D’ + AB’C’D

Determining Prime Implicants and Essential Prime Implicants AB CD x 11xx prime implicants 3 essential prime implicants

Logical completeness Inverter AND gate NAND AND gate Inverter OR gate

Implementing Logic Functions With Muxes Implement: Z = A’B + BC’ 4-to-1 MUX Z A B I0I1I2I3I0I1I2I3 for AB=00, Z=0 0

Implementing Logic Functions With Muxes Implement: Z = A’B + BC’ 4-to-1 MUX Z A B I0I1I2I3I0I1I2I3 0 for AB=01, Z=1 1

Implementing Logic Functions With Muxes Implement: Z = A’B + BC’ 4-to-1 MUX Z A B I0I1I2I3I0I1I2I3 0 1 for AB=11, Z=C’ C’

Implementing Logic Functions With Muxes Implement: Z = A’B + BC’ 4-to-1 MUX Z A B I0I1I2I3I0I1I2I3 0 1 C’ 0

Implementing Logic Functions With Muxes An alternate method 4-to-1 MUX Z A B I0I1I2I3I0I1I2I3 0 1 C’ 0 Z = A’B + BC’ A=0 B=0 A=0 B=1 A=1 B=0 A=1 B=1 Z = C’ = 0 Z = C’ = 1 Z = C’ = 0 Z = C’ = C’

Using a ROM For Logic Specify a truth table for a ROM which implements: F = AB + A’BC’ G = A’B’C + C’ H = AB’C’ + ABC’ + A’B’C

Using a ROM For Logic Specify a truth table for a ROM which implements: F = AB + A’BC’ G = A’B’C + C’ H = AB’C’ + ABC’ + A’B’C

Using a ROM For Logic Specify a truth table for a ROM which implements: F = AB + A’BC’ G = A’B’C + C’ H = AB’C’ + ABC’ + A’B’C

Timing Analysis A B AB E C D CD F E+F X

Timing Analysis A B AB E C D CD F E+F X

Timing Analysis A B AB E C D CD F E+F X

Timing Analysis A B AB E C D CD F E+F X

Timing Analysis A B AB E C D CD F E+F X

Timing Analysis A B AB E C D CD F E+F X

Timing Analysis A B AB E C D CD F E+F X

The internal structure of flip-flops R S Q Q’ GATE GS GR D Q’ Q GATE D CLK Q Q’ D-type Flip-Flop

The internal structure of flip-flops T-type Flip-Flop CLK Q Q’ T

The internal structure of flip-flops JK-type Flip-Flop CLK Q Q’ J K

Flip-flop timings Clock-to-Q D CLK Q Q’ t CLK ! Q = t NOT + t AND + 2 x t NOR

D CLK Q Q’ t setup = t NOT + t AND + 2 x t NOR Flip-flop timings Setup time

D CLK Q Q’ t hold = t NOT Flip-flop timings Hold time

Flip Flop Timing CLK D Q t setup t hold t CLK ! Q time

D CLK Q Q’ Falling Edge Triggered DFF Rising and falling edge triggered flip-flops

Rising Edge Triggered DFF D CLK Q Q’ Rising and falling edge triggered flip-flops

Generating next state equations from counter sequences. Desired count sequence = … If current state = 00, next state = ????? Implemented count sequence = … N2 = Q2 Q1’ + Q1’ Q0 N1 = Q2 N0 = Q2’ Q0’ + Q1 Q0’

Implementation using RS, D, T and JK flip-flops

Determining next states from schematics Q0 Q2 CLK Q1 CLK Q2 D Q Q2 Q1’ Q0 Q2’ Q0’ Q1 Q0’ Q2 Q1 Q Initial state

Moore vs. Mealy

For general purpose FSMs, the encoding of the states is usually not significant For example, in the following state graph, the Encodings of the state are irrelevant … Event 1 Event 2 Event 1 Event 2Event 3

Completeness Issues In order for a state graph to be complete: It must completely specify the FSM Paths leaving a state must specify all POSSIBLE cases To check for completeness, OR together all of the exiting paths. If the result is “1” then the design is complete.

In order for a state graph to be conflict free: It must completely specify the FSM For a given set of input conditions, the transition from a state must be unique To check for conflicts, AND together all pairs of the exiting paths. If the result is “0” for all pairs, the design has no conflicting transitions. Conflict Issues

Creating transition tables and next state equations from state graphs

The resulting next state and output equations are: N1 = Q0 + Q1 TDONE’ N0 = TOKEN Q1’ Q0’ CLRT = Q0 SPRAY = Q1

Dataflow Operators

IR ALU PC AB

LC-3 Instructions ADD 0001 DR SR1 00 SR2 0 ADD 0001DRSR1 imm5 1 AND 0101 DR SR1 00 SR2 0 AND 0101DRSR1 imm5 1 BR 0000n z p PCoffset9 JSR JMP BaseR LD 0010PCoffset9 DR LDI 1010PCoffset9 DR LDR 0110offset6 DR BaseR LEA 1110PCoffset9 DR NOT 1001 DR SR RET 1101 RTI STR 0111offset6 SR BaseR TRAP 1111trapvect80000 ST STI 0011 PCoffset9 SR 1011 PCoffset9SR PCoffset reserved JSRR BaseR