Digital Design. Verilo. and. Fundamentals. fit HDL. Joseph Cavanagh. CRC Press Taylor & Francis Group Boca Raton London New York

Similar documents
Computer Arithmetic andveriloghdl Fundamentals

Verilog HDL. Design Examples

COPYRIGHTED MATERIAL INDEX

CONTENTS CHAPTER 1: NUMBER SYSTEM. Foreword...(vii) Preface... (ix) Acknowledgement... (xi) About the Author...(xxiii)

Digital Fundamentals

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

Injntu.com Injntu.com Injntu.com R16

Digital Fundamentals


Digital Design Using Digilent FPGA Boards -- Verilog / Active-HDL Edition


CHW 261: Logic Design

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE

Digital Fundamentals. CHAPTER 2 Number Systems, Operations, and Codes

UPY14602-DIGITAL ELECTRONICS AND MICROPROCESSORS Lesson Plan

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

SOME ASSEMBLY REQUIRED

FUNDAMENTALS OF DIGITAL CIRCUITS

R07. Code No: V0423. II B. Tech II Semester, Supplementary Examinations, April

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

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

DHANALAKSHMI SRINIVASAN COLLEGE OF ENGINEERING AND TECHNOLOGY

Preface... xxi Chapter One: Digital Signals and Systems... 1 Chapter Two: Numbering Systems... 17

Code No: R Set No. 1

Chap.3 3. Chap reduces the complexity required to represent the schematic diagram of a circuit Library

Digital System Design with SystemVerilog

D I G I T A L C I R C U I T S E E

Digital Fundamentals

MYcsvtu Notes DATA REPRESENTATION. Data Types. Complements. Fixed Point Representations. Floating Point Representations. Other Binary Codes

DIGITAL ELECTRONICS. Vayu Education of India

Computer Sc. & IT. Digital Logic. Computer Sciencee & Information Technology. 20 Rank under AIR 100. Postal Correspondence

Scheme G. Sample Test Paper-I

COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK SUBJECT CODE & NAME: EC 1312 DIGITAL LOGIC CIRCUITS UNIT I

Combinational Logic Circuits

KING FAHD UNIVERSITY OF PETROLEUM & MINERALS COMPUTER ENGINEERING DEPARTMENT

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

3. The high voltage level of a digital signal in positive logic is : a) 1 b) 0 c) either 1 or 0

Chapter 3: part 3 Binary Subtraction

PRINCIPLES OF MODERN DIGITAL DESIGN. Parag K. Lala Cary and Lois Patterson Chair of Electrical Engineering Texas A&M University Texarkana

BINARY SYSTEM. Binary system is used in digital systems because it is:

Code No: R Set No. 1

HANSABA COLLEGE OF ENGINEERING & TECHNOLOGY (098) SUBJECT: DIGITAL ELECTRONICS ( ) Assignment

LOGIC DESIGN. Dr. Mahmoud Abo_elfetouh

1. Mark the correct statement(s)

GATE CSE. GATE CSE Book. November 2016 GATE CSE

Principles of Computer Architecture. Chapter 3: Arithmetic

EE178 Spring 2018 Lecture Module 1. Eric Crabill

R07

Combinational Logic II

Review of Number Systems

SHRI ANGALAMMAN COLLEGE OF ENGINEERING. (An ISO 9001:2008 Certified Institution) SIRUGANOOR, TIRUCHIRAPPALLI

CS 121 Digital Logic Design. Chapter 1. Teacher Assistant. Hadeel Al-Ateeq

Computer Architecture and Organization

Contents. Appendix D Verilog Summary Page 1 of 16

Verilog for High Performance

Digital Design with FPGAs. By Neeraj Kulkarni

Lecture 2: Number Systems

Week 7: Assignment Solutions

CHAPTER V NUMBER SYSTEMS AND ARITHMETIC

DIGITA L LOGIC AND COMPUTER ORGA NIZATION

Positional Number System

Hardware Description Languages (HDLs) Verilog

MGU-BCA-205- Second Sem- Core VI- Fundamentals of Digital Systems- MCQ s. 2. Why the decimal number system is also called as positional number system?

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE)

