FDC PDF
FDC PDF
F.Y.B.Sc.(IT)
Syllabus : Fundamentals of Digital Computing
Text Books:
Modern Digital Electronics by R. P. Jain, 3rd Edition, McGraw
Hill
Digital Design and Computer Organisation by Dr. N. S. Gill and
J. B. Dixit, University Science Press
Linux Commands by Bryan Pfaffaenberger BPB Publications
UNIX by Sumitabha Das, TMH
References:
Digital Principles and Applications by Malvino and Leach,
McGrawHill
Introduction to Computers by Peter Norton, McGraw Hill
Introduction to Computers by Balagurusamy
3
Unit Structure
1.0 Objectives
1.1 Data & Information
1.2 Analog Versus Digital
1.3 Number Systems
1.4 Decimal Verses Binary Number System
1.5 Octal & Hexadecimal Number System
1.6 Conversion from Decimal Number System
1.7 Unsigned & Signed Integers
1.8 Signed Integers
1.9 1’s Complement
1.10 2’s Complement
1.11 Binary Arithmetic
1.11.1 Addition
1.11.2 Subtraction
1.11.3 Multiplication
1.11.4 Division
1.11.5 Binary Subtraction Using 1’s Complement
1.11.6 Binary Subtraction Using 2’s Complement
1.12 Questions
1.13 Further Reading
1.0 OBJECTIVES
WHOLE NUMBERS:
1, 2, 3, 4, 5, 6, 7, 8, 9 . . .
INTEGERS:
-4, -3, -2, -1, 0, 1, 2, 3, 4 . . .
IRRATIONAL NUMBERS:
π (approx. 3.1415927), e (approx. 2.718281828),
square root of any prime
REAL NUMBERS:
(All one-dimensional numerical values, negative and positive,
including zero, whole, integer, and irrational numbers)
The bit on the far right side is called the Least Significant Bit
(LSB), because it stands in the place of the lowest weight (the one's
place). The bit on the far left side is called the Most Significant Bit
(MSB), because it stands in the place of the highest weight (the one
hundred twenty-eight's place). Remember, a bit value of "1" means
that the respective place weight gets added to the total value, and a
bit value of "0" means that the respective place weight does not get
added to the total value. With the above example, we have:
12810 + 6410 + 810 + 410 + 110 = 20510
12
For example:
Convert 101.0112 to decimal form:
.
bits = 1 0 1 . 0 1 1
. - - - - - - -
weight = 4 2 1 1 1 1
(in decimal / / /
notation) 2 4 8
410 + 110 + 0.2510 + 0.12510 = 5.37510
Here we had to group the bits in four's, from the binary point
left, and from the binary point right, adding (implied) zeros as
necessary to make complete 4-bit groups:
The method which will probably make the most sense is the
"trial-and-fit" method, where you try to "fit" the binary, octal, or
hexadecimal notation to the desired value as represented in
decimal form. For example, let's say that I wanted to represent the
decimal value of 87 in binary form. Let's start by drawing a binary
number field, complete with place-weight values:
.
. - - - - - - - -
15
weight = 1 6 3 1 8 4 2 1
(in decimal 2 4 2 6
notation) 8
Well, we know that we won't have a "1" bit in the 128's place,
because that would immediately give us a value greater than 87.
However, since the next weight to the right (64) is less than 87, we
know that we must have a "1" there.
. 1
. - - - - - - - Decimal value so far = 6410
weight = 6 3 1 8 4 2 1
(in decimal 4 2 6
notation)
. 1
. weight = - - - Decimal value so far = 6410
6 8 1
(in decimal 4
notation)
A cipher value of "3" in the 8's place would put us over the
desired total of 8710, so "2" it is!
. 1 2
. - - - Decimal value so far = 8010
weight = 6 8 1
(in decimal 4
notation)
. Implied zeros
. ||
. 001 010 111 Binary
. --- --- ---
. 1 2 7 Octal
.
Answer: 10101112 = 1278
17
1. if the result is too large to fit into the number of bits assigned to
it, an "overflow" is said to have occurred. For example if the result
of an operation using 16 bit integers is larger than 65,535, an
overflow results.
1 0 0 0 0 0 0 0 2 + 0 0 0 0 0 0 0 1 2 is 1 0 0 0 0 0 0 1 2.
You should verify that a signed short integer can hold decimal
values from -32,768 to +32,767, a signed long integer can contain
values from -2,147,483,648 to +2,147,483,647 and a signed double
integer can represent decimal values from -9,223, 372, 036, 854,
775, 808 to +9,223, 372, 036, 854, 775, 807.
Trick:
Invert all the bits of the binary number
N = 111001101
24
Example:
Convert binary number 111001101 to 2’s complement
Method
2’s complement of a binary no can be obtained by two step process
Step 1
1’s complement of number N = 000110010
Step 2
1’s complement + 1
000110010
+ 000000001
= 000110011
Answer
2’s complement of a binary no 111001101 is 000110011
1.11.1 Addition
0+0=0
0+1=1
1+0=1
1 + 1 = 0, and carry 1 to the next more significant bit
For example,
00011010 + 00001100 = 00100110
1 1 carries
0 0 0 1 1 0 1 0 = 26(base 10)
+ 0 0 0 0 1 1 0 0 = 12(base 10)
0 0 1 0 0 1 1 0 = 38(base 10)
00010011 + 00111110 = 01010001
1 1 1 1 1 carries
0 0 0 1 0 0 1 1 = 19(base 10)
+ 0 0 1 1 1 1 1 0 = 62(base 10)
0 1 0 1 0 0 0 1 = 81(base 10)
25
1.11.2 Subtraction
0-0=0
0 - 1 = 1, and borrow 1 from the next more significant bit
1-0=1
1-1=0
For example,
0 0 0 1 0 1 0 0 = 20(base 10)
0 0 0 1 1 1 0 1 = 29(base 10)
1.11.3 Multiplication
0x0=0
0x1=0
1x0=0
1 x 1 = 1, and no carry or borrow bits
For example,
0 0 1 0 1 0 0 1 = 41(base 10)
×0 0 0 0 0 1 1 0 = 6(base 10)
0 0 0 0 0 0 0 0
0 0 1 0 1 0 0 1
0 0 1 0 1 0 0 1
0 0 1 1 1 1 0 1 1 0 = 246(base
10)
26
0 0 0 1 0 1 1 1 = 23(base 10)
×0 0 0 0 0 0 1 1 = 3(base 10)
1 1 1 1 1 carries
0 0 0 1 0 1 1 1
0 0 0 1 0 1 1 1
0 0 1 0 0 0 1 0 1 = 69(base 10)
1 carries
0 0 0 0 1 0 0 0 = 8(base 10)
0 0 0 0 1 0 0 0 = 8(base 10)
+0 0 0 0 1 0 0 0 = 8(base 10)
0 0 0 1 1 0 0 0 = 24(base 10)
1.11.4 Division
For example,
1 1 1 = 7(base 10)
1 1 0 ) 0 0 1 1
0 1 0 1 0 = 42(base 10)
- 1 1 0 = 6(base 10)
1 borrows
1
1 0 0 1
- 1 1 0
1 1 0
- 1 1 0
0
27
135(base
1 0 1 ) 1 0 0
1
0 0 1 1 1 =
10)
- 1 0 1 = 5(base 10)
1
1 1 0
- 1 0 1
1 1
- 0
1 1 1
- 1 0 1
1 0 1
- 1 0 1
Binary Equivalents
1 Nibble = 4 bits
1 Byte = 2 nibbles = 8 bits
1 Kilobyte (KB) = 1024 bytes
1 Megabyte (MB) = 1024 kilobytes = 1,048,576 bytes
1 Gigabyte (GB) = 1024 megabytes = 1,073,741,824 bytes
0001 (1)
1. First, we state our problem in binary.
- 0111 - (7)
0001 (1)
2. Next, we convert 01112 to its negative
+ 1000 +(-7)
equivalent and add this to 00012. Add 12 to it.
1001 (?)
3. This time our result does not cause an
overflow, so we do not need to adjust the
sum. Notice that our final answer is a
negative number since it begins with a 1.
0001 (1)
Remember that our answer is in 2's
+ 1001 +(-7)
complement notation so the correct decimal
1010 (-6)
value for our answer is -610 and not 910.
(In unsigned representation, we re-
complement the answer 0101 add 1 to it 0110
and attach a – sign.)
1.12 QUESTIONS
CODES
Unit Structure
2.0 Objectives
2.1 Binary codes
2.1.1 Binary-coded-decimal Numbers
2.2 Geometric Representation of binary Numbers
2.3 Distance
2.4 Unit-distance codes
2.5 Symmetries of the n-cube
2.6 Error-detecting and error-correcting codes
2.7 Single-error-correcting codes
2.8 Ascii code
2.9 Ebcdic code
2.10 Unicode
2.11 Questions
2.12 Further Reading
3.0 OBJECTIVES
Binary Codes:
3.3 DISTANCE
For example, 10110 and 01101 differ in all but the third
coordinate (from left or right). Since the points differ in four
coordinates, the distance between them is 4. A more formal
definition is as follows: First, define the mod 2 sum of two bits, a
b, by
0 0 = 0 1 0 = 1
0 1 = 1 1 1 = 0
That is, the sum is 0 if the 2 bits are alike, and it is 1 if the 2 bits
are different. Now consider the binary representations of two points,
Pi = (an-an2 …a 0) ) and Pj = (bn1 bn2 …b0)), on the n-cube. The
mod 2 sum of these two points is defined as
Unit-distance code
Also the addition of a parity bit to any set of binary words will
guarantee that the minimum distance between any two words is at
least two.
Figure Five-cube map for the 8421 BCD code with parity bit p
The fact that no cell has more than one shows that no cell
is distance one away from two code words. Since a single error
changes a code word into a new word distance one away and each
of such words is distance one away from only one code word it is
possible to correct all single errors. A necessary consequence of
the fact that no word is distance one away from more than one
code word is the fact that the minimum distance between any pair
of code words is three. In fact the necessary and sufficient
conditions for any set of binary words to be a single-error-correcting
code is that the minimum distance between any pair of words be
three.
44
The ASCII codes for the characters "A" through "Z" lie in the
range 41h through 5Ah. Since there are only 26 different alphabetic
characters, the remaining six codes hold various special symbols.
Note that the lower case character symbols use the ASCII
codes 61h through 7Ah. If you compare the ASCII codes for the
upper and lower case characters to binary, you will notice that the
upper case symbols differ from their lower case equivalents in
exactly one bit position.
The only place these two codes differ is in bit five. Upper
case characters always contain a zero in bit five; lower case
alphabetic characters always contain a one in bit five. You can use
this fact to quickly convert between upper and lower case. If you
have an upper case character you can force it to lower case by
setting bit five to one. If you have a lower case character and you
wish to force it to upper case, you can do so by setting bit five to
zero. You can toggle an alphabetic character between upper and
lower case by simply inverting bit five.
that you can use the logical-AND operation to force the high order
bits to zero; likewise, you can use the logical-OR operation to force
the high order bits to 0011 (three).
will still need to convert the data when exchanging files between
them. Fortunately, such conversions are rather simple.
& ! $ * ) ; ¬
5
(80) (81) (82) (83) (84) (85) (86) (87) (88) (89) (90) (91) (92) (93) (94) (95)
0101
50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F
- / | , % _ > ?
6
(96) (97) (98) (99) (100) (101) (102) (103) (104) (105) (106) (107) (108) (109) (110) (111)
0110
60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F
` : # @ ' = "
7
(112) (113) (114) (115) (116) (117) (118) (119) (120) (121) (122) (123) (124) (125) (126) (127)
0111
70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F
a b c d e f g h i
8
(128) (129) (130) (131) (132) (133) (134) (135) (136) (137) (138) (139) (140) (141) (142) (143)
1000
80 81 82 83 84 85 86 87 88 89 8A 8B 8C 8D 8E 8F
j k l m n o p q r
9
(144) (145) (146) (147) (148) (149) (150) (151) (152) (153) (154) (155) (156) (157) (158) (159)
1001
90 91 92 93 94 95 96 97 98 99 9A 9B 9C 9D 9E 9F
~ s t u v w x y z
A
(160) (161) (162) (163) (164) (165) (166) (167) (168) (169) (170) (171) (172) (173) (174) (175)
1010
A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD AE AF
B
(176) (177) (178) (179) (180) (181) (182) (183) (184) (185) (186) (187) (188) (189) (190) (191)
1011
B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BD BE BF
{ A B C D E F G H I Note2 Note3
C
(192) (193) (194) (195) (196) (197) (198) (199) (200) (201) (202) (203) (204) (205) (206) (207)
1100
C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF
} J K L M N O P Q R
D
(208) (209) (210) (211) (212) (213) (214) (215) (216) (217) (218) (219) (220) (221) (222) (223)
1101
D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 DA DB DC DD DE DF
\ S T U V W X Y Z Note4
E
(224) (225) (226) (227) (228) (229) (230) (231) (232) (233) (234) (235) (236) (237) (238) (239)
1110
E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 EA EB EC ED EE EF
0 1 2 3 4 5 6 7 8 9
F
(240) (241) (242) (243) (244) (245) (246) (247) (248) (249) (250) (251) (252) (253) (254) (255)
1111
F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 FA FB FC FD FE FF
(1) Code 79 is a solid vertical bar, similar to the broken vertical bar
(character 106).
(2) Code 204 is the mathematics integration symbol.
(3) Code 206 is a "Y" drawn with only right angles.
(4) Code 236 is a horizontally-flipped "h".
In this table, the code or symbol name is shown on the first
line, followed by the decimal value for that code or symbol, followed
by the hexadecimal value. The binary value can be computed
based on the row and column where the code or symbol resides, or
directly from the hexadecimal value. For example, the character "+"
has the binary value "0100 1110", with "0100" taken from the row
and "1110" taken from the column. Similarly, the lowercase letter 'p'
has the binary value "1001 0111".
50
3.10 UNICODE
3.11 QUESTIONS
http://en.wikipedia.org/wiki/Binary_codes
http://en.wikipedia.org/wiki/Distance
http://en.wikipedia.org/wiki/Error_detection
http://en.wikipedia.org/wiki/ASCII
52
3
BOOLEAN ALGEBRA AND LOGIC GATES
Unit Structure
3.0: Objectives
3.1 Boolean Logic
3.2 Logic Gates
3.2.1 Not gate
3.2.2 The "buffer" gate
3.2.3 The AND gate
3.2.4 The OR gate
3.3 Universal Gates
3.3.1 Nand gate
3.3.2 Nor gate
3.4 Other Gates
3.4.1 The Exclusive-Or gate
3.4.2 The Exclusive-Nor gate
3.5 Boolean algebra
3.6 Laws of boolean algebra
3.7 Questions
3.8 Further reading
3.0 OBJECTIVES:
output signal is a binary "0." Any voltage close to full supply voltage
(measured in reference to ground, of course) is considered a "1"
and a lack of voltage is considered a "0." Alternative terms for these
voltage levels are high (same as a binary "1") and low (same as a
binary "0"). A general term for the representation of a binary bit by a
circuit voltage is logic level.
While this may seem like a pointless thing to do, it does have
practical application. Remember that gate circuits are signal
amplifiers, regardless of what logic function they may perform. A
weak signal source (one that is not capable of sourcing or sinking
very much current to a load) may be boosted by means of two
inverters like the pair shown in the previous illustration. The logic
level is unchanged, but the full current-sourcing or -sinking
capabilities of the final inverter are available to drive a load
resistance if needed.
The logic diagram and the truth table of AND gate are shown
below:
The logic diagram and the truth table of OR gate are shown below:
The NOR gate has output high when both of its inputs are
low. The symbolic diagram and the truth table of NOR gate is
shown below:
In this circuit, the final AND gate acts as a buffer for the
output of the OR gate whenever the NAND gate's output is high,
which it is for the first three input state combinations (00, 01, and
10). However, when both inputs are "high" (1), the NAND gate
outputs a "low" (0) logic level, which forces the final AND gate to
produce a "low" (0) output.
P1: X = 0 or X = 1
P2: 0 . 0 = 0
P3: 1 + 1 = 1
P4: 0 + 0 = 0
P5: 1 . 1 = 1
P6: 1 . 0 = 0 . 1 = 0
P7: 1 + 0 = 0 + 1 = 1
The following table shows the basic Boolean laws. Note that
every law has two expressions, (a) and (b). This is known as
duality. These are obtained by changing every AND(.) to OR(+),
every OR(+) to AND(.) and all 1's to 0's and vice-versa.
It has become conventional to drop the . (AND symbol) i.e. A.B is
written as AB.
T1 : Commutative Law
(a) A + B = B + A
(b) A B = B A
T2 : Associate Law
(a) (A + B) + C = A + (B + C)
(b) (A B) C = A (B C)
T3 : Distributive Law
(a) A (B + C) = A B + A C
(b) A + (B C) = (A + B) (A + C)
T4 : Identity Law
(a) A + A = A
(b) A A = A
67
T5 :
(a)
(b)
T6 : Redundance Law
(a) A + A B = A
(b) A (A + B) = A
T7 :
(a) 0 + A = A
(b) 0 A = 0
T8 :
(a) 1 + A = 1
(b) 1 A = A
T9 :
(a)
(b)
T10 :
(a)
(b)
T11 : De Morgan's Theorem
(a)
(b)
Examples:
ab + ab’ + a’b = a(b+b’) + a’b
= a•1 + a’b By P5
= a + a’b By
= a + a’b + 0
= a + a’b + aa’
= a + b(a + a’)
= a + b•1
=a+b
(a’b + a’b’ + b’)‘ = ( a’(b+b’) + b’)’
= (a’ + b’)’
= ( (ab)’ )’
= ab
b(a+c) + ab’ + bc’ + c = ba + bc + ab’ + bc’ + c
= a(b+b’) + b(c + c’) + c
= a•1 + b•1 + c
=a+b+c
68
3.7 QUESTIONS:
http://en.wikipedia.org/wiki/Logic_gates
http://en.wikipedia.org/wiki/Universal_logic_gate
http://en.wikipedia.org/wiki/Boolean_algebra
69
Unit Structure
4.0 Objectives
4.1 Canonical Forms
4.2 Karnaugh Maps
4.3 Simplifying Boolean Expressions Using Karnaugh Maps
4.4 Maxterms and Minterms
4.5 Quine Mcclusky Method
4.6 Questions
4.7 Further Reading
4.0 OBJECTIVES
A Karnaugh map comprises a box for every line in the truth table;
the binary value for each box is the binary value of the input terms
in the corresponding table row. Unlike a truth table, in which the
input values typically follow a standard binary sequence (00, 01, 10,
11), the Karnaugh map's input values must be ordered such that
the values for adjacent columns vary by only a single bit, for
example, 00, 01, 11, and 10. This ordering is known as a Gray
code.
71
Example #1:
Here is a two-input truth table for a digital circuit:
Example #2:
Example #3:
Here is a four-input truth table for a digital circuit:
73
Example #1:
In Loop 1 the variable A has both logic 0 and logic 1 values in the
same loop. B has a value of 1. Hence minterm equation is: F = B.
Example #2:
In Loop 1 the variable C has both logic 0 and logic 1 values in the
same loop. A has a value of 0 and B has a logic value of 1. Hence
minterm equation is: F
In Loop 2 the variable C has both logic 0 and 1 values in the same
loop. A = 1 and B = 0, hence minterm equation is: F
.
In Loop 3 the two variables A and B both have logic 0 and logic 1
values in the same loop. C has a value of 1. Hence minterm
equation is: F C.
Example #3:
Simplifying the corresponding K-map of a four-input truth table for a
digital circuit:
Example:
Simplify the Product-Of-Sums Boolean expression below,
providing a result in POS form.
Solution:
Transfer the seven maxterms to the map below as 0s. Be
sure to complement the input variables in finding the proper cell
location.
81
Example:
Simplify the Product-Of-Sums Boolean expression below,
providing a result in SOP form.
Solution:
This looks like a repeat of the last problem. It is except that
we ask for a Sum-Of-Products Solution instead of the Product-Of-
Sums which we just finished. Map the maxterm 0s from the
Product-Of-Sums given as in the previous problem, below left.
82
Then fill in the implied 1s in the remaining cells of the map above
right.
Above right we see that the output NAND gate with inverted
inputs is logically equivalent to an OR gate by DeMorgan's theorem
and double negation. This information is useful in building digital
logic in a laboratory setting where TTL logic family NAND gates are
more readily available in a wide variety of configurations than other
types.
84
Example:
Let us revisit a previous problem involving an SOP
minimization. Produce a Product-Of-Sums solution. Compare the
POS solution to the previous SOP.
Solution:
Above left we have the original problem starting with a 9-
minterm Boolean unsimplified expression. Reviewing, we formed
four groups of 4-cells to yield a 4-product-term SOP result, lower
left.
The SOP and POS gate diagrams are shown above for our
comparison problem.
Given the pin-outs for the TTL logic family integrated circuit
gates below, label the maxterm diagram above right with Circuit
designators (U1-a, U1-b, U2-a, etc), and pin numbers.
will use the 7420 4-input NAND gate as an OR gate by inverting the
inputs.
List Minterms
Column I
0 0000
2 0010
8 1000
5 0101
6 0110
10 1010
12 1100
7 0111
13 1101
14 1110
15 1111
Column I Column II
(12,13) 110-
(12,14) 11-0
(7,15) -111
(13,15) 11-1
(14,15) 111-
(12,14) 11-0
(7,15) -111
(13,15) 11-1
(14,15) 111-
0 X
2 X X
5 X
6 X X
7 X X
8 X X
10 X X X
12 X X
92
13 X X
14 X X X X
15 X X X
X
0
2 X X
X
5
6 X X
7 X X
8 X X
10 X X X
12 X X
13 X X
14 X X X X
15 X X X
Row 14 dominates both row 6 and row 12. That is, row 14
has an ``X'' in every column where row 6 has an ``X'' (and, in fact,
row 14 has ``X'''s in other columns as well). Similarly, row 14 has in
``X'' in every column where row 12 has an ``X''. Rows 6 and 12 are
said to be dominated by row 14.
Iteration #2.
(i) Remove Secondary Essential Prime Implicants
(2,6,10,14) (8,10,12,14)
( )6 X
( )12 X
Example #2:
0 X X X
2 X X X X
3 X X
4 X X X X
5 X X
6 X X X
7 X X
8 X X X X
9 X X
10 X X X
11 X X
12 X X X
13 X X
0 X X X
2 X X X X
3 X X
4 X X X X
5 X X
96
6 X X X
7 X X
8 X X X X
9 X X
10 X X X
11 X X
12 X X X
13 X X
0 X X X
3 X X
5 X X
7 X X
9 X X
11 X X
13 X X
Iteration #2.
(i) Remove Secondary Essential Prime Implicants
( )0 X
3 X X
5 X X
7 X X
9 X X
97
11 X X
13 X X
3 X X
5 X X
7 X X
9 X X
11 X X
13 X X
Note: As indicated earlier, you should learn this basic method for
generating prime implicants (Step #1).
List Minterms
Column I
1 0001
2 0010
3 0011
9 1001
10 1010
7 0111
11 1011
13 1101
15 1111
(7,15) -111
(11,15) 1-11
(13,15) 11-1
Combine Pairs of Products from Column II
(7,15) -111
(11,15) 1-11
(13,15) 11-1
4.6 QUESTIONS :
b. f ( A, B, C , D, E ) m(1,3,4,5,6,8,12,14,15)
2. Simplify the following using K-map and realize it using 2-input
gates:
a. f ( A, B, C , D) m(1,2,9,10,11,14,15)
b. f ( A, B ,C , D ) m( 0 ,1,5,9 ,13,14,15 ) d ( 3,4,7 ,10,11 )
c. F ( A, B ,C , D ) M ( 4 ,6 ,8,9 ,10,12 ,13,14 ) d ( 0 ,2 ,5 )
http://en.wikipedia.org/wiki/Canonical_form
http://en.wikipedia.org/wiki/Minterm
http://en.wikipedia.org/wiki/Quine–McCluskey_algorithm
http://en.wikipedia.org/wiki/Karnaugh_map
102
5
COMBINATIONAL LOGIC DESIGN
Unit Structure
5.0 Objectives
5.1 Combinational Circuits
5.2 Adders and Subtractors
5.21 Half Adder
5.2.2 Full Adder
5.2.3: Half Subtractor
5.2.4 Full Subtractor
5.3 Code Converters
5.3.1 Bcd to Excess – 3 (Xs – 3) Code Conversion
5.3.2 Binary to Gray Code Conversion
5.3.3 Gray to Binary Code Conversion
5.4 Questions
5.6 Further Reading
5.0 OBJECTIVES
Figure shows the truth table of a full adder circuit showing all
possible input combinations and corresponding outputs. In order to
arrive at the logic circuit for hardware implementation of a full
adder, we will firstly write the Boolean expressions for the two
output variables, that is, the SUM and CARRY outputs, in terms of
input variables. These expressions are then simplified by using any
of the simplification techniques described in the previous chapter.
The Boolean expressions for the two output variables are given in
Equations below for (S) and CARRY output(Cout)
106
As is clear from the two maps, the expression for the SUM
(S_output cannot be simplified any further, whereas the simplified
Boolean expression for Cout is given by the equation
107
DIFFERENC
E
XYDB
108
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
A B BORIN D BOROUT
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
z=D’
y=CD+C’D’ = CD+(C + D)’
x= B’C + B’D + BC’D’ = B’(C+D) + BC’D’
w= A + BC + BD = A + B (C+D)
111
Binary Gray
A B C D G3 G2 G1 G0
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 0 0 0 1 1
0 0 1 1 0 0 1 0
0 1 0 0 0 1 1 0
0 1 0 1 0 1 1 1
0 1 1 0 0 1 0 1
0 1 1 1 0 1 0 0
1 0 0 0 1 1 0 0
1 0 0 1 1 1 0 1
1 0 1 0 1 1 1 1
1 0 1 1 1 1 1 0
1 1 0 0 1 0 1 0
1 1 0 1 1 0 1 1
1 1 1 0 1 0 0 1
1 1 1 1 1 0 0 0
G3=A G2=
112
G0=
G1=
113
Gray Binary
A B C D G3 G2 G1 G0
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 0 0 0 1 1
0 0 1 1 0 0 1 0
0 1 0 0 0 1 1 1
0 1 0 1 0 1 1 0
0 1 1 0 0 1 0 0
0 1 1 1 0 1 0 1
1 0 0 0 1 1 1 1
1 0 0 1 1 1 1 0
1 0 1 0 1 1 0 0
1 0 1 1 1 1 0 1
1 1 0 0 1 0 0 0
1 1 0 1 1 0 0 1
1 1 1 0 1 0 1 1
1 1 1 1 1 0 1 0
114
1-bit Comparator
Truth Table
Inputs Outputs
B A A>B A=B A<B
0 0 0 1 0
0 1 1 0 0
1 0 0 0 1
1 1 0 1 0
You may notice two distinct features about the comparator from the
above truth table. Firstly, the circuit does not distinguish between
either two "0" or two "1"'s as an output A = B is produced when they
are both equal, either A = B = "0" or A = B = "1". Secondly, the
output condition for A = B resembles that of a commonly available
logic gate, the Exclusive-NOR or Ex-NOR function (equivalence) on each
of the n-bits giving: Q = A ⊕ B
Example:
In a car, we have the following components:
A Day-night sensor: Day-1, Night-0
B Lamps on: On-1, Off-0
C Ignition on: On-1, Off-0
D Warning light for lamps-on
116
A B C D
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 1
Therefore,
5.4 QUESTIONS:
http://en.wikipedia.org/wiki/Combinational_logic
http://en.wikipedia.org/wiki/Adder_(electronics)
http://en.wikipedia.org/wiki/Subtractor
119
Unit Structure
6.0 Objectives
6.1 Multiplexers
6.1.1 4-to-1 Channel Multiplexer
6.1.2 4 Channel Multiplexer using Logic Gates
6.1.3 4-to-2 Channel Multiplexer
6.1.4 The Demultiplexer
6.1.5 1-to-4 Channel De-multiplexer
6.1.6 4 Channel Demultiplexer using Logic Gates
6.1.7 The Digital Encoder
6.1.8 4-to-2 Bit Binary Encoder
6.1.9 Priority Encoder
6.1.10 8-to-3 Bit Priority Encoder
6.1.11 Encoder Applications
6.1.12 A 4-to-16 Binary Decoder Configuration
6.2 Questions
6.3 Further Reading
6.0 OBJECTIVES:
6.1 MULTIPLEXERS
Addressing Input
B a Selected
0 0 A
0 1 B
1 0 C
1 1 D
address would need to be "a" = logic "1" and "b" = logic "0". Adding
more control address lines will allow the multiplexer to control more
inputs but each control line configuration will connect only ONE
input to the output.
Multiplexer Symbol
122
Ddressing Input
b a Selected
0 0 A
0 1 B
1 0 C
1 1 D
Demultiplexer Symbol
The truth table for a 8-to-3 bit priority encoder is given as:
From this truth table, the Boolean expression for the encoder
above with inputs D0 to D7 and outputs Q0, Q1, Q2 is given as:
Output Q0
127
Output Q1
Output Q2
Then the final Boolean expression for the priority encoder including
the zero inputs is defined as:
Positional Encoders
Binary Output
Compass Direction
Q0 Q1 Q2
North 0 0 0
North-East 0 0 1
East 0 1 0
South-East 0 1 1
South 1 0 0
South-West 1 0 1
West 1 1 0
North-West 1 1 1
Interrupt Requests
Binary Decoder
IF S=0, then Y= D0
Else (S=1) Y= D1
134
D
0
M
U
X
Y
D
1
Figure 2: A 2 X 1 Multiplexer
IF S1S0=00,
then Y= D0
IF S1S0=01,
then Y= D1
IF S1S0=10,
then Y= D2
IF S1S0=11,
then Y= D3
Figure 3: A 4
X1
Multiplexer
In General,
For MUXes with n select inputs, the output Y is given by
n n
Y = m0D0 + m1D1 + m2D2 + .…+
2 m2 -1D –1
Thus
2
n
1
Y ∑ mi Di
i 0
Example 3: Quad 2X1 Mux
Given two 4-bit numbers A and B, design a multiplexer that selects
one of these 2 numbers based on some select signal S. Obviously,
the output (Y) is a 4-bit number.
136
A0 Q uad 2-1
A1 MUX
A A 2Y 0
3
Y1
Y2
B0 Y3
B1
B2
B3
S
Figure 4: Quad 2 X 1 Multiplexer
Y = A IF S=0, otherwise Y = B
n n
Y = m0D0 + m1D1 + m2 D2 + ...2 +
–1 m2 -1D
Alternatively,
2
n
1
Y
∑
mi
Di
i
0
0 D2
1 D3
0 D4 Y
1 D5
1 D6
0 D7 0
S
1
F ( A ,B , C )
∑ ( 1 , 3 , 5 , 6 )A B C
Construct the truth table of the function, but grouping the n-1
select input variables together (e.g. by making the n-1 select
variables as most significant inputs).
D0
D1
D2
D3
For the decoder, the inputs are A1 and A0, and the enable is input
E. (see figure 9)
For demux, input E provides the data, while other inputs accept the
selection variables.
6.2 QUESTIONS:
1. Define Multiplexer.
2. Write short note on 4 –to- 1 Channel Multiplexer.
3. Explain 4- to -2 Channel Multiplexer With help of suitable
diagram.
4. What is De-Multiplexer?
5. What is Digital Encoder? Explain 4- to -2 Bit Binary Encoder
with help of suitable diagram.
6. What is Priority Encoder? Explain 8- to -3 Priority Encoder
with the help of suitable diagram.
7. List and Explain Applications of Encoder.
8. Explain in detail Binary Decoder.
9. Implement the function F(A,B,C,D)=∑(1,3,5,8,12,13,16,18)
using 8-to-1 line MUX.
http://en.wikipedia.org/wiki/Multiplexer
7
SEQUENTIAL CIRCUITS
Unit structure
7.0 Objectives
7.1 What is sequential logic?
7.2 Filp-Flops
7.1.1 Rs Flip-Flop
7.1.2 J-K Flip-Flop
7.1.3 Master–Slave Flip-Flops
7.1.4 Toggle Flip-Flop (T Flip-Flop)
7.1.5 D Flip-Flop
7.1.6 D Latch
7.3 Questions
7.4 Further Reading
7.0 OBJECTIVES:
7.2 FILP-FLOPS
7.2.1: RS Flip-Flop
R S Q Q' Comment
0 0 Q Q' Hold state
0 1 1 0 Set
1 0 0 1 Reset
1 1 ? ? Avoid
The fact that this configuration follows the function table can
be explained. We will look at different entries of the function table,
one at a time.
The basic flip-flop is the same as that shown in Fig. (a). The
two NAND gates at the input have been used to couple the R and S
inputs to the flip-flop inputs under the control of the clock signal.
When the clock signal is HIGH, the two NAND gates are enabled
and the S and R inputs are passed on to flip-flop inputs with their
status complemented. The outputs can now change states as per
the status of R and S at the flip-flop inputs. For instance, when S =
1 and R = 0 it will be passed on as 0 and 1 respectively when the
clock is HIGH. When the clock is LOW, the two NAND gates
produce a ‘1’ at their outputs, irrespective of the S and R status.
This produces a logic ‘1’ at both inputs of the flip-flop, with
the result that there is no effect on the output states. Figure shows
the clocked R-S flip-flop with active LOW R and S inputs. The logic
implementation here is a modification of the basic R-S flip-flop in
Fig. The truth table of this flip-flop, as given in Fig., is self-
explanatory.
Level-Triggered and Edge-Triggered Flip-Flops
In a level-triggered flip-flop, the output responds to the data
present at the inputs during the time the clock pulse level is HIGH
(or LOW). That is, any changes at the input during the time the
clock is active (HIGH or LOW) are reflected at the output as per its
function table. The clocked R-S flip-flop described is a level-
triggered flip-flop that is active when the clock is HIGH.
The first flip-flop is called the master flip-flop and the second
is called the slave. The clock to the slave flip-flop is the
complement of the clock to the master flip-flop. When the clock
pulse is present, the master flip-flop is enabled while the slave flip-
flop is disabled. As a result, the master flip-flop can change state
while the slave flip-flop cannot. When the clock goes LOW, the
master flip-flop gets disabled while the slave flip-flop is enabled.
Therefore, the slave J-K flip-flop changes state as per the logic
states at its J and K inputs. The contents of the master flip-flop are
therefore transferred to the slave flip-flop, and the master flip-flop,
being disabled, can acquire new inputs without affecting the output.
As would be clear from the description above, a master– slave flip-
flop is a pulse-triggered flip-flop and not an edge-triggered one.
Figure (b) shows the truth table of a master–slave J-K flip-flop with
active LOW PRESET and CLEAR inputs and active HIGH J and K
inputs. The master–slave configuration has become obsolete. The
newer IC technologies such as 74LS, 74AS, 74ALS, 74HC and
74HCT do not have master–slave flip-flops in their series.
7.2.5: D Flip-Flop
A D flip-flop, also called a delay flip-flop, can be used to
provide temporary storage of one bit of information. Figure (a)
shows the circuit symbol and function table of a negative edge-
triggered D flip-flop. When the clock is active, the data bit (0 or 1)
present at the D input is transferred to the output. In the D flip-flop
of Fig., the data transfer from D input to Q output occurs on the
negative-going (HIGH-to-LOW) transition of the clock input. The D
input can acquire new status
J-K Flip-Flop as D Flip-Flop
Figure shows how a J-K flip-flop can be used as a D flip-flop.
When the D input is a logic ‘1’, the J and K inputs are a logic ‘1’ and
‘0’ respectively. According to the function table of the J-K flip-flop,
under these input conditions, the Q output will go to the logic ‘1’
state when clocked.
Also, when the D input is a logic ‘0’, the J and K inputs are a
logic ‘0’ and ‘1’ respectively. Again, according to the function table
of the J-K flip-flop, under these input conditions, the Q output will go
to the logic ‘0’ state when clocked. Thus, in both cases, the D input
is passed on to the output when the flip-flop is clocked.
7.2.6 D Latch
In a D latch, the output Q follows the D input as long as the
clock input (also called the ENABLE input) is HIGH or LOW,
depending upon the clock level to which it responds. When the
ENABLE input goes to the inactive level, the output holds on to the
logic state it was in just prior to the ENABLE input becoming
inactive during the entire time period the ENABLE input is inactive.
A D flip-flop should not be confused with a D latch. In a D
flip-flop, the data on the D input are transferred to the Q output on
the positive- or negative-going transition of the clock signal,
depending upon the flip-flop, and this logic state is held at the
output until we get the next effective clock transition. The difference
between the two is further illustrated in Figs (a) and (b) depicting
the functioning of a D latch and a D flip-flop respectively.
7.3 QUESTIONS:
Unit Structure
8.0 Objectives
8.1 Introduction
8.2 Counters
8.2.1: Ripple (Asynchronous) Counter
8.2.2: Binary Ripple Counter
8.2.3: Synchronous Counter
8.2.4: UP/DOWN Counters
8.2.5: Presettable Counters
8.3 Shift Registers
8.3.1: Serial-in to Parallel-out (SIPO) 4-bit Serial-in to
Parallel-out Shift Register
8.3.2: 4-bit Serial-in to Serial-out Shift Register
8.3.3: 4-bit Parallel-in to Serial-out Shift Register
8.3.4: 4-bit Parallel-in to Parallel-out Shift Register
8.3.5: Summary of Shift Registers
8.4 Questions
8.5 Further Reading
8.0 OBJECTIVES:
8.2 COUNTERS:
Modulus of a Counter
The modulus (MOD number) of a counter is the number of
different logic states it goes through before it comes back to the
initial state to repeat the count sequence. An n-bit counter that
counts through all its natural states and does not skip any of the
states has a modulus of 2n . We can see that such counters
have a modulus that is an integral power of 2, that is, 2, 4, 8, 16
and so on. These can be modified with the help of additional
combinational logic to get a modulus of less than 2n.
Let us assume that all the flip-flops are initially cleared to the
‘0’ state. On HIGH-to-LOW transition of the first clock pulse, Q0
goes from ‘0’ to ‘1’ owing to the toggling action. As the flip-flops
used are negative edge-triggered ones, the ‘0’ to ‘1’ transition of
Q0 does not trigger flip-flop FF1. FF1, along with FF2 and FF3,
remains in its ‘0’ state. So, on the occurrence of the first
negative-going clock transition, Q0 = 1, Q1 = 0, Q2 = 0 and
Q3 = 0.
2. Identify the flip-flops that will be in the logic HIGH state at the
count whose decimal equivalent is X. Choose a NAND gate with
the number of inputs equal to the number of flip-flops that would
be in the logic HIGH state. As an example, if the objective were to
design an MOD-12 counter, then, in the corresponding count, that
is, 1100, two flip-flops would be in the logic HIGH state. The
desired NAND gate would therefore be a two-input gate.
When the input goes LOW, one of the inputs of all NAND
gates, including the four NAND gates connected to the PRESET
inputs and the four NAND gates connected to the CLEAR inputs,
goes to the logic ‘1’ state. What reaches the PRESET inputs of
FF3, FF2, FF1 and FF0 is , , and respectively, and
what reaches their CLEAR inputs is P3 , P2 , P1 and P0
respectively. Since PRESET and CLEAR are active LOW inputs,
the counter flip-flops FF3, FF2, FF1 and FF0 will respectively be
loaded with P3 , P2 , P1 and P0 . For example, if P3= 1, the
PRESET and CLEAR inputs of FF3 will be in the ‘0’ and ‘1’ logic
states respectively. This implies that the Q3 output will go to the
logic ‘1’ state. Thus, FF3 has been loaded with P3 . Similarly, if P3
= 0, the PRESET and CLEAR inputs of flip-flop FF3 will be in the
‘1’ and ‘0’ states respectively. The flip-flop output (Q3 output) will
4
it is now at QA. When the third clock pulse arrives this logic "1"
value moves to the output of FFC (QC) and so on until the arrival of
the fifth clock pulse which sets all the outputs QA to QD back again
to logic level "0" because the input to FFA has remained constant
at logic level "0".
Note that after the fourth clock pulse has ended the 4-bits of
data (0-0-0-1) are stored in the register and will remain there
provided clocking of the register has stopped. In practice the input
data to the register may consist of various combinations of logic "1"
and "0". Commonly available SIPO IC's include the standard 8-bit
74LS164 or the 74LS594.
8
You may think what's the point of a SISO shift register if the
output data is exactly the same as the input data. Well this type
of Shift Register also acts as a temporary storage device or as a
time delay device for the data, with the amount of time delay being
controlled by the number of stages in the register, 4, 8, 16 etc or by
varying the application of the clock pulses. Commonly available IC's
include the 74HC595 8-bit Serial-in/Serial-out Shift Register all with
3-state outputs.
already present, but four clock pulses are required to unload the
data.
(PI) which determines what enters the flip-flop, the parallel output
(PO) and the sequencing clock signal (Clk).
8.4 QUESTIONS:
12
9
COMPUTER ORGANISATION
Unit Structure
9.0 Objectives
9.1 Computers
9.1.1: Functional Units
9.1.2: Control Unit (CU)
9.1.3: Memory System in a Computer
9.1.4: Secondary Storage
9.1.5: Input Output Devices
9.2 Questions
9.3 Further Reading
9.0 OBJECTIVES:
After completing this chapter, you will be able to:
Learn the basics about computers.
Understand the structure & working of computer.
Understand of different parts of computers and their work.
Learn about the memory organization within computers.
9.1 COMPUTERS:
All data and instructions are stored here before and after
processing.
Intermediate results of processing are also stored here.
4. Output: This is the process of producing results from the data for
getting useful information. Similarly the output produced by the
computer after processing must also be kept somewhere inside the
computer before being given to you in human readable form. Again
the output is also stored inside the computer for further processing.
9.1.4:SECONDARY STORAGE
1. You are now clear that the operating speed of primary memory
or main memory should be as fast as possible to cope up with
the CPU speed. These high-speed storage devices are very
expensive and hence the cost per bit of storage is also very
high. Again the storage capacity of the main memory is also
very limited. Often it is necessary to store hundreds of millions
of bytes of data for the CPU to process. Therefore additional
memory is required in all the computer systems. This memory is
called auxiliary memory or secondary storage.
18
2. Optical Disk:
3. Erasable Optical Disk: These are optical disks where data can
be written, erased and re-written. This also applies a laser beam
to write and re-write the data. These disks may be used as
alternatives to traditional disks. Erasable optical disks are based
on a technology known as magnetic optical (MO). To write a
data bit on to the erasable optical disk the MO drive's laser
beam heats a tiny, precisely defined point on the disk's surface
and magnetises it.
1 Input Devices
Input devices are necessary to convert our information or
data in to a form which can be understood by the computer. A good
input device should provide timely, accurate and useful data to the
main memory of the computer for processing followings are the
most useful input devices.
21
Fig: Keyboard
Fig: Mouse
Output Devices
9.2 QUESTIONS:
24
10
OPERATING SYSTEMS
Unit Structure
10.0 Objectives
10.1 Introduction
10.1.1: Types of OS
10.2 Windows Operating System
10.3 Linux Operating System
10.4 Some Linux Commands
10.5 Questions
10.6 Further Reading
10.0: OBJECTIVES
10.1 INTRODUCTION:
An operating system (OS) is a set of programs that
manage computer hardware resources and provide common
services for application software. The operating system is the most
important type of system software in a computer system. A user
cannot run an application program on the computer without an
operating system, unless the application program is self booting.
Time-sharing operating systems schedule tasks for efficient use of
the system and may also include accounting for cost allocation of
processor time, mass storage, printing, and other resources.
it. Operating systems are found on almost any device that contains
a computer — from cellular phones and video game
consoles to supercomputers and web servers.
Real-time
A real-time operating system is a multitasking operating
system that aims at executing real-time applications. Real-time
operating systems often use specialized scheduling algorithms so
that they can achieve a deterministic nature of behavior. The main
objective of real-time operating systems is their quick and
predictable response to events. They have an event-driven or time-
sharing design and often aspects of both. An event-driven system
switches between tasks based on their priorities or external events
while time-sharing operating systems switch tasks based on clock
interrupts.
Distributed
A distributed operating system manages a group of
independent computers and makes them appear to be a single
computer. The development of networked computers that could be
linked and communicate with each other gave rise to distributed
computing. Distributed computations are carried out on more than
one machine. When computers in a group work in cooperation, they
make a distributed system.
Embedded
Embedded operating systems are designed to be used in
embedded computer systems. They are designed to operate on
small machines like PDAs with less autonomy. They are able to
operate with a limited number of resources. They are very compact
and extremely efficient by design. Windows CE and Minix 3 are
some examples of embedded operating systems.
Starter
Home Premium
Professional
Ultimate
OEM
Enterprise
Where is Linux?
One of the most noted properties of Linux is where it can be
used. Windows and OS X are predominantly found on personal
computing devices such as desktop and laptop computers. Other
operating systems, such as Symbian, are found on small devices
such as phones and PDAs, while mainframes and supercomputers
found in major academic and corporate labs use specialized
operating systems such as AS/400 and the Cray OS.
Lenovo IdeaPad S9
HP Mini 1000
Motorola MotoRokr
EM35 Phone
Linux Distributions:
Low cost:
Stability:
Linux has high stability compared with other operating
systems. There is no need to reboot the Linux system to maintain
performance levels. Rarely it freeze up or slow down. It has a
continuous up-times of hundreds of days or more.
Performance:
Linux provides high performance on various networks. It has
the ability to handle large numbers of users simultaneously.
Networking:
Linux provides a strong support for network functionality;
client and server systems can be easily set up on any computer
running Linux. It can perform tasks like network backup more faster
than other operating systems.
Flexibility:
Linux is very flexible. Linux can be used for high
performance server applications, desktop applications, and
embedded systems. You can install only the needed components
for a particular use. You can also restrict the use of specific
computers.
Compatibility:
It runs all common Unix software packages and can process
all common file formats.
Wider Choice:
Linux uses its resources well enough even when the hard disk is
almost full.
Multitasking:
Linux is a multitasking operating system. It can handle many
things at the same time.
Security:
Linux is one of the most secure operating systems. File
ownership and permissions make linux more secure.
Open source:
Today, Linux is widely used for both basic home and office
uses. It is the main operating system used for high performance
business and in web servers. Linux has made a high impact in this
world.
5. Transparent vs Proprietary
7. Customizable
8. Flexibility
9. Mobility
Windows allows programs to store user information (files
and settings) anywhere. This makes it impossibly hard to backup
user data files and settings and to switch to a new computer. In
contrast, Linux stores all user data in the home directory making it
much easier to migrate from an old computer to a new one. If home
directories are segregated in their own partition, you can even
upgrade from one version of Linux to another without having to
migrate user data and settings.
Usage
Options
cd - change directories
will show you the full path to the directory you are currently in. This
is very handy to use, especially when performing some of the
other commands on this page
rm -r
Usage
Options
-c, changes like verbose but report only when a change is made
-from=CURRENT_OWNER:CURRENT_GROUP
change the owner and/or group of each file only if its current
owner and/or group match those specified here. Either may be
omitted, in which case a match is not required for the omitted
attribute.
Usage
cp - Copy files
cp myfile yourfile
Copy the files "myfile" to the file "yourfile" in the current working
directory. This command will create the file "yourfile" if it doesn't
exist. It will normally overwrite it without warning if it exists.
cp -i myfile yourfile
With the "-i" option, if the file "yourfile" exists, you will be prompted
before it is overwritten.
cp -i /data/myfile
Copy all files from the directory "srcdir" to the directory "destdir"
preserving links (-poption), file attributes (-p option), and copy
recursively (-r option). With these options, a directory and all it
contents can be copied to another dir
ln -s test symlink
39
Creates a symbolic link named symlink that points to the file test
Typing "ls -i test symlink" will show the two files are different with
different inodes. Typing "ls -l test symlink" will show that symlink
points to the file test.
slocate -u
cat - Sends file contents to standard output. This is a way to list the
contents of short files to the screen. It works well with piping.
bg
bg jobs Places the current job (or, by using the alternative form, the
specified jobs) in the background, suspending its execution so that
a new user prompt appears immediately. Use the jobs command to
discover the identities of background jobs.
cal month year - Prints a calendar for the specified month of the
specified year.
fg
40
fg jobs - Brings the current job (or the specified jobs) to the
foreground.
Searches the specified path for files with names matching the
specified pattern (usually enclosed in single quotes) and prints their
names. The findcommand has many other arguments and
functions; see the online documentation.
ftp hostname
head files - Prints the first several lines of each specified file.
kill process_ids
kill -l
killall program
man title
shutdown minutes
shutdown -r minutes
sort files - Sorts the specified files. The command has many useful
arguments; see the online documentation.
split file - Splits a file into several smaller files. The command has
many arguments; see the online documentation
10.5 QUESTIONS: