CENG 241 Digital Design 1

Similar documents
NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY CS 2202 DIGITAL PRINCIPLES AND SYSTEM DESIGN

Digital Logic Design. Outline

Gate-Level Minimization

EEL 4783: HDL in Digital System Design

Chapter 3. Gate-Level Minimization. Outlines

Hardware Description Languages (HDLs) Verilog

Cadence Verilog Tutorial Windows XP machine with Exceed X Emulator

EE 8351 Digital Logic Circuits Ms.J.Jayaudhaya, ASP/EEE

Gate-Level Minimization

Introduction to Verilog

Chapter 4. Combinational Logic. Dr. Abu-Arqoub


QUESTION BANK FOR TEST

FPGA Design Challenge :Techkriti 14 Digital Design using Verilog Part 1

Combinational Logic Circuits

Hardware description languages

Gate-Level Minimization

Verilog for Combinational Circuits

Chapter 4 Combinational Logic

Combinational Logic. Prof. Wangrok Oh. Dept. of Information Communications Eng. Chungnam National University. Prof. Wangrok Oh(CNU) 1 / 93

Combinational Circuits

Code No: R Set No. 1

LAB #1 BASIC DIGITAL CIRCUIT

Electronic Engineering Part 1 Laboratory Experiment. Digital Circuit Design 1 Combinational Logic. (3 hours)

Department of Electrical Engineering McGill University ECSE 221 Introduction to Computer Engineering Assignment 2 Combinational Logic

Date Performed: Marks Obtained: /10. Group Members (ID):. Experiment # 09 MULTIPLEXERS

Last Name Student Number. Last Name Student Number

Logic Gates and Boolean Algebra ENT263

Code No: R Set No. 1

Lecture 8: Combinational Verilog. CSE 370, Autumn 2007 Benjamin Ylvisaker. Where We Are. Last lecture: Minimization with K!maps

Digital Design with FPGAs. By Neeraj Kulkarni


Combinational Logic II

Logic and Computer Design Fundamentals. Chapter 2 Combinational Logic Circuits. Part 3 Additional Gates and Circuits

Code No: R Set No. 1

EECS 3201: Digital Logic Design Lecture 4. Ihab Amer, PhD, SMIEEE, P.Eng.

Midterm Exam Review. CS 2420 :: Fall 2016 Molly O'Neil

Review. EECS Components and Design Techniques for Digital Systems. Lec 05 Boolean Logic 9/4-04. Seq. Circuit Behavior. Outline.

Gate-Level Minimization

Objectives: 1- Bolean Algebra. Eng. Ayman Metwali

CprE 281: Digital Logic

Gate Level Minimization Map Method

Department of Computer Science & Engineering. Lab Manual DIGITAL LAB. Class: 2nd yr, 3rd sem SYLLABUS

Computer Organization

CS429: Computer Organization and Architecture

Dr. S. Shirani COE2DI4 Midterm Test #1 Oct. 14, 2010

數位系統 Digital Systems 朝陽科技大學資工系. Speaker: Fuw-Yi Yang 楊伏夷. 伏夷非征番, 道德經察政章 (Chapter 58) 伏者潛藏也道紀章 (Chapter 14) 道無形象, 視之不可見者曰夷

Chapter 3. Boolean Algebra and Digital Logic

register:a group of binary cells suitable for holding binary information flip-flops + gates

CSE303 Logic Design II Laboratory 01

Topics. Midterm Finish Chapter 7

Combinational Circuits


Software Engineering 2DA4. Slides 2: Introduction to Logic Circuits

(ii) Simplify and implement the following SOP function using NOR gates:

Assignment (3-6) Boolean Algebra and Logic Simplification - General Questions

Chapter 2 Boolean algebra and Logic Gates

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

END-TERM EXAMINATION

Chapter Three. Digital Components

ELCT201: DIGITAL LOGIC DESIGN

N-input EX-NOR gate. N-output inverter. N-input NOR gate

ECEN 449 Microprocessor System Design. Verilog. Texas A&M University

structure syntax different levels of abstraction

Here is a list of lecture objectives. They are provided for you to reflect on what you are supposed to learn, rather than an introduction to this