ii) Do the following conversions: output is. (a) (101.10) 10 = (?) 2 i) Define X-NOR gate. (b) (10101) 2 = (?) Gray (2) /030832/31034

Chapter 4. Combinational Logic

Digital Circuit Design and Language. Datapath Design. Chang, Ik Joon Kyunghee University

Principles of Digital Techniques PDT (17320) Assignment No State advantages of digital system over analog system.

UNIT I BOOLEAN ALGEBRA AND COMBINATIONAL CIRCUITS PART-A (2 MARKS)

CHAPTER 2 Data Representation in Computer Systems

CHAPTER 2 Data Representation in Computer Systems

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

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

TEACHING & EXAMINATION SCHEME For the Examination COMPUTER SCIENCE. B.Sc. Part-I

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

Computer Logical Organization Tutorial

DE Solution Set QP Code : 00904

APPENDIX A SHORT QUESTIONS AND ANSWERS

Method We follow- How to Get Entry Pass in SEMICODUCTOR Industries for 3rd year engineering. Winter/Summer Training

CPE300: Digital System Architecture and Design

Logic and Computer Design Fundamentals. Chapter 1 Digital Computers and Information

Digital logic fundamentals. Question Bank. Unit I

Digital Systems and Binary Numbers

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

This tutorial gives a complete understanding on Computer Logical Organization starting from basic computer overview till its advanced architecture.

BHARATHIDASAN ENGINEERING COLLEGE Degree / Branch : B.E./ECE Year / Sem : II/ III Sub.Code / Name : EC6302/DIGITAL ELECTRONICS

DIRECTORATE OF TECHNICAL EDUCATION DIPLOMA IN ELECTRICAL AND ELECTRONICS ENGINEERING II YEAR M SCHEME IV SEMESTER.

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

EEM 232 Digital System I

Digital Systems and Binary Numbers

IA Digital Electronics - Supervision I

NADAR SARASWATHI COLLEGE OF ENGINEERING AND TECHNOLOGY Vadapudupatti, Theni

Code No: 07A3EC03 Set No. 1

DIGITAL ELECTRONICS. P41l 3 HOURS

END-TERM EXAMINATION

Model EXAM Question Bank

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Ch. 7 Error Detection and Correction

Korea University of Technology and Education

Transcription:

Digital Design and Verilo fit HDL Fundamentals Joseph Cavanagh Santa Clara University California, USA CRC Press Taylor & Francis Group Boca Raton London New York CRC Press is an imprint of the Taylor & Francis Croup, an informa business

CONTENTS Chapter 1 1.1 1.2 1.3 1.4 1.5 1.6 Number Systems, Number Representations, and Codes 1 Number Systems 1 1.1.1 Binary Number System 4 1.1.2 Octal Number System 7 1.1.3 Decimal Number System 9 1.1.4 Hexadecimal Number System 10 1.1.5 Arithmetic Operations 12 1.1.6 Conversion Between Radices 22 Number Representations 29 1.2.1 1.2.2 1.2.3 1.2.4 Sign Magnitude 29 Diminished-Radix Complement 31 Radix Complement 34 Arithmetic Operations 38 Binary Codes 59 1.3.1 1.3.2 1.3.3 1.3.4 Binary Weighted and Nonweighted Codes 59 Binary-to-BCD Conversion 63 BCD-to-Binary Conversion 64 Gray Code 65 Error Detection and Correction Codes 68 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 Parity 68 Hamming Code 70 Cyclic Redundancy Check Code 72 Checksum 73 Two-Out-Of-Five Code 75 Horizontal and Vertical Parity Check 75 Serial Data Transmission 77 Problems 78 Chapter 2 Minimization of Switching Functions 83 2.1 Boolean Algebra 83 2.2 Algebraic Minimization 92 2.3 Karnaugh Maps 95 2.3.1 Map-Entered Variables 113 2.4 Quine-McCluskey Algorithm 118 2.4.1 Petrick Algorithm 123 2.5 Problems 128

