This document discusses number systems and Boolean algebra concepts relevant to switching theory and logic design. It covers topics like number systems, binary codes, Boolean algebra theorems and properties, switching functions, logic gate simplification, and multilevel logic implementations. Various number representations are examined, including binary, octal, hexadecimal, and binary coded decimal. Conversion between number bases is demonstrated. Boolean concepts like complements, addition, and subtraction using 1's and 2's complement are also summarized.
The document discusses digital systems and binary numbers. It defines digital systems as systems that manipulate discrete elements of information, such as binary digits represented by the values 0 and 1. It explains how binary numbers are represented and arithmetic operations like addition, subtraction, multiplication and division are performed on binary numbers. It also discusses number base conversions between decimal, binary, octal and hexadecimal numbering systems. Finally, it covers binary complements including 1's complement, 2's complement and subtraction using complements.
The document discusses digital and analog systems. It explains that digital systems represent information as discrete values using bits, whereas analog systems represent information as continuous values. It provides examples of digital and analog signals and discusses how a continuous analog signal can be converted to a discrete digital signal through sampling and quantization. It also covers binary, octal, and hexadecimal number systems and how to convert between them. Finally, it discusses binary addition and subtraction using complement representations.
Digital systems represent information using discrete binary values of 0 and 1 rather than continuous analog values. Binary numbers use a base-2 numbering system with place values that are powers of 2. There are various number systems like decimal, binary, octal and hexadecimal that use different number bases and represent the same number in different ways. Complements are used in binary arithmetic to perform subtraction by adding the 1's or 2's complement of a number. The 1's complement is obtained by inverting all bits, while the 2's complement is obtained by inverting all bits and adding 1.
Digital and Logic Design Chapter 1 binary_systemsImran Waris
油
This document discusses binary number systems and digital computing. It covers binary numbers, number base conversions between decimal, binary, octal and hexadecimal. It also discusses binary coding techniques like binary-coded decimal, signed magnitude representation, one's complement and two's complement representations for negative numbers.
This document provides an overview of digital systems and binary numbers. It discusses topics such as analog vs digital signals, different number systems including binary, octal, decimal and hexadecimal, binary operations like addition and multiplication, and number base conversions. It also covers binary complements including 1's complement and 2's complement, which are important for signed binary numbers and binary subtraction.
This document discusses number representation systems used in computers, including binary, decimal, octal, and hexadecimal. It provides examples of converting between these different bases. Specifically, it covers:
1) Converting between decimal, binary, octal, and hexadecimal using positional notation.
2) Signed integer representation in binary, including sign-magnitude, one's complement, and two's complement. Examples are given of converting positive and negative decimals to these binary representations.
3) Storing integer, character, and floating point numbers in binary. Twos complement is described as the most common method for signed integer representation.
This document discusses number representation systems used in computers, including binary, decimal, octal, and hexadecimal. It provides examples of converting between these different bases. Specifically, it covers:
1) Converting between decimal, binary, octal, and hexadecimal using positional notation and place values.
2) Representing signed integers in binary using ones' complement and twos' complement notation.
3) Tables for converting binary numbers to octal and hexadecimal using place values of each base.
4) Examples of converting values between the different number bases both manually and using the provided conversion tables.
The document introduces computer architecture and system software. It discusses the differences between computer organization and computer architecture. It describes the basic components of a computer based on the Von Neumann architecture, which consists of four main sub-systems: memory, ALU, control unit, and I/O. The document also discusses bottlenecks of the Von Neumann architecture and differences between microprocessors and microcontrollers. It covers computer arithmetic concepts like integer representation, floating point representation using IEEE 754 standard, and number bases conversion. Additional topics include binary operations like addition, subtraction using complements, and multiplication algorithms like Booth's multiplication.
This document provides an overview of Boolean algebra and logic gates. It discusses topics such as number systems, binary codes, Boolean algebra, logic gates, theorems of Boolean algebra, Boolean functions, simplification using Karnaugh maps, and NAND and NOR implementations. The document also describes binary arithmetic operations including addition, subtraction, multiplication, and division. It defines binary codes and discusses weighted and non-weighted binary codes.
This document provides an overview of Boolean algebra and logic gates. It discusses topics such as number systems, binary codes, Boolean algebra, logic gates, theorems of Boolean algebra, Boolean functions, simplification using Karnaugh maps, and NAND and NOR implementations. The document also describes binary arithmetic operations including addition, subtraction, multiplication, and division. It defines binary codes and discusses weighted and non-weighted binary codes.
This document provides lecture notes on digital system design. It covers topics like logic simplification, combinational logic design, understanding binary and other number systems, binary operations, and Boolean algebra. The first section discusses decimal, binary, octal and hexadecimal number systems. Later sections explain binary addition, subtraction, multiplication and conversions between number bases. Signed number representations like 1's complement and 2's complement are also introduced. Finally, the document discusses Boolean algebra, logic functions, truth tables, and basic logic gates like AND and INVERTER.
This document contains slides for a lecture on digital logic design. It introduces the topic and provides an outline of contents to be covered, including number systems, function minimization methods, combinational and sequential systems, and hardware design languages. It also lists the speaker's contact details and information about textbook references, grading policies, and acknowledgments. The first chapter focuses on number systems, covering binary, decimal, octal, and hexadecimal representation, addition, subtraction, signed numbers, binary-coded decimal, and other coding systems. Examples of converting between different bases are provided.
The document discusses binary numbers and arithmetic. It covers topics like addition, subtraction, multiplication in binary, and different methods for representing signed integers like two's complement. It explains how two's complement works by using bitwise operations to represent negative numbers. For example, it shows that adding two positive 8-bit binary numbers in two's complement is simply the bitwise addition, while subtraction can be performed by adding the number and the two's complement of the subtrahend. The document also discusses issues like carry vs overflow that can occur during binary arithmetic operations.
The document discusses different number systems including binary, decimal, and hexadecimal. It defines base-N number systems and provides examples of decimal, binary, and hexadecimal numbers. Key concepts covered include positional notation, bits and bytes, addition and subtraction in different bases, signed numbers represented using sign-magnitude and two's complement, and arithmetic operations like addition and subtraction on signed binary numbers. Sign extension is introduced as an important concept for performing arithmetic on numbers of different bit-widths in a signed system.
The document discusses different number systems including binary, decimal, and hexadecimal. It defines base-N number systems and provides examples of decimal, binary, and hexadecimal numbers. Key concepts covered include positional notation, bits and bytes, addition and subtraction in different bases, signed numbers represented using sign-magnitude and two's complement, and arithmetic operations like addition and subtraction on signed binary numbers. Sign extension is introduced as an important concept for performing arithmetic on numbers of different bit-widths in a signed system.
Reviewing number systems involves understanding various ways in which numbers can be represented and manipulated. Here's a brief overview of different number systems:
Decimal System (Base-10):
This is the most common number system used by humans.
It uses 10 digits (0-9) to represent numbers.
Each digit's position represents a power of 10.
For example, the number 245 in decimal represents (2 * 10^2) + (4 * 10^1) + (5 * 10^0).
Binary System (Base-2):
Used internally by almost all modern computers.
It uses only two digits: 0 and 1.
Each digit's position represents a power of 2.
For example, the binary number 1011 represents (1 * 2^3) + (0 * 2^2) + (1 * 2^1) + (1 * 2^0) in decimal, which equals 11.
Octal System (Base-8):
Less commonly used, but still relevant in some computer programming contexts.
It uses eight digits: 0 to 7.
Each digit's position represents a power of 8.
For example, the octal number 34 represents (3 * 8^1) + (4 * 8^0) in decimal, which equals 28.
Hexadecimal System (Base-16):
Widely used in computer science and programming.
It uses sixteen digits: 0 to 9 followed by A to F (representing 10 to 15).
Each digit's position represents a power of 16.
Often used to represent memory addresses and binary data more compactly.
For example, the hexadecimal number 2F represents (2 * 16^1) + (15 * 16^0) in decimal, which equals 47.
Each number system has its own advantages and applications. Decimal is intuitive for human comprehension, binary is fundamental in computing due to its simplicity for electronic systems, octal and hexadecimal are often used for human-readable representations of binary data in programming, particularly when dealing with memory addresses and byte-oriented data.
Understanding these number systems is essential for various fields such as computer science, electrical engineering, and mathematics, as they provide different perspectives on how numbers can be represented and manipulated.
The document discusses different number systems including binary, decimal, and hexadecimal. It defines base-N number systems and provides examples of decimal, binary, and hexadecimal numbers. Key concepts covered include positional notation, bits and bytes, addition and subtraction in different bases, signed numbers represented using sign-magnitude and two's complement, and arithmetic operations like addition and subtraction on signed binary numbers. Sign extension is introduced as an important concept for performing arithmetic on numbers of different bit-widths in a signed system.
The document discusses different number systems including binary, decimal, and hexadecimal. It defines base-N number systems and provides examples of decimal, binary, and hexadecimal numbers. Key concepts covered include positional notation, bits and bytes, addition and subtraction in different bases, signed numbers represented using sign-magnitude and two's complement, and arithmetic operations like addition and subtraction on signed binary numbers. Sign extension is introduced as an important concept for performing arithmetic on numbers of different bit-widths in a signed system.
The document discusses different number systems including binary, decimal, and hexadecimal. It defines base-N number systems and provides examples of decimal, binary, and hexadecimal numbers. Key concepts covered include positional notation, bits and bytes, addition and subtraction in different bases, signed numbers represented using sign-magnitude and two's complement, and arithmetic operations like addition and subtraction on signed binary numbers. Sign extension is introduced as an important concept for performing arithmetic on numbers of different bit-widths in a signed system.
Air pollution is contamination of the indoor or outdoor environment by any ch...dhanashree78
油
Air pollution is contamination of the indoor or outdoor environment by any chemical, physical or biological agent that modifies the natural characteristics of the atmosphere.
Household combustion devices, motor vehicles, industrial facilities and forest fires are common sources of air pollution. Pollutants of major public health concern include particulate matter, carbon monoxide, ozone, nitrogen dioxide and sulfur dioxide. Outdoor and indoor air pollution cause respiratory and other diseases and are important sources of morbidity and mortality.
WHO data show that almost all of the global population (99%) breathe air that exceeds WHO guideline limits and contains high levels of pollutants, with low- and middle-income countries suffering from the highest exposures.
Air quality is closely linked to the earths climate and ecosystems globally. Many of the drivers of air pollution (i.e. combustion of fossil fuels) are also sources of greenhouse gas emissions. Policies to reduce air pollution, therefore, offer a win-win strategy for both climate and health, lowering the burden of disease attributable to air pollution, as well as contributing to the near- and long-term mitigation of climate change.
This document discusses number representation systems used in computers, including binary, decimal, octal, and hexadecimal. It provides examples of converting between these different bases. Specifically, it covers:
1) Converting between decimal, binary, octal, and hexadecimal using positional notation.
2) Signed integer representation in binary, including sign-magnitude, one's complement, and two's complement. Examples are given of converting positive and negative decimals to these binary representations.
3) Storing integer, character, and floating point numbers in binary. Twos complement is described as the most common method for signed integer representation.
This document discusses number representation systems used in computers, including binary, decimal, octal, and hexadecimal. It provides examples of converting between these different bases. Specifically, it covers:
1) Converting between decimal, binary, octal, and hexadecimal using positional notation and place values.
2) Representing signed integers in binary using ones' complement and twos' complement notation.
3) Tables for converting binary numbers to octal and hexadecimal using place values of each base.
4) Examples of converting values between the different number bases both manually and using the provided conversion tables.
The document introduces computer architecture and system software. It discusses the differences between computer organization and computer architecture. It describes the basic components of a computer based on the Von Neumann architecture, which consists of four main sub-systems: memory, ALU, control unit, and I/O. The document also discusses bottlenecks of the Von Neumann architecture and differences between microprocessors and microcontrollers. It covers computer arithmetic concepts like integer representation, floating point representation using IEEE 754 standard, and number bases conversion. Additional topics include binary operations like addition, subtraction using complements, and multiplication algorithms like Booth's multiplication.
This document provides an overview of Boolean algebra and logic gates. It discusses topics such as number systems, binary codes, Boolean algebra, logic gates, theorems of Boolean algebra, Boolean functions, simplification using Karnaugh maps, and NAND and NOR implementations. The document also describes binary arithmetic operations including addition, subtraction, multiplication, and division. It defines binary codes and discusses weighted and non-weighted binary codes.
This document provides an overview of Boolean algebra and logic gates. It discusses topics such as number systems, binary codes, Boolean algebra, logic gates, theorems of Boolean algebra, Boolean functions, simplification using Karnaugh maps, and NAND and NOR implementations. The document also describes binary arithmetic operations including addition, subtraction, multiplication, and division. It defines binary codes and discusses weighted and non-weighted binary codes.
This document provides lecture notes on digital system design. It covers topics like logic simplification, combinational logic design, understanding binary and other number systems, binary operations, and Boolean algebra. The first section discusses decimal, binary, octal and hexadecimal number systems. Later sections explain binary addition, subtraction, multiplication and conversions between number bases. Signed number representations like 1's complement and 2's complement are also introduced. Finally, the document discusses Boolean algebra, logic functions, truth tables, and basic logic gates like AND and INVERTER.
This document contains slides for a lecture on digital logic design. It introduces the topic and provides an outline of contents to be covered, including number systems, function minimization methods, combinational and sequential systems, and hardware design languages. It also lists the speaker's contact details and information about textbook references, grading policies, and acknowledgments. The first chapter focuses on number systems, covering binary, decimal, octal, and hexadecimal representation, addition, subtraction, signed numbers, binary-coded decimal, and other coding systems. Examples of converting between different bases are provided.
The document discusses binary numbers and arithmetic. It covers topics like addition, subtraction, multiplication in binary, and different methods for representing signed integers like two's complement. It explains how two's complement works by using bitwise operations to represent negative numbers. For example, it shows that adding two positive 8-bit binary numbers in two's complement is simply the bitwise addition, while subtraction can be performed by adding the number and the two's complement of the subtrahend. The document also discusses issues like carry vs overflow that can occur during binary arithmetic operations.
The document discusses different number systems including binary, decimal, and hexadecimal. It defines base-N number systems and provides examples of decimal, binary, and hexadecimal numbers. Key concepts covered include positional notation, bits and bytes, addition and subtraction in different bases, signed numbers represented using sign-magnitude and two's complement, and arithmetic operations like addition and subtraction on signed binary numbers. Sign extension is introduced as an important concept for performing arithmetic on numbers of different bit-widths in a signed system.
The document discusses different number systems including binary, decimal, and hexadecimal. It defines base-N number systems and provides examples of decimal, binary, and hexadecimal numbers. Key concepts covered include positional notation, bits and bytes, addition and subtraction in different bases, signed numbers represented using sign-magnitude and two's complement, and arithmetic operations like addition and subtraction on signed binary numbers. Sign extension is introduced as an important concept for performing arithmetic on numbers of different bit-widths in a signed system.
Reviewing number systems involves understanding various ways in which numbers can be represented and manipulated. Here's a brief overview of different number systems:
Decimal System (Base-10):
This is the most common number system used by humans.
It uses 10 digits (0-9) to represent numbers.
Each digit's position represents a power of 10.
For example, the number 245 in decimal represents (2 * 10^2) + (4 * 10^1) + (5 * 10^0).
Binary System (Base-2):
Used internally by almost all modern computers.
It uses only two digits: 0 and 1.
Each digit's position represents a power of 2.
For example, the binary number 1011 represents (1 * 2^3) + (0 * 2^2) + (1 * 2^1) + (1 * 2^0) in decimal, which equals 11.
Octal System (Base-8):
Less commonly used, but still relevant in some computer programming contexts.
It uses eight digits: 0 to 7.
Each digit's position represents a power of 8.
For example, the octal number 34 represents (3 * 8^1) + (4 * 8^0) in decimal, which equals 28.
Hexadecimal System (Base-16):
Widely used in computer science and programming.
It uses sixteen digits: 0 to 9 followed by A to F (representing 10 to 15).
Each digit's position represents a power of 16.
Often used to represent memory addresses and binary data more compactly.
For example, the hexadecimal number 2F represents (2 * 16^1) + (15 * 16^0) in decimal, which equals 47.
Each number system has its own advantages and applications. Decimal is intuitive for human comprehension, binary is fundamental in computing due to its simplicity for electronic systems, octal and hexadecimal are often used for human-readable representations of binary data in programming, particularly when dealing with memory addresses and byte-oriented data.
Understanding these number systems is essential for various fields such as computer science, electrical engineering, and mathematics, as they provide different perspectives on how numbers can be represented and manipulated.
The document discusses different number systems including binary, decimal, and hexadecimal. It defines base-N number systems and provides examples of decimal, binary, and hexadecimal numbers. Key concepts covered include positional notation, bits and bytes, addition and subtraction in different bases, signed numbers represented using sign-magnitude and two's complement, and arithmetic operations like addition and subtraction on signed binary numbers. Sign extension is introduced as an important concept for performing arithmetic on numbers of different bit-widths in a signed system.
The document discusses different number systems including binary, decimal, and hexadecimal. It defines base-N number systems and provides examples of decimal, binary, and hexadecimal numbers. Key concepts covered include positional notation, bits and bytes, addition and subtraction in different bases, signed numbers represented using sign-magnitude and two's complement, and arithmetic operations like addition and subtraction on signed binary numbers. Sign extension is introduced as an important concept for performing arithmetic on numbers of different bit-widths in a signed system.
The document discusses different number systems including binary, decimal, and hexadecimal. It defines base-N number systems and provides examples of decimal, binary, and hexadecimal numbers. Key concepts covered include positional notation, bits and bytes, addition and subtraction in different bases, signed numbers represented using sign-magnitude and two's complement, and arithmetic operations like addition and subtraction on signed binary numbers. Sign extension is introduced as an important concept for performing arithmetic on numbers of different bit-widths in a signed system.
Air pollution is contamination of the indoor or outdoor environment by any ch...dhanashree78
油
Air pollution is contamination of the indoor or outdoor environment by any chemical, physical or biological agent that modifies the natural characteristics of the atmosphere.
Household combustion devices, motor vehicles, industrial facilities and forest fires are common sources of air pollution. Pollutants of major public health concern include particulate matter, carbon monoxide, ozone, nitrogen dioxide and sulfur dioxide. Outdoor and indoor air pollution cause respiratory and other diseases and are important sources of morbidity and mortality.
WHO data show that almost all of the global population (99%) breathe air that exceeds WHO guideline limits and contains high levels of pollutants, with low- and middle-income countries suffering from the highest exposures.
Air quality is closely linked to the earths climate and ecosystems globally. Many of the drivers of air pollution (i.e. combustion of fossil fuels) are also sources of greenhouse gas emissions. Policies to reduce air pollution, therefore, offer a win-win strategy for both climate and health, lowering the burden of disease attributable to air pollution, as well as contributing to the near- and long-term mitigation of climate change.
Preface: The ReGenX Generator innovation operates with a US Patented Frequency Dependent Load
Current Delay which delays the creation and storage of created Electromagnetic Field Energy around
the exterior of the generator coil. The result is the created and Time Delayed Electromagnetic Field
Energy performs any magnitude of Positive Electro-Mechanical Work at infinite efficiency on the
generator's Rotating Magnetic Field, increasing its Kinetic Energy and increasing the Kinetic Energy of
an EV or ICE Vehicle to any magnitude without requiring any Externally Supplied Input Energy. In
Electricity Generation applications the ReGenX Generator innovation now allows all electricity to be
generated at infinite efficiency requiring zero Input Energy, zero Input Energy Cost, while producing
zero Greenhouse Gas Emissions, zero Air Pollution and zero Nuclear Waste during the Electricity
Generation Phase. In Electric Motor operation the ReGen-X Quantum Motor now allows any
magnitude of Work to be performed with zero Electric Input Energy.
Demonstration Protocol: The demonstration protocol involves three prototypes;
1. Protytpe #1, demonstrates the ReGenX Generator's Load Current Time Delay when compared
to the instantaneous Load Current Sine Wave for a Conventional Generator Coil.
2. In the Conventional Faraday Generator operation the created Electromagnetic Field Energy
performs Negative Work at infinite efficiency and it reduces the Kinetic Energy of the system.
3. The Magnitude of the Negative Work / System Kinetic Energy Reduction (in Joules) is equal to
the Magnitude of the created Electromagnetic Field Energy (also in Joules).
4. When the Conventional Faraday Generator is placed On-Load, Negative Work is performed and
the speed of the system decreases according to Lenz's Law of Induction.
5. In order to maintain the System Speed and the Electric Power magnitude to the Loads,
additional Input Power must be supplied to the Prime Mover and additional Mechanical Input
Power must be supplied to the Generator's Drive Shaft.
6. For example, if 100 Watts of Electric Power is delivered to the Load by the Faraday Generator,
an additional >100 Watts of Mechanical Input Power must be supplied to the Generator's Drive
Shaft by the Prime Mover.
7. If 1 MW of Electric Power is delivered to the Load by the Faraday Generator, an additional >1
MW Watts of Mechanical Input Power must be supplied to the Generator's Drive Shaft by the
Prime Mover.
8. Generally speaking the ratio is 2 Watts of Mechanical Input Power to every 1 Watt of Electric
Output Power generated.
9. The increase in Drive Shaft Mechanical Input Power is provided by the Prime Mover and the
Input Energy Source which powers the Prime Mover.
10. In the Heins ReGenX Generator operation the created and Time Delayed Electromagnetic Field
Energy performs Positive Work at infinite efficiency and it increases the Kinetic Energy of the
system.
How to Build a Maze Solving Robot Using ArduinoCircuitDigest
油
Learn how to make an Arduino-powered robot that can navigate mazes on its own using IR sensors and "Hand on the wall" algorithm.
This step-by-step guide will show you how to build your own maze-solving robot using Arduino UNO, three IR sensors, and basic components that you can easily find in your local electronics shop.
Were excited to share our product profile, showcasing our expertise in Industrial Valves, Instrumentation, and Hydraulic & Pneumatic Solutions.
We also supply API-approved valves from globally trusted brands, ensuring top-notch quality and internationally certified solutions. Lets explore valuable business opportunities together!
We specialize in:
Industrial Valves (Gate, Globe, Ball, Butterfly, Check)
Instrumentation (Pressure Gauges, Transmitters, Flow Meters)
Pneumatic Products (Cylinders, Solenoid Valves, Fittings)
As authorized partners of trusted global brands, we deliver high-quality solutions tailored to meet your industrial needs with seamless support.
2. UNIT I Number System and Boolean
algebra And Switching Functions: Review of
number systems, Complements of Numbers,
Codes- Binary Codes, Binary Coded Decimal
Code and its Properties, Unit Distance Codes,
Error Detecting and Correcting Codes.
Boolean Algebra: Basic Theorems and
Properties, Switching Functions, Canonical
and Standard Form, Algebraic Simplification
of Digital Logic Gates, Properties of XOR
Gates, Universal Gates, Multilevel NAND/NOR
realizations.
GNIT ECE 2
3. 1.1 Review of number systems
1.2 Complements of Numbers
1.3 Codes- Binary Codes
1.4 Binary Coded Decimal Code and its Properties
1.5 Unit Distance Codes
1.6 Error Detecting and Correcting Codes
1.7 Boolean Algebra: Basic Theorems and Properties
1.8 Switching Functions
1.9 Canonical and Standard Form
1.10 Algebraic Simplification of Digital Logic Gates
1.11 Properties of XOR Gates
1.12 Universal Gates
1.13 Multilevel NAND/NOR realizations
GNIT ECE 3
4. Base (also called radix) = 10
10 digits { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }
Digit Position
Integer & fraction
Digit Weight
Weight = (Base) Position
Magnitude
Sum of Digit x Weight
Formal Notation
d2*B
2
+d1*B
1
+d0*B
0
+d-1*B
-1
+d-2*B
-2
GNIT ECE 4
5. Base = 2
2 digits { 0, 1 }, called binary digits or bits
Weights
Weight = (Base)
Position
Magnitude
Sum of Bit x Weight
Formal Notation
Groups of bits 4 bits = Nibble
8 bits = Byte
1 0 -1
2 -2
2 1 1/2
4 1/4
1 0 1 0 1
1 *22
+0 *21
+1 *20
+0 *2-1
+1 *2-
2
=(5.25)10
(101.01)2
1 0 1 1
1 1 0 0 0 1 0 1
GNIT ECE 5
21. There are two types of complements for each base-r system: the radix
complement and diminished radix complement.
Diminished Radix Complement - (r-1)s Complement
Given a number N in base r having n digits, the (r1)s
complement of N is defined as:
(rn 1) N
Example for 6-digit decimal numbers:
9s complement is (rn 1)N = (1061)N = 999999N
9s complement of 546700 is 999999546700 = 453299
Example for 7-digit binary numbers:
1s complement is (rn 1) N = (271)N = 1111111N
1s complement of 1011000 is 11111111011000 = 0100111
Observation:
Subtraction from (rn 1) will never require a borrow
Diminished radix complement can be computed digit-by-digit
For binary: 1 0 = 1 and 1 1 = 0
GNIT ECE 21
22. 1s Complement (Diminished Radix Complement)
All 0s become 1s
All 1s become 0s
Example (10110000)2
(01001111)2
If you add a number and its 1s complement
1 0 1 1 0 0 0 0
+ 0 1 0 0 1 1 1 1
1 1 1 1 1 1 1 1
GNIT ECE 22
23. Radix Complement
Example: Base-10
Example: Base-2
The r's complement of an n-digit number N in base r is defined as
rn N for N 0 and as 0 for N = 0. Comparing with the (r 1) 's
complement, we note that the r's complement is obtained by adding 1 to
the (r 1) 's complement, since rn N = [(rn 1) N] + 1.
The 10's complement of 012398 is 987602
The 10's complement of 246700 is 753300
The 2's complement of 1101100 is 0010100
The 2's complement of 0110111 is 1001001
GNIT ECE 23
24. 2s Complement (Radix Complement)
Take 1s complement then add 1
Toggle all bits to the left of the first 1 from the right
Example:
Number:
1s Comp.:
0 1 0 1 0 0 0 0
1 0 1 1 0 0 0 0
0 1 0 0 1 1 1 1
+ 1
OR
1 0 1 1 0 0 0 0
0
0
0
0
1
0
1
0
GNIT ECE 24
25. Subtraction with Complements
The subtraction of two n-digit unsigned numbers
M N in base r can be done as follows:
GNIT ECE 25
26. Example 1.5
Using 10's complement, subtract 72532 3250.
Example 1.6
Using 10's complement, subtract 3250 72532.
There is no end carry.
Therefore, the answer is (10's complement of 30718) = 69282.
GNIT ECE 26
27. Example 1.7
Given the two binary numbers X = 1010100 and Y
= 1000011, perform the subtraction (a) X Y ;
and (b) Y X, by using 2's complement.
There is no end carry.
Therefore, the answer is
Y X = (2's complement
of 1101111) = 0010001.
GNIT ECE 27
28. Subtraction of unsigned numbers can also be done by means of the (r
1)'s complement. Remember that the (r 1) 's complement is one less
then the r's complement.
Example 1.8
Repeat Example 1.7, but this time using 1's complement.
There is no end carry,
Therefore, the answer is Y
X = (1's complement of
1101110) = 0010001.
GNIT ECE 28
29. Example:
Consider decimal 185 and its corresponding value
in BCD and binary:
BCD addition
GNIT ECE 29
30. Example:
Consider the addition of 184 + 576 = 760 in BCD:
Decimal Arithmetic: (+375) + (-240) = +135
Hint 6: using 10s of BCD
GNIT ECE 30
32. Gray Code
The advantage is that only
bit in the code group changes
in going from one number to
the next.
Error detection.
Representation of analog data.
Low power design.
000 001
010
100
110 111
101
011
1-1 and onto!! GNIT ECE 32
33. American Standard Code for Information Interchange (ASCII)
Character Code
GNIT ECE 33
35. Error-Detecting Code
To detect errors in data communication and
processing, an eighth bit is sometimes added to
the ASCII character to indicate its parity.
A parity bit is an extra bit included with a
message to make the total number of 1's either
even or odd.
Example:
Consider the following two characters and their
even and odd parity:
GNIT ECE 35
36. BCD Code
A number with k decimal digits
will require 4k bits in BCD.
Decimal 396 is represented in
BCD with 12bits as 0011 1001
0110, with each group of 4 bits
representing one decimal digit.
A decimal number in BCD is
the same as its equivalent
binary number only when the
number is between 0 and 9.
The binary combinations 1010
through 1111 are not used and
have no meaning in BCD.
GNIT ECE 36
37. Binary code Gray code
1.5 Unit Distance Codes
The most common example of a unit distance code (Successive values differ by only one bit). See Table 2-10 page
52.
GNIT ECE 37
39. The binary value B = bnb2 b1 b0 can be
converted to Gray code G = gng2 g1 g0.
With gi = bi+1 bi or G = B B/2
Examples:
If B =110 then G = 110 011 = 101
If B = 10110111then
G = 10110111
1011011
= 11101100
GNIT ECE 39
40. From gi = bi bi+1 it follows that bi = gi bi+1
Example: Let G = 01011111. Then using b8 =
0.
b7 = g7 b8 = 0 0 = 0
b6 = g6 b7 = 1 0 = 1
b5 = g5 b6 = 0 1 = 1
b4 = g4 b5 = 1 1 = 0
b3 = g3 b4 = 1 0 = 1
b2 = g2 b3 = 1 1 = 0
b1 = g1 b2 = 1 0 = 1
b0 = g0 b1 = 1 1 = 0
B = 01101010
GNIT ECE 40
41. Hamming codes:
Hamming code not only provides the detection of a
bit error, but also identifies which bit is in error so
that it can be corrected. Thus hamming code is
called error detecting and error correcting code. The
code uses a no. of parity bits located at certain
positions in the code group. Hamming code can be
constructed for single error correction.
Number of parity bits:
No. of parity bits dependent on the number of
information bits. If the no. of information bits is
designed x, the no. of parity bits, P is determined by
the following relationship.
2p > = x+p+1------------------- 1
GNIT ECE 41
42. Example: Encode the binary word 1011 into seven bit even parity
hamming code.
Sol: Step 1: Find the no. of parity bits required. Let P=3, then
Then 2p= 23 = 8 and x+p+1=4+3+1=8
Three parity bits are sufficient
Therefore, Total code bits = 4+3 = 7
Step 2: Construct a bit location table
Bit designation D7 D6 D5 P4 D3 P2
P1
Bit location 7 6 5 4 3 2
1
Binary location 111 110 101 100 011 010
001
Number
Information bits(Dn) 1 0 1 1
Parity bits(Pn) 0 0
1
GNIT ECE 42
43. Step 3: Determine the parity bits
For P1: Bit locations 3, 5, 7 have three 1s
and therefore to have an even parity P1 must
be 1.
For P2: Bit locations 3, 6, 7 have two 1s and
therefore to have an even parity P2 must be
0.
For P4: Bit locations 5, 6, 7 have two 1s and
therefore to have an even parity P4 must be
0.
Step 4: Enter the parity bits into the table to
form a seven bit hamming code = 1010101.
Digital systems
Digital systems
GNIT ECE 43
44. American Standard Code for Information
Interchange (Refer to Table 1.7)
A popular code used to represent information
sent as character-based data.
It uses 7-bits to represent:
94 Graphic printing characters.
34 Non-printing characters.
Some non-printing characters are used for text
format (e.g. BS = Backspace, CR = carriage
return).
Other non-printing characters are used for
record marking and flow control (e.g. STX and
ETX start and end text areas).
GNIT ECE 44
45. ASCII has some interesting properties:
Digits 0 to 9 span Hexadecimal values 3016 to 3916
Upper case A-Z span 4116 to 5A16
Lower case a-z span 6116 to 7A16
Lower to upper case translation (and vice versa)
occurs by flipping bit 6.
GNIT ECE 45
46. 0
1
1
0
X
NOT
X
Z =
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:
1
1
1
0
0
1
0
1
0
0
0
0
Z = X揃Y
Y
X
AND OR
X Y Z = X+Y
0 0 0
0 1 1
1 0 1
1 1 1
GNIT ECE 46
47. 1.
3.
5.
7.
9.
11.
13.
15.
17.
Commutative
Associative
Distributive
DeMorgan s
2.
4.
6.
8.
X . 1 X
=
X . 0 0
=
X . X X
=
0
=
X . X
10.
12.
14.
16.
X + Y Y + X
=
(X + Y) Z
+ X + (Y Z)
+
=
X(Y + Z) XY XZ
+
=
X + Y X . Y
=
XY YX
=
(XY) Z X(Y Z)
=
X + YZ (X + Y) (X + Z)
=
X . Y X + Y
=
X + 0 X
=
+
X 1 1
=
X + X X
=
1
=
X + X
X = X
Invented by George Boole in 1854
An algebraic structure defined by a set B = {0, 1}, together with two binary operators (+ and 揃) and a
unary operator ( )
Idempotence
Complement
Involution
Identity element
GNIT ECE 47
48. Boolean Algebra is defined in general by a set B that can
have more than two values
A two-valued Boolean algebra is also know as Switching
Algebra. The Boolean set B is restricted to 0 and 1.
Switching circuits can be represented by this algebra.
The dual of an algebraic expression is obtained by
interchanging + and 揃 and interchanging 0s and 1s.
The identities appear in dual pairs. When there is only one
identity on a line the identity is self-dual, i. e., the dual
expression = the original expression.
Sometimes, the dot symbol (AND operator) is not
written when the meaning is clear
GNIT ECE 48
49. Example: F = (A + C) 揃 B + 0
dual F = (A 揃 C + B) 揃 1 = A 揃 C + B
Example: G = X 揃 Y + (W + Z)
dual G =
Example: H = A 揃 B + A 揃 C + B 揃 C
dual H =
Unless it happens to be self-dual, the dual of
an expression does not equal the expression
itself
Are any of these functions self-dual?
(A+B)(A+C)(B+C)=(A+BC)(B+C)=AB+AC+BC
(X+Y) 揃 (W 揃 Z) = (X+Y) 揃 (W+Z)
(A+B) 揃 (A+C) 揃 (B+C)
H is self-dual
GNIT ECE 49
50. The order of evaluation is:
1. Parentheses
2. NOT
3. AND
4. OR
Consequence: Parentheses appear
around OR expressions
Example: F = A(B + C)(C + D)
GNIT ECE 50
51. A + A 揃 B = A (Absorption Theorem)
Proof Steps Justification
A + A 揃 B
= A 揃 1 + A 揃 B Identity element: A 揃 1 = A
= A 揃 ( 1 + B) Distributive
= A 揃 1 1 + B = 1
= A Identity element
Our primary reason for doing proofs is to learn:
Careful and efficient use of the identities and theorems
of Boolean algebra, and
How to choose the appropriate identity or theorem to
apply to make forward progress, irrespective of the
application.
GNIT ECE 51
52. AB + AC + BC = AB + AC (Consensus Theorem)
Proof Steps Justification
= AB + AC + BC
= AB + AC + 1 揃 BC Identity element
= AB + AC + (A + A) 揃 BC Complement
= AB + AC + ABC + ABC Distributive
= AB + ABC + AC + ACB Commutative
= AB 揃 1 + ABC + AC 揃 1 + ACB Identity element
= AB (1+C) + AC (1 + B) Distributive
= AB . 1 + AC . 1 1+X = 1
= AB + AC Identity element
GNIT ECE 52
53. Minimization
X Y + X Y = Y
Absorption
X + X = X
Simplification
X + X Y = X + Y
DeMorgans
X + Y = X 揃 Y
Minimization (dual)
(X+Y)(X+Y) = Y
Absorption (dual)
X 揃 (X + Y) = X
Simplification (dual)
X 揃 (X + Y) = X 揃 Y
DeMorgans (dual)
X 揃 Y = X + Y
GNIT ECE 53
54. Generalized DeMorgans Theorem:
X1 + X2 + + Xn = X1 揃 X2 揃 揃 Xn
X1 揃 X2 揃 揃 Xn = X1 + X2 + + Xn
X Y X揃Y X+Y X Y X+Y X 揃 Y X揃Y X+Y
0 0 0 0 1 1 1 1 1 1
0 1 0 1 1 0 0 0 1 1
1 0 0 1 0 1 0 0 1 1
1 1 1 1 0 0 0 0 0 0
X + Y = X 揃 Y X 揃 Y = X + Y
GNIT ECE 54
55. Use DeMorgan's Theorem:
1. Interchange AND and OR operators
2. Complement each constant and
literal
Example: Complement G = (a + bc)d
+ e
G = (a (b + c) + d) e
GNIT ECE 55
56. An application of Boolean algebra
Simplify to contain the smallest number of
literals (variables that may or may not be
complemented)
= AB + ABCD + A C D + A C D + A B D
= AB + AB(CD) + A C (D + D) + A B D
= AB + A C + A B D = B(A + AD) +AC
= B (A + D) + A C (has only 5 literals)
GNIT ECE 56
57. A B S C(arry)
0 0 0 0
1 0 1 0
0 1 1 0
1 1 0 1
Notice that the carry results are the same as AND
C = A B
GNIT ECE 57
58. Minterms and Maxterms
Sum-of-Minterm (SOM) Canonical Form
Product-of-Maxterm (POM) Canonical Form
Representation of Complements of Functions
Conversions between Representations
GNIT ECE 58
59. Minterms are AND terms with every variable
present in either true or complemented form.
Given that each binary variable may appear
normal (e.g., x) or complemented (there are 2n
minterms for n variables.
Example: Two variables (X and Y) produce
2 x 2 = 4 combinations:
(both normal)
(X normal, Y complemented)
(X complemented, Y normal)
(both complemented)
Thus there are four minterms of two variables.
Y
X
XY
Y
X
Y
X
x
GNIT ECE 59
60. Maxterms are OR terms with every variable in
true or complemented form.
Given that each binary variable may appear
normal (e.g., x) or complemented (e.g., x), there
are 2n maxterms for n variables.
Example: Two variables (X and Y) produce
2 x 2 = 4 combinations:
X+Y(both normal)
X+Y(x normal, y complemented)
X+Y (x complement , y normal)
X+Y(both complement)
GNIT ECE 60
61. Two variable minterms and maxterms.
The minterm mi should evaluate to 1 for
each combination of x and y.
The maxterm is the complement of the
minterm
x y Index Minterm Maxterm
0 0 0 m0 = x y M0 = x + y
0 1 1 m1 = x y M1 = x + y
1 0 2 m2 = x y M2 = x + y
1 1 3 m3 = x y M3 = x + y
GNIT ECE 61
62. M3 = x + y + z
m3 = x y z
3
1
1
0
M4 = x + y + z
m4 = x y z
4
0
0
1
M5 = x + y + z
m5 = x y z
5
1
0
1
M6 = x + y + z
m6 = x y z
6
0
1
1
1
1
0
0
y
1
0
0
0
x
1
0
1
0
z
M7 = x + y + z
m7 = x y z
7
M2 = x + y + z
m2 = x y z
2
M1 = x + y + z
m1 = x y z
1
M0 = x + y + z
m0 = x y z
0
Maxterm
Minterm
Index
Maxterm Mi is the complement of minterm mi
Mi = mi and mi = Mi
GNIT ECE 62
63. F = m1+m2+m3+m5+m7 = (1, 2, 3, 5, 7) =
x y z + x y z + x y z + x y z + x y z
F = M0 揃 M4 揃 M6 = (0, 4, 6) = (x+y+z)(x+y+z)(x+y+z)
x y z F Minterm Maxterm
0 0 0 0 M0 = (x + y + z)
0 0 1 1 m1 = x y z
0 1 0 1 m2 = x y z
0 1 1 1 m3 = x y z
1 0 0 0 M4 = (x + y + z)
1 0 1 1 m5 = x y z
1 1 0 0 M6 = (x + y + z)
1 1 1 1 m7 = x y z
GNIT ECE 63
64. Standard Sum-of-Products (SOP) form:
equations are written as an OR of AND
terms
Standard Product-of-Sums (POS) form:
equations are written as an AND of OR
terms
Examples:
SOP:
POS:
These mixed forms are neither SOP nor
POS
B
C
B
A
C
B
A +
+
C
揃
)
C
B
(A
揃
B)
(A +
+
+
C)
(A
C)
B
(A +
+
B)
(A
C
A
C
B
A +
+
GNIT ECE 64
65. A sum of minterms form for n variables can be
written down directly from a truth table.
Implementation of this form is a two-level network of
gates such that:
The first level consists of n-input AND gates
The second level is a single OR gate
This form often can be simplified so that the
corresponding circuit is simpler.
GNIT ECE 65
66. A Simplification Example:
Writing the minterm expression:
F = A B C + A B C + A B C + ABC + ABC
Simplifying:
F = A B C + A (B C + B C + B C + B C)
F = A B C + A (B (C + C) + B (C + C))
F = A B C + A (B + B)
F = A B C + A
F = B C + A
Simplified F contains 3 literals compared to
15
)
7
,
6
,
5
,
4
,
1
(
)
C
,
B
,
A
(
F S
=
GNIT ECE 66
67. In order for current to flow, both switches
must be closed
Logic notation AB = C
(Sometimes AB = C)
A B C
0 0 0
0 1 0
1 0 0
1 1 1
GNIT ECE 67
68. Current flows if either switch is closed
Logic notation A + B = C
A B C
0 0 0
0 1 1
1 0 1
1 1 1
GNIT ECE 68
69. Commutation
o A + B = B + A
o A B = B A
Same as
Same as
GNIT ECE 69
76. Exclusive OR/ Exclusive NOR
The eXclusive OR (XOR) function is an important Boolean
function used extensively in logic circuits.
The XOR function may be;
implemented directly as an electronic circuit (truly a gate)
or
implemented by interconnecting other gate types (used
as a convenient representation)
The eXclusive NOR function is the complement of the
XOR function
By our definition, XOR and XNOR gates are complex
gates.
Chapter 2
- Part 3
76
77. Uses for the XOR and XNORs gate include:
Adders/subtractors/multipliers
Counters/incrementers/decrementers
Parity generators/checkers
Definitions
The XOR function is:
The eXclusive NOR (XNOR) function, otherwise
known as equivalence is:
Strictly speaking, XOR and XNOR gates do no
exist for more that two inputs. Instead, they
are replaced by odd and even functions.
Y
X
Y
X
Y
X +
=
Y
X
Y
X
Y
X +
=
Chapter 2
- Part 3
77
78. Operator Rules: XOR XNOR
The XOR function means:
X OR Y, but NOT BOTH
XOR is known as equivalence function, why?
X Y X Y
0 0 0
0 1 1
1 0 1
1 1 0
X Y
0 0 1
0 1 0
1 0 0
1 1 1
(X Y)
Chapter 2
- Part 3
78
79. The XOR function can be extended to 3 or more
variables. For more than 2 variables, it is called
an odd function or modulo 2 sum (Mod 2 sum),
not an XOR:
The complement of the odd function is the even
function.
The XOR identities: =
= X
1
X
X
0
X
1
X
X
0
X
X =
=
X
Y
Y
X
=
Z
Y
X
)
Z
Y
(
X
Z
)
Y
X
(
=
=
+
+
+
=
Z
Y
X
Z
Y
X
Z
Y
X
Z
Y
X
Z
Y
X
Chapter 2
- Part 3
79
80. XOR symbol:
XNOR symbol:
Shaped symbols exist only for two inputs
Chapter 2
- Part 3
80
81. 1.12 Universal Gates
Nand and Nor gates are called Universal gates
as any Boolean function can be realized with the
help of Nand and Nor gates only
GNIT ECE 81
87. GNIT ECE
Add inverters in two-level implementation
into the cost picture
Attempt to combine inverters to reduce
the term count
Attempt to reduce literal + term count by
factoring expression into POSOP or SOPOS
87
88. GNIT ECE
F = A B + A C + B A + B C
= A A + A B + A C + B A + B B + B C
= A (A + B + C) + B (A + B + C)
F
A
C
B
7 inputs and 4 gates
15 inputs and 8 gates*
* Counting inverters (NOTS) as 1 input and 1 gate
88
89. GNIT ECE
F = AB + AD + BC + CD 12 inputs & 5 gates
= A(B + D) + C(B + D) 8 inputs & 5 gates
F
A
C
B
D
89