Objectives: 1. Design procedure. 2. Fundamental circuits. 1. Design procedure

Summary. Boolean Addition

Eric Blasko Dr. Tong Yu CSE-310 digital logic Spring 2018 Homework 3, due 5/14/2018 ( Mon ) 12 pm

CSE140L: Components and Design Techniques for Digital Systems Lab. Verilog HDL. Instructor: Mohsen Imani UC San Diego. Source: Eric Crabill, Xilinx

Chapter 2. Boolean Algebra and Logic Gates

ECE 2300 Digital Logic & Computer Organization. More Sequential Logic Verilog

Experiment 3: Logic Simplification

KING FAHD UNIVERSITY OF PETROLEUM & MINERALS COMPUTER ENGINEERING DEPARTMENT

R a) Simplify the logic functions from binary to seven segment display code converter (8M) b) Simplify the following using Tabular method

Chapter 2 Basic Logic Circuits and VHDL Description

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING EC6302 DIGITAL ELECTRONICS

Review. Pipeline big-delay CL for faster clock Finite State Machines extremely useful You ll see them again in 150, 152 & 164

LAB #3: ADDERS and COMPARATORS using 3 types of Verilog Modeling

Computer Organization and Levels of Abstraction

Introduction to synthesis. Logic Synthesis

NAND. Grade (10) Instructor. Logic Design 1 / 13

BUILDING BLOCKS OF A BASIC MICROPROCESSOR. Part 1 PowerPoint Format of Lecture 3 of Book

Ch. 5 : Boolean Algebra &

A3 A2 A1 A0 Sum4 Sum3 Sum2 Sum1 Sum

B.Tech II Year I Semester (R13) Regular Examinations December 2014 DIGITAL LOGIC DESIGN

Tutorial on Verilog HDL

DLD VIDYA SAGAR P. potharajuvidyasagar.wordpress.com. Vignana Bharathi Institute of Technology UNIT 3 DLD P VIDYA SAGAR

ELCT201: DIGITAL LOGIC DESIGN

HDL for Combinational Circuits. ENEL211 Digital Technology

EXPERIMENT #8: BINARY ARITHMETIC OPERATIONS

Content beyond Syllabus. Parity checker and generator

2008 The McGraw-Hill Companies, Inc. All rights reserved.

R10. II B. Tech I Semester, Supplementary Examinations, May

IT 201 Digital System Design Module II Notes

SUBJECT CODE: IT T35 DIGITAL SYSTEM DESIGN YEAR / SEM : 2 / 3

SYNERGY INSTITUTE OF ENGINEERING & TECHNOLOGY,DHENKANAL LECTURE NOTES ON DIGITAL ELECTRONICS CIRCUIT(SUBJECT CODE:PCEC4202)

SIR C.R.REDDY COLLEGE OF ENGINEERING, ELURU DEPARTMENT OF INFORMATION TECHNOLOGY LESSON PLAN

Where We Are. Quick History Lesson. Lecture 8: Combinational Verilog. Specifying Circuits. Last lecture: Minimization with K!maps

UNIT- V COMBINATIONAL LOGIC DESIGN

Hardware description language (HDL)

Transcription:

CENG 241 Digital Design 1 Lecture 5 Amirali Baniasadi amirali@ece.uvic.ca

This Lecture Lab Review of last lecture: Gate-Level Minimization Continue Chapter 3:XOR functions, Hardware Description Language HW 2: Due Thursday May 31st. FIRST MIDTERM: THURSDAY JUNE 14, IN CLASS. 2

Midterm 1 CENG 241 Digital Design 1 Midterm #1 (sample) Important Note: Show your work for all sections. Consider the following Boolean function: F(A, B, C, D, E) = Σ (8,10,13,15,16,18,21,23,25,27) and d(a, B, C, D, E) = Σ (0,2,5,7,29,31) Use the 1 s in the map to find the simplest Boolean function and implement it using only NAND gates. Draw the logic.(10 points) Use the 0 s in the map to find the simplest Boolean function and implement it using only NOR gates. Draw the logic. (10 points) NOTE: Each gate may have up to 3 inputs. 3