Chapter 3 Combinational Logic 137 3.1 Logic Primitive Gates 138 3.1.1 Wired-AND and Wired-OR Operations 148 3.1.2 Three-State Logic 150 3.1.3 Functionally Complete Gates 150 3.2 Logic Macro Functions 154 3.2.1 Multiplexers 155 3.2.2 Decoders 173 3.2.3 Encoders 185 3.2.4 Comparators 189 3.3 Analysis of Combinational Logic 194 3.4 Synthesis of Combinational Logic 205 3.5 Problems 223 Chapter 4 Combinational Logic Design UsingVerilogHDL231 4.1 Built-In Primitives 232 4.2 User-Defined Primitives 267 4.2.1 Defming a User-Defined Primitive 267 4.2.2 Combinational User-Defined Primitives 267 4.3 Dataflow Modeling 289 4.3.1 Continuous Assignment 289 4.3.2 Reduction Operators 312 4.3.3 Conditional Operator 315 4.3.4 Relational Operators 318 4.3.5 Logical Operators 320 4.3.6 Bitwise Operators 322 4.3.7 Shift Operators 326 4.4 Behavioral Modeling 328 4.4.1 Initial Statement 329 4.4.2 Always Statement 332 4.4.3 Intrastatement Delay 339 4.4.4 Interstatement Delay 341 4.4.5 Blocking Assignments 343 4.4.6 Nonblocking Assignments 345 4.4.7 Conditional Statement 351 4.4.8 Case Statement 356 4.4.9 Loop Statements 365 4.4.10 Tasks370 4.4.11 Functions 374 4.5 Structural Modeling 378 4.5.1 Module Instantiation 378 4.5.2 Ports 379

4.6 4.5.3 Design Examples 383 Problems 412 Chapter 5 Computer Arithmetic 425 5.1 Fixed-Point Addition 426 5.1.1 Ripple-Carry Addition 428 5.1.2 Carry Lookahead Addition 429 5.2 Fixed-Point Subtraction 433 5.3 Fixed-Point Multiplication 436 5.3.1 Sequential Add-Shift 439 5.3.2 Booth Algorithm 442 5.3.3 Bit-Pair Recoding 448 5.3.4 Array Multiplier 453 5.4 Fixed-Point Division 456 5.4.1 Restoring Division 458 5.4.2 Nonrestoring Division 460 5.5 Decimal Addition 462 5.5.1 Addition With Sum Correction 463 5.5.2 Addition Using Multiplexers for Sum Correction 464 5.6 Decimal Subtraction 467 5.7 Decimal Multiplication 472 5.7.1 Multiplication Using Read-Only Memory 472 5.8 Decimal Division 477 5.8.1 Division Using Table Lookup 477 5.9 Floating-Point Arithmetic 477 5.9.1 Floating-Point Addition/Subtraction 482 5.9.2 Floating-Point Multiplication 489 5.9.3 Floating-Point Division 493 5.9.4 Rounding Methods 495 5.10 Problems 497 Chapter 6 Computer Arithmetic Design Using Verilog HDL 503 6.1 Fixed-Point Addition 503 6.1.1 High-Speed Füll Adder 504 6.1.2 Four-Bit Ripple Adder 509 6.1.3 Carry Lookahead Adder 515 6.2 Fixed-Point Subtraction 520 6.3 Fixed-Point Multiplication 527 6.3.1 Booth Algorithm 527 6.3.2 Array Multiplier 532

