Week 4
Week 4
Systems
2.1.1 Need for Digital Systems
A system is a group of elements or components that are integrated to achieve a specific goal. A
signal is a way of conveying some information. It refers to any time-varying voltage, current, or
electromagnetic wave that carries information. Information could be in the form of an image, sound,
temperature, etc. There are two types of signals: analog signals and digital signals. Analog signals
are continuous signals, and they vary with respect to time. Digital signals are discrete signals that
are present only at discrete instants of time.
Based on the type of signal that the system handles, there are two types of systems: analog and
digital. Analog systems process analog signals; for example, volume control on old radios, telephone
handsets, and TR-10 desktop analog computers. Since analog signals involve continuous signals, it
requires huge memory to store the collected information. Also, designed systems cannot be easily
modified in real-time.
Digital systems process digital signals in the form of discrete signals, which are obtained by
sampling analog signals. The process of converting analog signal to digital signal is shown in Figure
1. A signal sampler is a kind of high-speed switch that takes an analog signal as an input and
produces discrete signals at predefined time intervals. Such signals have a finite set of possible
amplitudes. The best example of a digital system is a computer that uses digital signals in the form
of square waves. This kind of digital signal has only two amplitudes or voltage levels, namely high
voltage level and low voltage level.
Since digital signals are obtained by sampling analog signals, the accuracy of the digital signal
obtained depends on the sampling rate. If the sampling rate is low, sampled information will be
irreversibly lost, and the original signal will not be represented correctly. A higher sampling rate
provides better accuracy but will have an impact on storage capability and the amount of time it
takes to process the information. There is always a compromise between sampling rate, processing
time, and storage.
Since digital systems are more reliable, they are employed in almost all applications, including
computer systems.
2.1.2 Introduction to Number System
A number system defines how a number can be expressed. These numbers are represented using
distinct digits and or symbols in a consistent manner. In general, the value of any digit in a number
can be determined by:
● The digit or a symbol
● Its position in the number
● The base or radix value of the number system
The classification of the number system is shown in Figure 2. Non-positional number system uses
symbols to represent any number. Hence, it is also known as the “Symbolic” number system.
Figure 7: Position number and weights associated with decimal number 1248.84.
The main advantages of the decimal number system are that they are easy to represent, read, and
manipulate. Hence, it is most used in daily life. However, decimal number representation cannot be
employed in computers for the following reasons:
● Hard to store:
This is because each digit in a number is made of ten symbols. The first electronic computer ENIAC
used ten vacuum tubes per digit, and the computer design was very bulky.
● Hard to transmit:
Encoding ten different symbols requires ten signal levels so that it can be transmitted over a single
wire. Also, to minimize the errors, high-precision encoding is needed.
● Complex design and implementation:
Design requires handling ten signal levels. Hence, it complicates the implementation of various
arithmetic and logic functions, such as addition and multiplication.
2.1.3 Binary Number System
The binary number system uses only two possible values, 0 or 1, for each digit in a number. This
number system is used in every digital system because of easy storage, easy transmission, and
easy implementation of required functions. In such systems, everything is represented by either the
presence or absence of a signal. The presence of a signal is usually interpreted as digit 1, and the
absence of a signal as digit 0.
Each digit in a binary number is known as a bit. The binary number is made up of several bits. The
rightmost bit is known as the least significant bit, LSB, whereas the leftmost bit is known as the most
significant bit, MSB. In a digital system, MSB is the bit that has the largest weight in a binary number,
whereas LSB has the least weight. Figure 8 shows the position of MSB and LSB for two example
binary numbers.
Figure 16 shows an example of how a binary number 1111100.101 is converted using Method 2. The
direction of grouping for the integer part and fractional part is shown. For integers, part bits are
grouped from right to left, and for the fractional part, bits are grouped from left to right. If the last
group has less than three bits, then pad it with zeros and convert.
Figure 17 shows an example of how a binary number 1111100.101 is converted using Method
2. As shown in the figure, individual octal digits are converted to binary.
Figure 18 shows the conversion of a binary number to a hexadecimal number using Method 2. For
the binary number integer part, the four-bit group is formed from right to left, whereas for the
fractional part, four-bit groups are formed from left to right.
There is a shortcut method. Copy bits from right to left until (and including) the first 1, and then flip all
the remaining bits. Figure 21 shows the shortcut method.
Introduction to K-Map
4.1.1 Introduction to K-Map Method
Complex logic expressions can be simplified using well-known Boolean algebra, which is composed
of several useful Boolean Postulates and theorems. But this method comes with two main
drawbacks.
● Complex Boolean expressions require several time-consuming steps for simplification. There
are no specific rules to guide us on which theorems should be applied and when. Also, when
a theorem or a postulate is applied, it is difficult to determine whether the simplest form has
been achieved or not.
● This technique is error-prone. There are chances that one may end up making mistakes.
Another technique, K – map or Karnaugh map, is an easy and systematic method of simplifying
Boolean Expressions. It is a graphical method developed by Maurice Karnaugh in 1953 at Bell Labs
[Figure 1]. Using this map technique, one can achieve the most simplified expression either in the
Sum of Products, SOP form, or products of sums, POS form. The simplified expression will have a
minimum number of terms with the least number of literals in each term.
Minterm K-map is used to represent the Sum of Product expressions, whereas Maxterm K-map is
used to represent the Product of Sum expressions.
Representation of Minterms on the K-Map
Figure 2 shows the truth table for some function with two variables, X, and Y. With two variables, we
can have four minterms m0, m1, m2, and m3. Note that while writing minterms lower case ‘m’ is
used.
Minterm m0 corresponds to x = 0 and y = 0 and is placed in the 0th cell. Minterm m1 corresponds to
x = 0 and y = 1 and is placed in the 1st cell. The 0th cell and 1st cell are adjacent cells, and they
differ in the value of one variable, i.e., for these two cells, X is 0, Y is 0 for the first cell, and Y is 1 for
the second cell. Minterm m2 corresponds to X = 1 and Y = 0 and is placed in the 2nd cell. 0th and
2nd cells are adjacent cells, and they differ in the value of the X variable. The value of the Y variable
for both these cells is 0. Minterm m3 corresponds to X = 1 and Y = 1 and is placed in the 3rd cell. 1st
and 3rd cells are adjacent cells and 2nd and 3rd cells are adjacent cells.
In the case of a minterm K-map, logic ‘1’ is placed in all those cells for which the output is ‘1’, and ‘0’
is placed in all those cells for which the output is ‘0’. For minterm m0, the output is 1. Enter 1 in the
0th cell. For minterm m1, the output is 0. Enter 0 in 1st cell. For minterm m2, the output is 1. Enter 1
in the 2nd cell. For minterm m3, the output is 0. Enter 0 in the 3rd cell. Figure 3 shows the mapping
of 0’s and 1’s in the truth table to K-Map cells.
Figure 3: Mapping of output to K-Map cells.
To simplify a Boolean expression, we have to systematically group these 1’s in the K-map.
Representation of Max Terms on the K-Map
There are four Maxterms M0, M1, M2, and M3, corresponding to four input combinations. In max
term representation, we write X when X = 0, and X’ when X = 1. Minterms for different values of X
and Y are given below:
● X = 0, Y = 0 , M0 🡺 X + Y
● X = 0, Y = 1 , M1 🡺 X + Y’
● X = 1, Y = 0 , M2 🡺 X’ + Y
● X = 1, Y = 1 , M3 🡺 X’ + Y’
Figure 1 shows the five cases of cell grouping. Two cells are said to be adjacent, if they differ in only
one variable. In Figure 1(A) topmost two cells are adjacent since x is the same for both cells, but y is
different that is, Y = 0 for cell 0 and is equal to 1 for cell 1. So, the common variable is X, and the
Boolean expression for this grouping is X’
In Figure 1(B), the bottom two cells are adjacent. The Boolean expression for this grouping is X. In
Figure 1(C), the leftmost two cells are adjacent. In this case, y is common and is equal to 0. Hence,
the Boolean term is Y’. In Figure 1(D), for the rightmost cell, y is common and is equal to 1. Hence,
the Boolean term is Y.
Two variable K- map also allows the grouping of four cells, which is shown in Figure 1(E). This
results in final expression 1. This is because, for all the combinations of inputs, the output is one.
Problem 1: Minimize the following expression using two variable K-Map.
f(X, Y) =
∑m(1,2,3)
∑m(1,2,3)
Solution:
The above function has three Minterms, m1, m2, and m3, for which the output is 1. Fill the K-Map
cells corresponding to these Minterms with 1. Figure 2 shows the 2- variable K-map grouping. The
final Boolean expression is
f(X, Y) = X + Y
Figure 1: 5 Cases of 2 variable K-Map grouping.
Solution:
First, write the minterms for the given truth table. The next step is identifying the minterms for which
the output is 1. Output is 1 for minterms 0 and 3. m0 corresponds to cell 0, and m3 corresponds to
cell 3. Place 1 in those cells. As seen in Figure 3, these two cells are diagonal, hence, cannot be
grouped. So, group them individually. The final expression is
F(X,Y) X’Y’ + XY.
As seen from the K-Map, the given expression is not a simplified expression. Regrouping of terms is
needed and is shown in Figure 5. Obtain terms for each grouping. Adding all the terms gives the
simplified function f = W’Z + WY’ + WX’Z’
Figure 4: Example 2 – Each term mapping.
Figure 5: Example 2: Regrouping of 1’s.
Example 3: Obtain minimal sum of product expressions for the function given below
F (W,X,Y,Z) =
∑(0,1,2,5,8,9,10)
∑(0,1,2,5,8,9,10)
Solution: Figure 6 shows the k-map for the given Boolean expression with four variables. The
simplified expression is given by
F(W,X,Y,Z) = X’Z’ + W’Y’Z + X’Y’