Multilevel NAND circuits Sum of Products and Product of Sums result in two level designs Not all designs are two-level e.g., F=A.(C.D+B)+B.C How do we convert multilevel circuits to NAND circuits? Rules 1-Convert all ANDs to NAND gates with AND-invert symbol 2-Convert all Ors to NAND gates with invert-or symbols 3-Check the bubbles, insert bubble if not compensated 4

Multilevel NAND circuits B BC 5

Multilevel NAND circuits 6

Exclusive-OR Function X XOR Y = X.Y+X.Y two input XOR IS 1 if both inputs are not similar 7

Three-input XOR Function F = A XOR B XOR C Multiple input XOR is 1 only if the number of 1 variables is odd: ODD function 8

ODD Function Implementation 9

Four-input XOR Function F detects odd number of 1s, F detects even number of 1 s 10

Parity Generation and Checking Parity bit: extra bit to ensure correct transmission of data Parity bit is included in the message to make the number of 1s either odd (odd parity) or even (even parity). We can use XOR to see if the number of 1 s is odd. We can use XOR-invert to see if the number of 1 s is even. We include the XOR output in the message Later at receiver we check the number of 1 bits to see if the transmission is correct. 11

Parity Generation and Checking circuits 12

Hardware Description Language Hardware Description Language explains hardware in textual form Represents digital circuits HDL has two applications: 1-Simulation: represents structure and behavior of digital circuits 2-Synthesis:Derives a list of components and interconnections from HDL. Two examples of HDL: VHDL, Verilog We use verilog since its easier to learn. 13

Hardware Description Language-example //HDL Example 3-1 //-------------------------- //Description of the simple circuit of Fig. 3-37 module smpl_circuit(a,b,c,x,y); input A,B,C; output x,y; wire e; and g1(e,a,b); not g2(y, C); or g3(x,e,y); endmodule 14

Hardware Description Language-example How do we take into account gate delays? //HDL Example 3-2 //--------------------------------- //Description of circuit with delay module circuit_with_delay (A,B,C,x,y); input A,B,C; output x,y; wire e; and #(30) g1(e,a,b); or #(20) g3(x,e,y); not #(10) g2(y,c); endmodule 15

Test bench To simulate circuits we need input signals. The HDL description that provides the input/stimulus is called a test bench 16

Test bench example //HDL Example 3-3 //---------------------- //Stimulus for simple circuit module stimcrct; reg A,B,C; wire x,y; circuit_with_delay cwd(a,b,c,x,y); initial begin A = 1'b0; B = 1'b0; C = 1'b0; #100 A = 1'b1; B = 1'b1; C = 1'b1; #100 $finish; end endmodule //Description of circuit with delay module circuit_with_delay (A,B,C,x,y); input A,B,C; output x,y; wire e; and #(30) g1(e,a,b); or #(20) g3(x,e,y); not #(10) g2(y,c); endmodule 17

Test bench example simulation output 18

Combinational Logic Combinational Logic: Output only depends on current input Sequential Logic:Output depends on current and previous inputs 19

Design Procedure 1.The number of inputs and outputs? 2.Derive the truth table 3.Obtain the Boolean Function 4.Draw the logic diagram, verify correctness 20

Design Procedure example Binary Adder-Subtractor Basic block is a half adder. Half Adder Design: 1.needs 2 inputs 2 outputs 2. Truth Table: x y C S 0 0 0 0 0 1 0 1 1 0 0 1 1 1 1 0 3. S=x y+xy C=xy 21

Half Adder circuit 22

Full Adder? Truth Table: x y z C S 0 0 0 0 0 0 0 1 0 1 0 1 0 0 1 0 1 1 1 0 1 0 0 0 1 1 0 1 1 0 1 1 0 1 0 1 1 1 1 1 23

Full Adder Map 24

Full Adder Circuit 25

Full Adder Circuit Half adder? 26

4-bit Adder Circuit But this is slow... 27

Summary Implementation, XOR, Parity Checking, HDL Reading up to page 121-end of chapter 3 Homework 2: problems 3-11, 3-15, 3-20, 3-23 and 3-24 from textbook 28