Digital Circuits. Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every.

Slides:



Advertisements
Similar presentations
1 The 2-to-4 decoder is a block which decodes the 2-bit binary inputs and produces four output All but one outputs are zero One output corresponding to.
Advertisements

CDA 3100 Recitation Week 10.
Logic Circuits Design presented by Amr Al-Awamry
Digital Circuits.
ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR, Parity Circuits, Comparators.
Combinational Circuits ENEL 111. Common Combinationals Circuits NAND gates and Duality Adders Multiplexers.
08/07/041 CSE-221 Digital Logic Design (DLD) Lecture-8:
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
ECE 3130 – Digital Electronics and Design Lab 3 Multiplexers, Parity Generators, and Boolean functions using MUX Fall 2012 Allan Guan.
Digital Logic Lecture 08 By Amr Al-Awamry. Combinational Logic 1 A combinational circuit consists of an interconnection of logic gates. Combinational.
Combinational Logic Design CS341 Digital Logic and Computer Organization F2003.
1 Introduction to Abstract Mathematics Applications : Digital Logic Circuits 2.4 and Number Systems 2.5 Instructor: Hayk Melikya
XOR and XNOR Logic Gates. XOR Function Output Y is TRUE if input A OR input B are TRUE Exclusively, else it is FALSE. Logic Symbol  Description  Truth.
ECE 3130 – Digital Electronics and Design
ADDERS Half Adders Recall that the basic rules of binary addition are as indicated below in Table 2-9. A circuit known as the half-adder carries out these.
Apr. 3, 2000Systems Architecture I1 Systems Architecture I (CS ) Lecture 3: Review of Digital Circuits and Logic Design Jeremy R. Johnson Mon. Apr.
Digital Circuits. Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every.
Quiz What are the results of the following 4-bit bitwise logical operations? NOT OR NOR AND
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
Combination of logic gates  Logic gates can be combined to produce more complex functions.  They can also be combined to substitute one type of gate.
Digital Logic. 2 Abstractions in CS (gates) Basic Gate: Inverter IO IO GNDI O Vcc Resister (limits conductivity) Truth Table.
Logic Design CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
Universal college of engineering & technology. .By Harsh Patel)
1 Ethics of Computing MONT 113G, Spring 2012 Session 5 Binary Addition.
Digital Logic Structures: Chapter 3 COMP 2610 Dr. James Money COMP
1 CS 151: Digital Design Chapter 3: Combinational Logic Design 3-1Design Procedure CS 151: Digital Design.
ECE 320 Homework #4 1. Using 8 data input selector logic (MUX), implement the following two functions: a) F(A,B,C)=S 0 S 2 S 3 S 5 b) F(A,B,C,D)=P 0 +P.
Module 11.  In Module 9, we have been introduced to the concept of combinational logic circuits through the examples of binary adders.  Meanwhile, in.
ECE 301 – Digital Electronics Logic Circuit Design (Lecture #9)
Digital Design Module 2 Decoder Amit Kumar AP SCSE, GU Greater Noida.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR and parity check Circuits.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
COMPUTER ORGANISATION.. LAB. تنظيم الحاسبات.. عملي
Digital Logic.
Logic Gates.
Combinational Circuits
Computer Architecture CST 250
Digital Signals Digital Signals have two basic states:
Basic Digital Logic Basic Gates
Jeremy R. Johnson Wed. Sept. 29, 1999
Summary Half-Adder Basic rules of binary addition are performed by a half adder, which has two binary inputs (A and B) and two binary outputs (Carry out.
MIPS ALU.
Combinational Circuits
Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan
3.4 Computer systems Boolean logic Lesson 2.
Digital Circuits.
ECE 301 – Digital Electronics
Week 7: Gates and Circuits: PART II
Logic Gates.
Digital Logic.
Number Systems and Circuits for Addition
Adders and Subtractors
Gates Type AND denoted by X.Y OR denoted by X + Y NOR denoted by X + Y
Digital Logic.
DIGITAL ELECTRONICS B.SC FY
Combinational Circuits
Binary Logic.
Electronics for Physicists
Special Gates Combinational Logic Gates
XOR Function Logic Symbol  Description  Truth Table 
Digital Circuits.
Half & Full Subtractor Half Subtractor Full Subtractor.
Carryout bit? Carryout bit is ‘1’ also on four cases. When a, b and carryin are 110, 101, 011, 111. Does it mean that we need a similar circuit as sum?
Half & Full Subtractor Half Subtractor Full Subtractor.
Digital Circuits.
More Example.
Digital Logic Design.
SYEN 3330 Digital Systems Chapter 2 – Part 1 SYEN 3330 Digital Systems.
Digital Circuits.
Presentation transcript:

Digital Circuits

Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every input combination, figure out what an output bit should be, and write them down in a table.

Review – From the truth table to circuits Any truth table can be translated into a circuits consisting of several and gates followed by one or gate. – It means that any function can be implemented in this way Call a row in the truth table in which the output is `1’ a ``true row’’ and the input combination in this row a ``true input combination’’ or just a ``true combination.’’ Each and gate corresponds to one ``true row’’ in the truth table. The and gate should output a `1’ if and only if the input combination is the same as this row. If all other cases, the output of this and gate is `0.’ – So, whenever the input combination is the same as one of the ``true combinations,’’ one of the and gates outputs ``1’’, so the output of the or gate is 1. – If the input combination is not the same as any of the ``true combinations,’’ none of the and gates will output a ``1’’, so the output of the or gate is 0.

4 Logic Functions Drawing circuits is … Usually we express logic functions using logic equations which are more succinct and carry the same information – The OR operator is written as +, as in A + B. – The AND operator is written as ·, as A · B. – The unary operator NOT is written as or A’. Remember: This is NOT the binary field. Here 0+0=0, 0+1=1+0=1, 1+1=1.

Logic functions For example, the sum in the one-bit full adder is From a logic function you can immediately know what the circuit looks like. Truth table == Circuits == Logic function, equivalent. So we are going to get familiar with getting the logic functions from the truth table

Problems Ex 1. Assume that X consists of 3 bits, x2 x1 x0. Write a logic function that is true if and only if X contains only one 0

EX 1 X2X1X0output

EX 1 X2X1X0output

Ex 1 Output = x2x1x0’ + x2x1’x0 + x2’x1x0

Ex 2 Assume that X consists of 3 bits, x2 x1 x0. Write a logic functions that is true if and only if X contains an even number of 0s.

EX 2 X2X1X0output

EX 2 X2X1X0output

Ex 2 Output = x2x1’x0’ + x2’x1’x0 + x2’x1x0’+ x2x1x0

Ex 3 Assume that X consists of 3 bits, x2 x1 x0. Write a logic functions that is true if and only if X when interpreted as an unsigned binary number is no less than 5.

Ex 3 X2X1X0output

Ex 3 X2X1X0output

Ex 3 Output = x2x1’x0 + x2x1x0’+ x2x1x0

In class exercises 1 Assume that X consists of 3 bits, x2 x1 x0. Write a logic functions that is true if and only if X when interpreted as an unsigned binary number is less than 4.

In class exercises 2 Implement a circuit with three inputs (X2, X1, X0), and one output O. O should be 1 only when X2, X1, X0 are representing an odd binary number.