6.4 Decimal Addition 538 6.4.1 BCD Addition With Sum Correction 539 6.4.2 BCD Addition Using Multiplexers for Sum Correction 543 6.5 Decimal Subtraction 549 6.6 Problems 560 Chapter 7 Sequential Logic 565 7.1 Analysis of Synchronous Sequential Machines 566 7.1.1 Machine Alphabets 566 7.1.2 Storage Elements 569 7.1.3 Classes of Sequential Machines 573 7.1.4 Methods of Analysis 5 82 7.1.5 Analysis Examples 591 7.2 Synthesis of Synchronous Sequential Machines 605 7.2.1 Synthesis Procedure 606 7.2.2 Synchronous Registers 619 7.2.3 Synchronous Counters 623 7.2.4 Moore Machines 634 7.2.5 Mealy Machines 641 7.2.6 Output Glitches 648 7.3 Analysis of Asynchronous Sequential Machines 655 7.3.1 Fundamental-Mode Model 656 7.3.2 Methods of Analysis 658 7.3.3 Hazards 663 7.3.4 Oscillations 674 7.3.5 Races 676 7.4 Synthesis of Asynchronous Sequential Machines 679 7.4.1 Synthesis Procedure 679 7.4.2 Synthesis Examples 681 7.5 Analysis of Pulse-Mode Asynchronous Sequential Machines 706 7.5.1 Analysis Procedure 708 7.6 Synthesis of Pulse-Mode Asynchronous Sequential Machines 715 7.6.1 Synthesis Procedure 715 7.7 Problems 722 Chapter 8 Sequential Logic Design Using Verilog HDL 739 8.1 Synchronous Sequential Machines 740 8.2 Asynchronous Sequential Machines 770 8.3 Pulse-Mode Asynchronous Sequential Machines 790 8.4 Problems 808

Chapter 9 Programmable Logic Devices 821 9.1 Programmable Read-Only Memory 822 9.1.1 Combinational Logic 823 9.1.2 Sequential Logic 827 9.2 Programmable Array Logic 831 9.2.1 Combinational Logic 833 9.2.2 Sequential Logic 834 9.3 Programmable Logic Arrays 845 9.3.1 Combinational Logic 845 9.3.2 Sequential Logic 847 9.4 Field-Programmable Gate Arrays 854 9.5 Problems 862 Chapter 10 Digital and Analog Conversion 869 10.1 Operational Amplifier 869 10.2 Digital-to-Analog Conversion 872 10.2.1 Binary-Weighted Resistor Network Digital-to-Analog Converter 873 10.2.2 R - 2R Resistor Network Digital-to-Analog Converter 878 10.3 Analog-to-Digital Conversion 883 10.3.1 Comparators 883 10.3.2 Counter Analog-to-Digital Converter 885 10.3.3 Successive Approximation Analog-to-Digital Converter 886 10.3.4 Simultaneous Analog-to Digital Converter 890 10.4 Problems 894 Chapter 11 Magnetic Recording Fundamentals 899 11.1 Return to Zero 900 11.2 Nonreturn to Zero 901 11.3 Nonreturn to Zero Inverted 902 11.4 Frequency Modulation 903 11.5 Phase Encoding 905 11.6 Modified Frequency Modulation 906 11.7 Run-Length Limited 906 11.8 Group-Coded Recording 908 11.9 Peak Shift 911 11.10 Write Precompensation 912 11.11 Verti cal Recording 914 11.12 Problems 915

Chapter 12 Additional Topics in Digital Design 921 12.1 12.2 12.3 12.4 12.5 12.6 12.7 12.8 12.9 12.10 Functional Decomposition 922 Iterative Networks 941 Hamming Code 953 Cyclic Redundancy Check Code 967 Residue Checking 973 Parity Prediction 980 Condition Codes for Addition 984 Arithmetic and Logic Unit 987 Memory 1000 Problems 1006 Append ix A A.l A.2 A.3 A.4 Event Queue 1013 Event Handling for Dataflow Assignments 1013 Event Handling for Blocking Assignments 1018 Event Handling for Nonblocking Assignments 1021 Event Handling for Mixed Blocking and Nonblocking Assignments 1025 Appendix B Verilog Project Procedure 1029 Appendix C Answers to Select Problems 1031 Chapter 1 Number Systems, Number Representations, and Codes 1031 Chapter 2 Minimization of Switching Functions 1034 Chapter 3 Combinational Logic 1038 Chapter 4 Combinational Logic Design Using Verilog HDL 1043 Chapter 5 Computer Arithmetic 1065 Chapter 6 Computer Arithmetic Design Using Verilog HDL 1069 Chapter 7 Sequential Logic 1076 Chapter 8 Sequential Logic Design Using Verilog HDL 1086 Chapter 9 Programmable Logic Devices 1117 Chapter 10 Digital and Analog Conversion 1123 Chapter 11 Magnetic Recording Fundamentals 1125 Chapter 12 Additional Topics in Digital Design 1127 Index 1135