Course File 3sem F Section
Course File 3sem F Section
To create knowledge based society with scientific temper, team spirit and dignity of labor to face the
global competitive challenges.
Mission
To evolve and develop skill based systems for effective delivery of knowledge so as to equip
young professionals with dedication and commitment to excellence in all spheres of life.
1. To create experiential learning environment that will enable students to compete globally in
advanced computing domain.
2. To adapt latest technological tools and contribute significantly for the advancement of
knowledge in computer engineering application in industry, society and environment.
3. To inculcate essential characteristic in the students for their all-round professional
development, interaction with industry and society and lifelong learning.
4. To create R & D infrastructure and center of excellence in various advanced computing sub
domains.
POORNIMA COLLEGE OF ENGINEERING, JAIPUR
DEPARTMENT OF COMPUTER ENGINEERING
PEO3: Gradates will have strong professional ethics, social & moral values, entrepreneurial ability and
interaction with society & industry.
PO2: Problem analysis: Identify, formulate, review research literature, and analyze complex
engineering problems reaching substantiated conclusions using first principles of mathematics, natural
sciences, and engineering sciences.
PO3: Design/development of solutions: Design solutions for complex engineering problems and
design system components or processes that meet the specified needs with appropriate consideration
for the public health and safety, and the cultural, societal, and environmental considerations.
PO4: Conduct investigations of complex problems: Use research-based knowledge and research
methods including design of experiments, analysis and interpretation of data, and synthesis of the
information to provide valid conclusions.
PO5: Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern
engineering and IT tools including prediction and modeling to complex engineering activities with an
understanding of the limitations.
PO6: The engineer and society: Apply reasoning informed by the contextual knowledge to assess
societal, health, safety, legal and cultural issues and the consequent responsibilities relevant to the
professional engineering practice.
PO7: Environment and sustainability: Understand the impact of the professional engineering
solutions in societal and environmental contexts, and demonstrate the knowledge of, and need for
sustainable development.
PO8: Ethics: Apply ethical principles and commit to professional ethics and responsibilities and
norms of the engineering practice.
PO9: Individual and team work: Function effectively as an individual, and as a member or leader in
diverse teams, and in multidisciplinary settings.
PO10: Communication: Communicate effectively on complex engineering activities with the
engineering community and with society at large, such as, being able to comprehend and write
effective reports and design documentation, make effective presentations, and give and receive clear
instructions.
PO11: Project management and finance: Demonstrate knowledge and understanding of the
engineering and management principles and apply these to one’s own work, as a member and leader in
a team, to manage projects and in multidisciplinary environments.
PO12: Life-long learning: Recognize the need for, and have the preparation and ability to engage in
independent and life-long learning in the broadest context of technological change.
PSO1: Apply the knowledge of Artificial Intelligence, machine learning, Human Computer Interaction
in any societal, industrial and environmental application
PSO2: Demonstrate skills to design develop and investigate complex real time problems using AI and
its tools by working individual or in groups as a leader or member of the team following professional
ethics and human values.
PSO3: Adapt, analyse, investigate the problems and provide solutions for interdisciplinary problems
using modern and advanced AI tools and techniques possessing lifelong learning ability.
POORNIMA COLLEGE OF ENGINEERING, JAIPUR
DEPARTMENT OF COMPUTER ENGINEERING
MAPPING OF KEY PHRASES OF THE INSTITUTES MISSION STATEMENT WITH THE KEY
PHRASES OF INSTITUTES VISION STATEMENT
Key Phrases of the Mission Key Phrases of the Vision Statement of the Institute
Statement of the Institute To create knowledge based Team To face the global
society with scientific temper spirit competitive challenges
Skill based systems for effective 3 3
delivery of knowledge
To equip young professionals 1 3
with dedication
Excellence in all spheres of life 2 2
Key Phrases of the Vision Statement of Key Phrases of the Mission Statement of the Institute
Centre of Excellence 3 2 1
Wider recognition 2 2 1
Rapid innovation. 2 1
POORNIMA COLLEGE OF ENGINEERING, JAIPUR
DEPARTMENT OF COMPUTER ENGINEERING
MAPPING OF KEY PHRASES OF THE DEPARTMENTS MISSION STATEMENT WITH THE KEY
PHRASES OF DEPARTMENTS VISION STATEMENT (Department Mission Vs Department Vision)
Learning-centered environment 3 2
Social Responsibility 1 2 1
Skillful engineers 3 2
(PEO Vs PO)
Cond
Desig uct Mo The Envir Indi Project
Pro n/ investi engi vidu
Engine der onmen Com manage Life-
Key Phrases of PEO ble devel gation nee Et al
ering n t and muni ment long
m opme s of r hic and
Statement knowle tool sustai catio and learn
anal nt of compl and s: team
dge: usa nabilit n: finance ing:
ysis: soluti ex soci wor
ge: y: :
ons: proble ety: k:
ms:
Skillful engineers 3 3 3 3 2 1 1 2 2 1 2
Innovative, Creative, 3 2 2 1 1 1
and Sophisticated
Technologies
Pioneering Ideas 2 1 1 2 2 1 1 2 1 2
POORNIMA COLLEGE OF ENGINEERING, JAIPUR
DEPARTMENT OF COMPUTER ENGINEERING
Skillful engineers 3 2 2
Unit A B C Preparedness
No. (Hard Topics) (Topics with average hardness level) (Easy to understand topics) for ‘A’ topics
Features of logic algebra, Fixed point representation, Fundamental concepts:
postulates of Boolean algebra. complement notation, various Number systems and
I Theorems of Boolean algebra codes & arithmetic in different codes codes, Basic logic Gates PPT
& their inter conversion., and Boolean algebra:
Sign & magnitude
representation
Minimization of Boolean Minimization Techniques Quine-McCluskey method
expressions –– Minterm – and Logic Gates: Principle of Duality of
Maxterm - Sum of Products - Boolean expression Minimization. PPT
II (SOP) – Product of Sums
(POS) – Karnaugh map
Minimization – Don’t care
conditions
Open collector TTL. Three Digital Logic Gate Characteristics: Realization of logic gates
III state output logic. TTL TTL logic gate characteristics. Theory in RTL, DTL, ECL, C- Video
subfamilies. MOS& CMOS & operation of TTL NAND gate MOS & MOSFET Lecture,
logic families. circuitry. PPT
BCD to 7-segment BCD adder, encoder, decoder, Combinational logic Video
IV decoder, multiplexer, circuit design, adder, Lecture,
demultiplexer. subtractor, PPT
Sequential Circuits: Synchronous counters– Synchronous sequential circuits design
Latches, Flip- flops - SR, Up/Down counters – Programmable methodology. Registers –
V JK, D, T, and Master- Slave counters – State table shift registers. Video
Characteristic table and and state
equation, counters and their transition diagram, Lecture
design
POORNIMA COLLEGE OF ENGINEERING, JAIPUR DEPARTMENT OF COMPUTER ENGINEERING
Campus: Poornima College of Engineering Year/Section: 2nd Date: 05 Aug 2024
Course: B. Tech. Semester/ Section – III-F
Name of Faculty: Dr. Rajesh Kumar Bathija Name of Subject : Digital Electronics Code: 3CS3-04
Zero Lecture
Name of Faculty: Prof. (Dr.) Rajesh Kumar Bathija Branch: Computer Engineering
2). Self-Introduction:
The ability to connect anywhere and anytime has led to the increasing use of Digital Electronics in
homes, in offices, on the roads, and almost everywhere. Data intensive applications such as streaming
media and two-way video-chat have further fueled the need for higher data-rates. Several faculties in our
group have multiple projects related to wireless networking. Our focus is to design reliable, robust,
higher data-rate, spectrally efficient, and secure network services and architectures for tomorrow. Some
of the key research topics studied are as follows: full-duplex Digital Electronics, resource allocation,
mobility, medium access control, vehicular networks, wireless local-area networks, cognitive radios,
cellular networks, sensor and actuator networks, cross-layer design, scaling laws, and wireless security.
Digital Electronics have enabled the connection of billions of people to the Internet so that they
can reap the benefits of today’s digital economy. Similarly, agreed standards for mobile phones
allow people to use their devices everywhere in the world. Nearly every sector of the economy
now relies upon wireless technologies in fundamental ways – from banking and agriculture to
transportation and healthcare. And powerful new technologies that rely on robust Digital
Electronics networks – such as 5G, artificial intelligence and Internet of Things – hold great
promise to improve lives at an unprecedented pace and scale. Indeed, they have potential to
accelerate progress towards achieving each of the 17 United Nations Sustainable Development
Goals (SDGs).
This subject has its own importance, for the personal growth this is must to have the knowledge
of wireless, every core company required knowledgeable Computer engineers. Right now, this is
the only sector which is touching sky-heights. There are many more projects in which students
can be imparted and in spite of that many research projects are going on to make the system.
d). Relation with lab: - In labs we learn to do initialize the basic gate and conversion of gates.
a.) Index Terms/ Key Words: Logic Gates, Number System, Boolean Algebra, Combinational Circuit,
Sequential Circuits
b.) RTU Syllabus with Name of Subject & Code: Digital Electronics (3CS3-04)
Number systems and codes, Basic logic Gates and Boolean algebra: Sign & magnitude representation,
Fixed point representation, complement notation, various codes & arithmetic in different codes & their
inter conversion. Features of logic algebra, postulates of Boolean algebra. Theorems of Boolean algebra.
TTL logic gate characteristics. Theory & operation of TTL NAND gate circuitry. Open collector TTL.
Three state output logic. TTL subfamilies.MOS& CMOS logic families. Realization of logic gates in
RTL, DTL, ECL, C-MOS & MOSFET.
Combinational logic circuit design, adder, Subtractor, BCD adder, encoder, decoder, BCD to 7-segment
decoder, multiplexer, demultiplexer
Latches, Flip-flops - SR, JK, D, T, and Master-Slave Characteristic table and equation, counters and their
design, Synchronous counters – Synchronous Up/Down counters – Programmable counters – State table
and state transition diagram ,sequential circuits design methodology. Registers –shift registers.
ABC analysis (RGB method) of unit & topics :-
Unit A B C Preparedness
No. (Hard Topics) (Topics with average hardness (Easy to understand for ‘A’ topics
level) topics)
Features of logic algebra, Fixed point representation, Fundamental concepts:
postulates of Boolean algebra. complement notation, various Number
Theorems of Boolean algebra codes & arithmetic in different systems and codes, PPT
I codes & their inter conversion, Basic logic Gates and
Boolean algebra:
Sign &
magnitude
representation
Minimization of Boolean Minimization Techniques Quine - McCluskey
expressions –– Minterm – and Logic Gates: Principle of method of
Maxterm - Sum of Products Duality Minimization. PPT
II (SOP) – Product of Sums - Boolean expression
(POS) – Karnaugh map
Minimization – Don’t care
conditions
Open collector TTL. Three Digital Logic Gate Characteristics: Realization of logic
III state output logic. TTL TTL logic gate gates in RTL, DTL, Video
subfamilies. MOS& CMOS Characteristics. Theory & ECL,C-MOS& Lecture,
logic families. operation of TTL NAND gate MOSFET PPT
circuitry.
BCD to 7-segment BCD adder, encoder, decoder, Combinational logic Video
IV decoder, multiplexer, circuit design, adder, Lecture,
demultiplexer. subtractor, PPT
Sequential Circuits: Latches, Synchronous counters– Sequential circuits
Flip- flops - SR, JK, D, T, and Synchronous Up/Down counters – design methodology. Video
V Master- Slave Characteristic Programmable countersState Registers –shift
table and equation, counters tableand state transition diagram, registers. Lecture
and their design
7.) Books/ Website/Journals & Handbooks/ Association & Institution:
Text Books
TNH
R1 Digital Logic Design M.MORRIS MANO R1
Websites related to subject
1 https://nptel.ac.in/courses/117/106/117106114/ Web
2 https://nptel.ac.in/courses/117/106/117106086/ Videos
b). Journals: -
1)IETE
2)IEEE
c.) Introduction & Conclusion: Each subject, unit and topic shall start with introduction & close with
conclusion.
d.) Time Distribution in lecture class: - Number of chapters is beginning with objective and end of
course/chapter/lecture with summary and quiz (Time allotted: 60 min.)
First 5 min. should be utilized for paying attention towards students who were absent for last
lecture or continuously absent for many days + taking attendance by calling the names of the
students and also sharing any new/relevant information.
Actual lecture delivery should be of 45 minutes
Last 5 min. should be utilized by recapping of the topic. Providing brief introduction of the
coming up lecture and suggesting portion to read.
After completion of any Unit/Chapter a short quiz should be organized
During lecture student should be encouraged to ask the question.
Sr. Name of the exam Max. passing Nature of paper Syllabus Conducted
No. Marks marks Coverage by
1. I Mid Term Exam 60 24 40% Theory + 60% 60% PCE
Numerical
2. II Mid Term Exam 60 24 40% Theory + 60% 40% PCE
Numerical
3. University (End)Term 70 25 40% Theory + 60% 100% RTU
exam Numerical
1 Zero lecture
Study material
Textbook:
T1) S Salivahanan, S Arivazhagan: Digital Circuits and Design: ISBN 978-81-259-2063, Vikas Publishing
House Pvt. Ltd..
Reference books:
R1) M Morris Mano: Digital Design: ISBN 81-7808-837-1, Pearson Education Asia.
POORNIMA COLLEGE OF ENGINEERING, JAIPUR DEPARTMENT OF COMPUTER ENGINEERING
Campus: Poornima College of Engineering Year/Section: IInd Date: 05 Aug 2024
Course: B. Tech. Semester/ Section – III-F
Name of Faculty: Dr. Rajesh Kumar Bathija Name of Subject : Digital Electronics Code: 3CS3-04
COURSE OUTCOME
3CS3-04.1: Able to understand different coding and number system and its applications.
3CS3-04.2: Understand the basic concepts of logic gates and minimize the circuit by using the different
Boolean algebra.
3CS3-04.3: Analyze the various logic families and Interfacing between digital and analog components.
3CS3-04.4: Able to design various combinational circuits & sequential circuits.
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO2 PSO3
CO1 2 - - - - - - - - - - - 2 - -
CO2 - 2 - - - - - - - - - - 2 - -
CO3 - - 2 - - - - - - - - - 2 - -
CO4 - - 2 - - - - - - - - - - 2 -
CO1 PO1 2 Able to understand different coding and number system and its applications.
Understand the basic concepts of logic gates and minimize the circuit by using the
CO2 PO2 2 different Boolean algebra.
3CS3-04
CO3 PO3 2 Analyze the various logic families and Interfacing between digital and analog
components.
CO4 PO3 2 Able to design various combinational circuits & sequential circuits.
CO3 PSO1 2 Analyze the various logic families and Interfacing between digital and analog To Design comb
components.
energy dissipatio
CO4 PSO2 2 Able to design various combinational circuits & sequential circuits. To Evaluate the
POORNIMA COLLEGE OF ENGINEERING, JAIPUR
II B.TECH. (III Sem.) Roll No. __________________
FIRST MID TERM EXAMINATION 2024-25 Code: 3CS3-04 Category: PCC Subject Name–
Digital Electronics (BRANCH – COMPUTER ENGINEERING)
Max. Time: 2 hrs. Course Credit: 3 Max. Marks: 60
Instructions to the candidate:
Figures to the right indicate full marks.
Usage of non-programmable calculator is permitted.
Draw neat sketches and diagram wherever is necessary.
Course Outcomes (CO):
At the end of the course the student should be able to:
CO-1: Able to understand different coding and number system and its applications.
CO2: Understand the basic concepts of logic gates and minimize the circuit by
using the different Boolean algebra.
CO3: Analyze the various logic families and Interfacing between digital and analog
components.
CO4: Able to design various combinational circuits & sequential circuits.
Page 1 of 3
Q. 7 Explain 3 input TTL Nand gate circuit. 5 3 1 1 1.1.1
d(0,3,7,14)
RKS
MA
L1
20
L2 11
50% 8% L3 10
8% L4 0
L5
L6 0
15%
CO1 CO2 CO3 CO4
28%
COs
Page 3 of 3
Number Systems
Overview
▶ Introduction
Number System
Code using symbols that refer to a number of items
Binary System
Uses two symbols (base 2 system)
Number 1 1 0 0
Binary 1 1 0 0 1 1
Decimal 32+16+0+0+2+1=51
TEST
Convert the following binary
numbers into decimal numbers:
Binary 1001 =
Binary 1111 =
Binary 0010 =
TEST
Convert the following binary
numbers into decimal numbers:
Binary 1001 = 9
Binary 1111 = 15
Binary 0010 = 2
DECIMAL TO BINARY CONVERSION
Divide by 2 Process
Decimal # 13 ÷ 2 = 6 remainder 1
6 ÷ 2 = 3 remainder 0
3 ÷ 2 = 1 remainder 1
1 ÷ 2 = 0 remainder 1
1 1 0 1
TEST
Decimal 17 =
TEST
Decimal 4 = 0100
Decimal 17 = 10001
HEXADECIMAL NUMBER SYSTEM
Hexadecimal E
A
DECIMAL TO HEXADECIMAL CONVERSION
Divide by 16 Process
Decimal # 47 ÷ 16 = 2 remainder 15
2 ÷ 16 = 0 remainder 2
2 F
HEXADECIMAL TO DECIMAL CONVERSION
63= 3F
(Hexadecimal)
OCTAL NUMBERS
Divide by 8 Process
16 ÷ 8 = 2 remainder 0
2 ÷ 8 = 0 remainder 2
20 1
OCTAL TO DECIMAL CONVERSION
(64 x 2) (8 x 0) (1 x 1)
Decimal 128+ 0 + 1=
129
Convert 0.101112 to base 8: 0.101_110 = 0.568
Convert 0.1110101 to base 16: 0.1110_1010 = 0.EA16
Arithmetic Operations
Overview
▶ Arithmetic Operations
▶
Decimal Arithmetic
▶
Binary Arithmetic
▶
Signed Binary Numbers
Arithmetic Operations
Addition
▶ Follow same rules as in decimal addition, Carry 1 1 1 1 1 0
with the difference that when sum is 2
indicates a carry (not a 10) Augend 0 0 1 0 0 1
▶ Learn new carry rules
Addend 0 1 1 1 1 1
▶ 0+0 = sum 0 carry 0 Result 1 0 1 0 0 0
▶ 0+1 = 1+0 = sum 1carry 0
▶ 1+1 = sum 0 carry1 111 Carry Values
0101
▶ 1+1+1 = sum 1carry1 + 1011
10000
Subtraction
▶ Learn new borrow rules
Borrow 1 10 0
▶ 0-0 = 1-1 = 0 borrow 0
▶ 1-0 = 1 borrow 0 Minuend 1 10 1 1
▶ 0-1 = 1 borrow 1 Subtrahend 0 11 0 1
Result 0 11 1 0
The rules of the decimal base applies to binary 12
as well. To be able to calculate 0-1, we have 0202
to “borrow one” from the next left digit. 10 1 0
- 0111
0011
Decimal Subtraction
7468 If no Carry,
Example: 3250 – 72532 result is negative.
Magnitude is 10’s
10’s complement of 72532 is complement of
the result
03250
+ 27468
30718
= –69282
Binary Subtraction
-9 +9
1 1001 0 1001
Signed magnitude representation
Signed 1’s complement representation 1 0110 0 1001
-0 +0
1 0000 0 0000
Signed magnitude representation
Signed 1’s complement representation 1 1111 0 0000
▶
Signed magnitude binary number: – ( ) to + ( )
▶
Signed 1’s complement binary number: – ( ) to +( )
▶
Signed 2’s complement binary number: – ( ) to +( )
Signed Binary Number Arithmetic
▶ Add or Subtract two signed binary number including its sign bit either signed
1’s complement method or signed 2’s complement method
▶ The 1’s complement and 2’s complement rules of general binary number is
applicable to this
• It is important to decide how many bits we will use to represent the number
• Example: Representing +5 and -5 on 8 bits:
– +5: 00000101
– -5: 10000101
• So the very first step we have to decide on the number of bits to represent number
Digital Codes
Overview
▶ Introduction
▶
Binary Coded Decimal Code
▶
EBCDIC Code
▶
▶ Excess-3 Code
▶ Gray Code
ASCII Code
Introduction
▶ Calculations or computations are not useful until their results can be displayed in a
manner that is meaningful to people.
▶ We also need to store the results of calculations, and provide a means for data input.
▶ Thus, human-understandable characters must be converted to computer-
understandable bit patterns using some sort of character encoding scheme.
▶ As computers have evolved, character codes have evolved.
▶
Larger computer memories and storage devices permit richer character codes.
▶
The earliest computer coding systems used six bits.
▶ Binary-coded decimal (BCD) was one of these early codes. It was used by IBM
mainframes in the 1950s and 1960s.
▶ In 1964, BCD was extended to an 8-bit code, Extended Binary-Coded Decimal
Interchange Code (EBCDIC).
▶ EBCDIC was one of the first widely-used computer codes that supported upper and
lowercase alphabetic characters, in addition to special characters, such as punctuation
and control characters.
▶ EBCDIC and BCD are still in use by IBM mainframes today.
▶ Other computer manufacturers chose the 7-bit ASCII (American Standard Code
for Information Interchange) as a replacement for 6-bit BCD codes.
▶ While BCD and EBCDIC were based upon punched card codes, ASCII was based
upon telecommunications (Telex) codes.
▶ Until recently, ASCII was the dominant character code outside the IBM mainframe world.
Binary Coded Decimal (BCD)
▶ Consider 5 + 5
▶ 50101 ▶ Had 1010 and want to add 6 or 0110
▶ +50101 ▶ so 1010
▶ giving 1 0 1 0 which is binary 10 but
not a BCD digit! ▶ plus 6 0 1 1 0
▶ What to do? ▶ Giving 1 0 0 0 0
▶ 0110
▶ And answer is 0110 0001 0010 or the BCD for the base 10 number
612
EBCDIC Code
▶ Gray code is another important code that is also used to convert the decimal number
into 8-bit binary sequence. However, this conversion is carried in a manner that the
contiguous digits of the decimal number differ from each other by one bit only
▶ In pure binary coding or 8421 BCD then counting from 7 (0111) to 8 (1000)
requires 4 bits to be changed simultaneously
▶ Gray coding avoids this since only one bit changes between subsequent numbers
Binary to Gray
Example:
b5 b 4 b 3 b2 b 1 g5 = b 5
Binary: 1 0 1 1
g4 = b 5 b 4
g3 = b 4 b 3
+ + + g2 = b 3 b 2
g1 = b 2 b 1
1 1 g0 = b 1 b 0
Gray: g5
Gray to Binary
b5 = g 5
b4 = g 5 g4
b3 = g 5 g4 g3
b2 = g 5 g4 g3 g2
b1 = g 5 g4 g3 g2 g1
b0 = g 5 g4 g3 g2 g1 g 0
Reflection of Gray Codes
00 0 00 0 000
01 0 01 0 001
11 0 11 0 011
10 0 10 0 010
1 10 0 110
1 11 0 111
1 01 0 101
1 00 0 100
1 100
1 101
So, called reflected code 1 111
1 110
1 010
1 011
1 001
1 000
Alphanumeric Codes
▶ Formally, work to create this code began in 1960. 1st standard in 1963. Last updated in 1986
▶ Represents the numbers
▶ All start 011 xxxx and the xxxx is the BCD for the digit
▶ Represent the characters of the alphabet
▶ Start with either 100, 101, 110, or 111
▶ A few special characters are in this area
▶ Start with 010 – space and !”#$%&’()*+.-,/
▶ Start with 000 or 001 – control char like ESC
ASCII Properties
Logic Gates
Overview
▶ Introduction
▶
Logical Operators
▶
▶
Basic Gates
▶ Universal Gates
▶ Realization of Basic Gates using Universal Gates
Other Logic Gates
Introduction
Operators operate on binary values and binary variables
Operations are defined on the values "0" and "1" for each operator:
AND OR NO
T
0·0=0 0+0=0 0
1
0·1=0 0+1=1 1
0
1·0=0 1+0=1
1·1=1 1+1=1
Truth Tables
▶ Truth table - a tabular listing of the values of a function for all possible combinations of
values on its arguments
▶ Example: Truth tables for the basic logic operations:
AND OR NOT
X Y X Y Z=X+Y X Z= X̅
Z=X·Y 0 0 0 0 1
0 00 0 1 1 1 0
0 10 1 0 1
1 00 1 1 1
1 11
Logic Function Implementation
A NOT gate accepts one input signal (0 or 1) and returns the opposite signal as output
AND Gate
NAND gates are sometimes called universal gates because they can be used to
produce the other basic Boolean functions.
A
A AB
A
B
AND gate
Inverter
A O e
A R
A+B g
B a
B t
A
+
B
NOR gate
Realization
NOR gates are also universal gates and can form all of the basic gates.
A
A A+B
A
B
OR gate
Inverter
A
A AB AB
B
B
AND gate NAND gate
XOR Gate
XNOR X Y Z
X Z
Y 0 0 1
0 1 0
1 0 0
1 1 1
Constructing Gates
Transistor
A device that acts either as a wire that conducts electricity or as a resistor that blocks
the flow of electricity, depending on the voltage level of an input signal
A transistor has no moving parts, yet acts like a switch
It is made of a semiconductor material, which is neither a particularly good conductor
of electricity nor a particularly good insulator
A transistor has three
terminals A source
A base
An emitter, typically connected to a ground wire
If the electrical signal is grounded, it is allowed to flow through
an alternative route to the ground (literally) where it can do
no harm
AND Gate OR Gate
Timing Diagram
t t1 t 2 t 3 t 4 t 5 t 6
0
Input A 1
0
signals B 1 Transitions
0
F=A•B 0
Gate 1
1
Basic
Assumption:
Output G=A+B 0
Zero time for
Signals H=A’ 1
signals to
0
propagate
Through gates
Gate Delay
▶ In actual physical gates, if one or more input changes causes the output to change,
the output change does not occur instantaneously.
▶ The delay between an input change(s) and the resulting output change is the gate delay
denoted by tG:
Input
1
0 tG tG tG = 0.3
1 ns
Output
0
0 0.5 1 1.5 Time (ns)
Boolean Algebra
Overview
▶ Introduction
▶ Boolean Algebra
▶ Properties
▶ Algebraic Manipulation
▶ De-Morgan Theorem
▶ Complementation
▶ Truth Table
Introduction
▶ Understand the relationship between Boolean logic and digital computer circuits.
▶
Learn how to design simple logic circuits.
▶
Understand how digital circuits work together to form complex computer systems.
▶ In the latter part of the nineteenth century, George Boole suggested that
logical thought could be represented through mathematical equations.
▶ Computers, as we know them today, are implementations of Boole’s Laws of
Thought.
▶ In this chapter, you will learn the simplicity that constitutes the essence of the
machine (Boolean Algebra).
Boolean algebra
Truth Logic
Table Circuit
▶ Digital computers contain circuits that implement Boolean functions.
▶ The simpler that we can make a Boolean function, the smaller the
circuit that will result.
▶ Simpler circuits are cheaper to build, consume less power, and run
faster than complex circuits.
▶ With this in mind, we always want to reduce our Boolean functions to
their simplest form.
▶ There are a number of Boolean identities that help us to do this.
Properties of Boolean Algebra
function: as follows:
With respect to duality, Identities 1 – 8 have the following
relationship:
▶ G = F’ = (xy’z’ + x’yz)’
▶ Introduction
▶
SOP and POS
▶
▶
Minterms and Maxterms
▶ Canonical Forms
▶ Conversion Between Canonical Forms
Standard Forms
Introduction
▶ Canonical Sum-Of-Products:
The minterms included are those mj such that F( ) = 1 in row j of the truth table for F( ).
▶ Canonical Product-Of-Sums:
The maxterms included are those Mj such that F( ) = 0 in row j of the truth table for F( ).
• f1(a,b,c) = ∑ m(1,2,4,6), where ∑ indicates that this is a sum-of-products form,
and m(1,2,4,6) indicates that the minterms to be included are m1, m2, m4, and m6.
• f1(a,b,c) = ∏ M(0,3,5,7), where ∏ indicates that this is a product-of-sums form, and
M(0,3,5,7) indicates that the maxterms to be included are M0, M3, M5, and M7.
• Since mj = Mj’ for any j,
∑ m(1,2,4,6) = ∏ M(0,3,5,7) = f1(a,b,c)
Conversion Between Canonical Forms
▶ Replace ∑ with ∏ (or vice versa) and replace those j’s that appeared
in the original form with those that do not.
▶ Example:
f1(a,b,c) = a’b’c + a’bc’ + ab’c’ + abc’
= m1 + m 2 + m 4 + m 6
=∑(1,2,4,6)
=∏(0,3,5,7)
= (a+b+c)•(a+b’+c’)•(a’+b+c’)•(a’+b’+c’)
F XYZ XYZ XYZ XYZ m0 m2 m5 m7 m(0, 2, 5, 7) F XYZ XYZ XYZ
XYZ m1 m3 m4 m6 m(1, 3, 4, 6)
F m1 m3 m4 m6
→
F m1 m3 m4 m6 m1 m3 m4 m6
M (1, 3, 4, 6)
Standard Forms
▶ Introduction
▶ Karnaugh Map (K-Map)
▶ Simplification Rules
▶ K-Map Simplification for Two Variables
▶ K-Map Simplification for Three Variables
▶ K-Map Simplification for Four Variables
▶ Don’t Care Conditions
▶ Redundancy
▶ Design of Combinational Circuits
Introduction
Truth Boolean
Table Function
Truth
Table Simplifie
Karnaugh d
Boolean
Boolean Map Function
function
Karnaugh Map (K-Map)
2-variable Karnaugh maps are trivial but can be used to introduce the
methods you need to learn. The map for a 2-input OR gate looks like this:
A
A 0 1
B
B 0 1 A
A B Y 1 1 1
0 0 0
0 1 1 B
1 0 1
1 1 1 A+B
K-Map Simplification for Three Variables
▶ Its K-map is shown below. There are (only) two groupings of 1s.
▶ Can you find them?
▶ In this K-map, we see an example of a group that wraps around
the sides of a K-map.
f (0,4) BC f (4,5) A B f (0,1,4,5) B f (0,1,2,3) A
BC BC BC BC
A 00 01 11 10 A 00 01 11 10 A 00 01 11 10 A 00 01 11 10
01000 00000 01100 0 1 1 1 1
1 0 0 0 0
1 1 0 0 0 1 1 1 0 0 1 1 1 0 0
f = ∑ (1,3) = A’C
f (0,4) AC f (4,6) A C f (0,2) AC f (0,2,4,6) C
0 BC 0 BC
BC
11 10
A 00 01 111 10 A 00 1 A 00
0 1 1 0 01
0 0 0 0 0 0 1
1
0
1 01 11 10 BC 01
A 00
0 1 1 1 0 0 1
1 0 1 1 0 0 1
K-Map Simplification for Four Variables
00 1 0 0 0 00 0 0 0 0 00 0 0 0 0 00 0 0 0 0
01 0 0 0 0 01 0 1 0 0 01 0 0 0 0 01 1 0 0 1
11 0 0 0 0 11 0 1 0 0 11 0 1 1 0 11 0 0 0 0
10 1 0 0 0 10 0 0 0 0 10 0 0 0 0 10 0 0 0 0
CD CD CD CD
AB 00 01 11 10 AB 00 01 11 10 AB 00 01 11 10 AB 00 01 11 10
0 0 0 0
00 0 0 1 1 00 1 0 0 1
10 10
01 0 0 1 1 01 1 0 0 1
11 0 0 0 0 11 0 0 0 0
0 0 0 0
11 11
00 00 0 0 1 1 1 0 0 1
10 10
01 01 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
f(2,3,6,7) A C f(4,6,12,14)B D f (2,3,10,11)B C f (0,2,8,10) B D
0 0 1 1 1 0 0 1
CD CD CD CD
AB 00 01 11 10 AB 00 01 11 10 AB 00 01 11 10 AB 00 01 11 10
00 0 0 0 0 00 0 0 1 0 00 1 0 1 0 00 0 1 0 1
01 1 1 1 1 01 0 0 1 0 01 0 1 0 1 01 1 0 1 0
11 0 0 0 0 11 0 0 1 0 11 1 0 1 0 11 0 1 0 1
10 0 0 0 0 10 0 0 1 0 10 0 1 0 1 10 1 0 1 0
fABCD fABCD
CD CD
CD CD
AB 00 01 11 10 AB 00 01 11 10 AB 00 01 11 10 AB 00 01 11 10
00 0 1 1 0 1 0 0 1 00
1 f(1, 3,5, 7, 01 f(0,2,4,6,8,10,12,14)
01 0 1 1 0 0 0 1
9,11,13,15)
11 0 1 1 0 1 0 0 1 11
10 0 1 1 0 1 0 0 1 10
00 00 0 0 0 0 1 1 1 1
01 01 1 1 1 1
0 0 0 0
11 11 1 1 1 1
0 0 0 0
10 10 0 0 0 0
1 1 1 1
f(4,5,6,7,12,13,14,15) f(0,1,2,3,8,9,10,11)
fD fD
f B f B
Don’t Care Conditions
▶ Real circuits don’t always need to have an output defined for every
possible input.
▶ For example, some calculator displays consist of 7-segment LEDs. These
7
LEDs can display 2 patterns but all patterns are not used.
▶ If a circuit is designed so that a particular set of inputs can never happen,
we call this set of inputs a don’t care condition.
▶ They are very helpful to us in K-map circuit simplification.
▶ In a K-map, a don’t care condition is identified by an X in the cell of
the minterm(s) for the don’t care inputs, as shown below.
▶ In performing the simplification, we are free to include or ignore the
X’s when creating our groups.
▶ In one grouping in the K-map below, we have the function:
▶
F=W’X’+YZ
▶ A different grouping gives us the function:
▶ The truth table of:
F (W, X, Y, Z) = W’X’ + YZ
differs from the truth table of:
▶ However, the values for which they differ, are the inputs for which we
have don’t care conditions.
Redundancy
Design of combinational digital circuits
▶ Example: Design a 3-input (A,B,C) digital circuit that will give at its
output (X) a logic 1 only if the binary number formed at the input
has more ones than zeros.
Inputs Output
A B C X X(3, 5, 6, 7)
0 0 0 0 0 BC X
1 0 0 1 0
11 10
2 0 1 0 0 A 00 01
3 0 1 1 1 0 0 0 1 0
4 1 0 0 0 1 0 1 1 1
5 1 0 1 1
6 1 1 0 1
7 1 1 1 1
X AC AB BC
A B C
▶ Example: Design a 4-input (A,B,C,D) digital circuit that will give at its output (X) a
logic 1 only if the binary number formed at the input is between 2 and 9 (including).
Inputs Output
A B C D X X
0 0 0 0 0 0 (2,3,4,5,6,7,8,9)
1 0 0 0 1 0
X
2 0 0 1 0 1
3 0 0 1 1 1
CD 01 11 10
4 0 1 0 0 1
AB 00
5 0 1 0 1 1 Same
00 0 0 1 1
6 0 1 1 0 1
1 1 1 1
7 0 1 1 1 1
01
8 1 0 0 0 1 0 0 0 0
9 1 0 0 1 1 11
1 1 0 0
10 1 0 1 0 0 10
11 1 0 1 1 0
12 1 1 0 0 0
13 1 1 0 1 0
14 1 1 1 0 0
15 1 1 1 1 0 X AC AB ABC
X
A B C D
Conclusion