Dept. of Electrical and Computer Eng., NCTU

Slides:



Advertisements
Similar presentations
ENGIN112 L7: More Logic Functions September 17, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 7 More Logic Functions: NAND, NOR,
Advertisements

Logic Gates.
IN THE SUPERVISIONS OF: DR\KAMEL ALI ARRAM ENG\LAMIAA Computer Vision Course.
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.
Logic Design Fundamentals - 1 Lecture L1.1. Logic Design Fundamentals - 1 Basic Gates Basic Combinational Circuits Basic Sequential Circuits.
Lecture. Outline Bits Gates Combinatorial Logic Spice Hands-On Stuff.
Design Of Combinational Logic Circuits
Combinational circuits
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.
Transistors and Logic Circuits. Transistor control voltage in voltage out control high allows current to flow -- switch is closed (on) control low stops.
TODAY YOU ARE LEARNING to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams.
Basic Logic Operations and Standard Logic Gates (Lecture #1) ECE 331 – Digital System Design.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
Exclusive OR Gate. Logically, the exclusive OR (XOR) operation can be seen as either of the following operations:exclusive OR (XOR) 1. A AND NOT B OR.
Basic logic gates  AND gate:The truth table is given by A.BBA
Logic Gates. The Inverter The inverter (NOT circuit) performs the operation called inversion or complementation. Standard logic symbols: 1 1 input output.
Universal college of engineering & technology. .By Harsh Patel)
COMPUTER ARCHITECTURE TRUTH TABLES AND LOGIC GATES.
Dept. of Electrical and Computer Eng., NCTU 1 Lab 4. BCD Adder Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu.
Dept. of Electrical and Computer Eng., NCTU 1 Lab 9. Up Counter Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu.
Dept. of Electrical and Computer Eng., NCTU
Dept. of Electrical and Computer Eng., NCTU 1 Lab 8. D-type Flip-Flop Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu.
Dept. of Electrical and Computer Eng., NCTU
Dept. of Electrical and Computer Eng., NCTU 1 Lab 2. NAND and XOR Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu.
The inverter performs the Boolean NOT operation. When the input is LOW, the output is HIGH; when the input is HIGH, the output is LOW. The Inverter AX.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR and parity check Circuits.
Dept. of Electrical and Computer Eng., NCTU 1 Lab 1. Full Adder Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu.
Dept. of Electrical and Computer Eng., NCTU 1 Lab 7. 8-to-1 Multiplexer Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu.
Dept. of Electrical and Computer Eng., NCTU 1 Lab 5. 3-to-8 Decoder Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu.
Logic Gates and Boolean Algebra Introduction to Logic II.
ACOE161Digital Circuit Design1 Design Of Combinational Logic Circuits.
Dept. of Electrical and Computer Eng., NCTU 1 Lab 10. Up/Down Counter Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu.
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Eng. Mai Z. Alyazji October, 2016
Dept. of Electrical and Computer Eng., NCTU
ECE 3130 Digital Electronics and Design
Transistors and Logic Circuits
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Dept. of Electrical and Computer Eng., NCTU
Lab02 :Logic Gate Fundamentals:
ECE 331 – Digital System Design
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
Exclusive OR Gate.
LAB #1 Introduction Combinational Logic Design
Dept. of Electrical and Computer Eng., NCTU
KS4 Electricity – Electronic systems
KS4 Electricity – Electronic systems
For OCR GCSE Computing Unit 1 - Theory
Logic Gates.
Boolean Algebra.
Logic Gates.
Logic Gates.
Design Example “Date of Birth Problem”
KS4 Electricity – Electronic systems
DIGITAL ELECTRONICS B.SC FY
University of Maryland Baltimore County Department of Computer Science and Electrical Engineering   CMPE 212 Laboratory (Discussion 13) Hasib Hasan
Logic Gates.
Implementing a generic logic function in CMOS
Digital Logic Experiment
XOR Function Logic Symbol  Description  Truth Table 
ECE 3130 Digital Electronics and Design
Department of Electronics
Basic Logic Operations
Eng. Ahmed M Bader El-Din October, 2018
Dept. of Electrical and Computer Eng., NCTU
Logic Gates By: Asst Lec. Besma Nazar Nadhem
Presentation transcript:

Dept. of Electrical and Computer Eng., NCTU Lab 3. 2-bit Comparator Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu Dept. of Electrical and Computer Eng., NCTU

Dept. of Electrical and Computer Eng., NCTU What is comparator? Design a 2-bit comparator Input: A (2-bit) and B (2-bit) Output: A=B, A>B, A<B LAB: 2-bit Comparator Dept. of Electrical and Computer Eng., NCTU

Dept. of Electrical and Computer Eng., NCTU What is comparator? If we only have 1-bit input A and B… A>B, iff A=1, B=0 A=B, iff A=1, B=1 OR A=0,B=0 A<B, iff A=0, B=1 Truth table A B A>B A=B A<B 1 Dept. of Electrical and Computer Eng., NCTU

Dept. of Electrical and Computer Eng., NCTU Design a 2-bit comparator Input: A [A1 A0] and B [B1 B0] Output: A=B, A>B, A<B For A>B: {A1>B1, A0, B0 don’t care} {A1=B1, A0>B0} For A<B: {A1<B1, A0, B0 don’t care} {A1=B1, A0<B0} For A=B: {A1=B1, A0=B0} A1 B1 A1=B1 1 XNOR Dept. of Electrical and Computer Eng., NCTU

Dept. of Electrical and Computer Eng., NCTU Design a 2-bit comparator How to implement XNOR? Sum of Product: 𝑋=𝐴𝐵+ 𝐴 𝐵 𝑋= (𝐴 𝐵 + 𝐴 𝐵) A B X 1 Dept. of Electrical and Computer Eng., NCTU

Dept. of Electrical and Computer Eng., NCTU Design a 2-bit comparator How to implement XNOR? 𝑋= (𝐴 𝑋𝑂𝑅 𝐵) 𝑋= (𝐴 𝐵 + 𝐴 𝐵) A1 B1 A1=B1 1 NOR Dept. of Electrical and Computer Eng., NCTU

Dept. of Electrical and Computer Eng., NCTU Design a 2-bit comparator For A=B: {A1=B1, A0=B0} X1: A1=B1 For A>B: {A1>B1} {A1=B1, A0>B0} For A<B: {A1<B1} {A1=B1, A0<B0} X1 Dept. of Electrical and Computer Eng., NCTU

Dept. of Electrical and Computer Eng., NCTU Implement a 2-bit comparator Show the relation between two two-bit inputs, A and B Design the circuit of A>B and A<B Reuse the circuit of {A=B} Equipment: Use LED x 3 for display A>B, A=B, A<B Use the following IC to implement Lab 6 7402 (NOR) x 1, 7408 (AND) x 2, 7404 (Inverter) x 1, 7432 (OR) x 1 Dept. of Electrical and Computer Eng., NCTU