DigitalDesign Waleed A. Yousef.

Telechargé par Achraf ELMAHJOUR
Copyright © 2015, 2019 Waleed A. Yousef. All Rights Reserved.
CS221: Digital Design
Waleed A. Yousef, Ph.D.,
Human Computer Interaction Lab.,
Computer Science Department,
Faculty of Computers and Information,
Helwan University,
Egypt.
March 24, 2019
Copyright © 2015, 2019 Waleed A. Yousef. All Rights Reserved.
Lectures follow (and some figures are adapted from):
Mano, M. M., Ciletti, M. D., 2007. Digital design, 4th Edition. Prentice-Hall, Upper
Saddle River, NJ
We will proceed as follows:
Fast introduction (few sections from Chapter 1).
Detailed study of Chapters 2-7; very few sections will be skipped. At the end of each chapter Verilog
code for some circuits will be explained.
If time permits, Chapter 8 will be covered in full or in parts
i
Copyright © 2015, 2019 Waleed A. Yousef. All Rights Reserved.
Course Objectives
This course combines three approaches to teach students Digital Design, which is the fundamental prereq-
uisite to understand computer design and architecture:
1. Theoretical aspects of the subject will be covered in lectures, along with exercises in sections. Stu-
dents, by the end of the course, should be able to design, analyze, and implement combinational and
synchronous digital circuits.
2. A second objective is to teach students the digital design using a Hardware Descriptive Language
(HDL). Students by the end of the semester will be able to analyze logic circuits with Verilog (one of
the available HDLs).
3. A third objective is to develop the practical sense of the students through lab. experiments. Students
will be able to implement logic circuits using breadboards and ICs.
ii
Copyright © 2015, 2019 Waleed A. Yousef. All Rights Reserved.
Contents
Contents iii
1 Introduction to Digital Systems 1
1.9 From Binary Logic (Mathematics) to Logic Gates (Circuits) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2 Boolean Algebra and Logic Gates 9
2.3 Axiomatic Definition of Boolean Algebra . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.4 Basic Theorems and Properties of Boolean Algebra . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.4.1 OperatorPrecedence ....................................................................... 15
2.5 Boolean Functions and Gate Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.6 CanonicalandStandardForms ........................................................................ 20
2.6.1 MintermsandMaxterms..................................................................... 20
2.6.2 StandardForms .......................................................................... 24
2.7 OtherLogicOperations ............................................................................. 26
2.8 OtherDigitalLogicGates ............................................................................ 29
2.8.1 ExtentiontoMultipleInputs................................................................... 31
2.9 IntegratedCircuits(ICs)............................................................................. 34
2.9.1 LevelsofIntegration........................................................................ 35
3 Gate-Level Minimization 36
3.1 Introduction.................................................................................... 37
3.2 TheMapMethod ................................................................................. 37
3.2.1 Two-VariableMap......................................................................... 38
iii
Copyright © 2015, 2019 Waleed A. Yousef. All Rights Reserved.
3.2.2 Three-VariableMap........................................................................ 39
3.3 Four-VariableMap ................................................................................ 45
3.4 Five-VariableMap ................................................................................ 48
3.5 Product-of-SumsSimplications ....................................................................... 50
3.6 Dont-CareConditions.............................................................................. 52
3.6.1 More Examples on K-Map Simplifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
3.7 Two-Level Implementation in NAND and NOR ................................................................ 54
3.7.1 NORImplementation....................................................................... 56
3.9 Exclusive-OR (XOR)Function:revisit ..................................................................... 57
3.9.1 ParityGenerationandChecking ................................................................ 60
3.10 HardwareDescriptiveLanguage(HDL).................................................................... 61
4 Combinational Logic 66
4.1 Introduction:typesoflogiccircuits ...................................................................... 67
4.2 CombinationalCircuits ............................................................................. 68
4.3 AnalysisProcedure................................................................................ 69
4.4 DesignProcedure................................................................................. 70
4.4.1 CodeConversionExample.................................................................... 70
4.5 BinaryAdder-Subtractor ............................................................................ 72
4.5.1 HalfAdder.............................................................................. 72
4.5.2 FullAdder.............................................................................. 73
4.5.3 Implementing FA using ONLY HA => modular design => very interesting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
4.5.4 Binary Adder: => more modular design => wonderful! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
4.5.5 Carry Propagation: complexity-speed trade off! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
4.5.6 BinarySubtractor ......................................................................... 78
4.5.7 BinaryAdder-Subtractor ..................................................................... 79
4.6 DecimalAdder .................................................................................. 80
4.7 BinaryMultiplier ................................................................................. 84
4.7.1 2-bitx2-bitMultiplier....................................................................... 84
4.7.2 3-bit x 4-bit Multiplier: How many bits? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
4.8 4-bitx4-bitMagnitudeComparator...................................................................... 86
4.9 n×2nDecoder: Di=mi............................................................................ 89
4.10 2nto nEncoders ................................................................................. 92
4.10.1 PriorityEncoder:4x2....................................................................... 93
4.11 Multiplexers: 2n×1................................................................................ 94
4.11.1 Two-to-one-lineMux ....................................................................... 94
4.11.2 Four-to-one-lineMux....................................................................... 95
4.11.3 Quadrable two-to-one-line Mux (block-reuse design) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
4.11.4 Boolean Function Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
4.12 Demultiplexers(DEMUX)............................................................................ 99
4.13 HDLModelsofCombinationalCircuits....................................................................100
iv
1 / 179 100%
La catégorie de ce document est-elle correcte?
Merci pour votre participation!

Faire une suggestion

Avez-vous trouvé des erreurs dans linterface ou les textes ? Ou savez-vous comment améliorer linterface utilisateur de StudyLib ? Nhésitez pas à envoyer vos suggestions. Cest très important pour nous !