01 01 Computer Logical Organization
01 01 Computer Logical Organization
1
1. Computer Logical Organization : Introduction
In the modern world of electronics, the term Digital is generally associated
with a computer because the term Digital is derived from the way computers
perform operation, by counting digits.
For many years, the application of digital electronics was only in the computer
system.
But now-a-days, digital electronics is used in many other applications.
Military system
Television
Communication system
Medical equipment
Radar
Navigation
1.1 Signal
Signal can be defined as a physical quantity, which contains
some information.
1) Analog Signal
2) Digital Signal
1.1.1 Analog Signal
An analog signal is defined as the signal having continuous
values.
Pressure
Distance
Sound
Voltage
Current
Power
1.1.1 Graphical representation of Analog Signal (Temperature)
The circuits that process the analog signals are called as analog circuits or
system.
Amplifiers
Television receiver
i. Less accuracy
ii. Less versatility (No capability to carry multiple tasks)
iii. More noise effect
iv. More distortion (that occurs when the output signal
does not have a linear relation to the input signal.)
Octal Signal
Hexadecimal Signal
1.1.2 Graphical representation of the Digital Signal (Binary)
The circuits that process the digital signals are called digital
systems or digital circuits.
Flip-flop
Counters
Microprocessors
1.1.2 Advantage of Digital Systems
i. More accuracy
2. Analog signal has a continuous nature. Digital signal has a discrete nature.
3.
Analog signal is generated by Digital signal is generated by A to D
transducers and signal generators. converter.
4.
Example of analog signal − sine wave, Example of digital signal − binary
triangular waves. signal.
Note :
• A transducer is a device that converts one form of energy to another form of energy.
• Energy types include/(but are not limited to) electrical, mechanical, electromagnetic
(including light), chemical, acoustic, and thermal energy.
1.2 Binary Codes
In the coding, when numbers, letters or words are represented
by a specific group of symbols, it is said that the number, letter
or word is being encoded.
The group of symbols is called as a code.
1) Weighted Codes
2) Non-Weighted Codes
3) Binary Coded Decimal Code
4) Alphanumeric Codes
5) Error Detecting Codes
6) Error Correcting Codes
1.2.2.1 Weighted Codes
Weighted binary codes are those binary codes which obey the
positional weight principle.
i) Excess-3 code
The Excess-3 code is also called as XS-3 code.
The Excess-3 code words are derived from the 8421 BCD code
words adding (0011)2 or (3)10 to each code word in 8421.
1.2.2.2 Non-Weighted Codes : Excess-3 code
The excess-3 codes are obtained as follows −
Example:
1.2.2.2 Non-Weighted Codes : Gray Code
ii) Gray Code (or Reflected Binary code)
It is the non-weighted code and it is not arithmetic codes.
It has a very special feature that, only one bit will change each
time the decimal number is incremented as shown in fig.
As only one bit changes at a time, the gray code is called as a unit
distance code.
BCD to Excess-3
Excess-3 to BCD
1.2.2.3.1 Codes Conversion : Binary to BCD Conversion
Steps
Step 1 -- Convert the binary number to decimal.
Step 2 -- Convert decimal number to BCD.
Step 3 11101 29
2 10
Step 2 29 00101001
10 BCD
Result
(11101) = (00101001)
2 BCD
1.2.2.3.1 Codes Conversion : BCD to Binary Conversion
Steps
Step 2 (00101001) 2 9
BCD 10 10
Step 3 (00101001) 29
BCD 10
Result
(00101001) = (11101)2
BCD
1.2.2.4 Alphanumeric codes
A binary digit or bit can represent only two symbols as it has
only two states '0' or '1'.
But this is not enough for communication between two computers
because there we need many more symbols for communication.
iii. UNICODE
In 1967 this code was first published and since then it is being
modified and updated.
00C0 À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß Latin
000E à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ
0100 Ā ā Ă ă Ą ą Ć ć Ĉ ĉ Ċ ċ Č č Ď ď Đ đ Ē ē Ĕ ĕ Ė ė Ę ę Ě ě Ĝ ĝ Ğ ğ
0120 Ġ ġ Ģ ģ Ĥ ĥ Ħ ħ Ĩ ĩ Ī ī Ĭ ĭ Į į İ ı IJ ij Ĵ ĵ Ķ ķ ĸ Ĺ ĺ Ļ ļ Ľ ľ Ŀ
0140 ŀ Ł ł Ń ń Ņ ņ Ň ň ʼn Ŋ ŋ Ō ō Ŏ ŏ Ő ő Œ œ Ŕ ŕ Ŗ ŗ Ř ř Ś ś Ŝ ŝ Ş ş
0160 Š š Ţ ţ Ť ť Ŧ ŧ Ũ ũ Ū ū Ŭ ŭ Ů ů Ű ű Ų ų Ŵ ŵ Ŷ ŷ Ÿ Ź ź Ż ż Ž ž ſ
0180 ƀ Ɓ Ƃ ƃ Ƅ ƅ Ɔ Ƈ ƈ Ɖ Ɗ Ƌ ƌ ƍ Ǝ Ə Ɛ Ƒ ƒ Ɠ Ɣ ƕ Ɩ Ɨ Ƙ ƙ ƚ ƛ Ɯ Ɲ ƞ Ɵ
01A0 Ơ ơ Ƣ ƣ Ƥ ƥ Ʀ Ƨ ƨ Ʃ ƪ ƫ Ƭ ƭ Ʈ Ư ư Ʊ Ʋ Ƴ ƴ Ƶ ƶ Ʒ Ƹ ƹ ƺ ƻ Ƽ ƽ ƾ ƿ
01C0 ǀ ǁ ǂ ǃ DŽ Dž dž LJ Lj lj NJ Nj nj Ǎ ǎ Ǐ ǐ Ǒ ǒ Ǔ ǔ Ǖ ǖ Ǘ ǘ Ǚ ǚ Ǜ ǜ ǝ Ǟ ǟ
100E Ǡ ǡ Ǣ ǣ Ǥ ǥ Ǧ ǧ Ǩ ǩ Ǫ ǫ Ǭ ǭ Ǯ ǯ ǰ DZ Dz dz Ǵ ǵ Ƕ Ƿ Ǹ ǹ Ǻ ǻ Ǽ ǽ Ǿ ǿ
200 Ȁ ȁ Ȃ ȃ Ȅ ȅ Ȇ ȇ Ȉ ȉ Ȋ ȋ Ȍ ȍ Ȏ ȏ Ȑ ȑ Ȓ ȓ Ȕ ȕ Ȗ ȗ Ș ș Ț ț Ȝ ȝ Ȟ ȟ
0220 Ƞ ȡ Ȣ ȣ Ȥ ȥ Ȧ ȧ Ȩ ȩ Ȫ ȫ Ȭ ȭ Ȯ ȯ Ȱ ȱ Ȳ ȳ ȴ ȵ ȶ ȷ ȸ ȹ Ⱥ Ȼ ȼ Ƚ Ⱦ ȿ
0240 ɀ Ɂ ɂ Ƀ Ʉ Ʌ Ɇ ɇ Ɉ ɉ Ɋ ɋ Ɍ ɍ Ɏ ɏ ɐ ɑ ɒ ɓ ɔ ɕ ɖ ɗ ɘ ə ɚ ɛ ɜ ɝ ɞ ɟ
0260 ɠ ɡ ɢ ɣ ɤ ɥ ɦ ɧ ɨ ɩ ɪ ɫ ɬ ɭ ɮ ɯ ɰ ɱ ɲ ɳ ɴ ɵ ɶ ɷ ɸ ɹ ɺ ɻ ɼ ɽ ɾ ɿ
0280 ʀ ʁ ʂ ʃ ʄ ʅ ʆ ʇ ʈ ʉ ʊ ʋ ʌ ʍ ʎ ʏ ʐ ʑ ʒ ʓ ʔ ʕ ʖ ʗ ʘ ʙ ʚ ʛ ʜ ʝ ʞ ʟ
02A0 ʠ ʡ ʢ ʣ ʤ ʥ ʦ ʧ ʨ ʩ ʪ ʫ ʬ ʭ ʮ ʯ ʰ ʱ ʲ ʳ ʴ ʵ ʶ ʷ ʸ ʹ ʺ ʻ ʼ ʽ ʾ ʿ
02C0 ˀ ˁ ˂ ˃ ˄ ˅ ˆ ˇ ˈ ˉ ˊ ˋ ˌ ˍ ˎ ˏ ː ˑ ˒ ˓ ˔ ˕ ˖ ˗ ˘ ˙ ˚ ˛ ˜ ˝ ˞ ˟
200E ˠ ˡ ˢ ˣ ˤ ˥ ˦ ˧ ˨ ˩ ˪ ˫ ˬ ˭ ˮ ˯ ˰ ˱ ˲ ˳ ˴ ˵ ˶ ˷ ˸ ˹ ˺ ˻ ˼ ˽ ˾ ˿
0300 ̀ ́ ̂ ̃ ̄ ̅ ̆ ̇ ̈ ̉ ̊ ̋ ̌ ̍ ̎ ̏ ̐ ̑ ̒ ̓ ̔ ̕ ̖ ̗ ̘ ̙ ̚ ̛ ̜ ̝ ̞ ̟
0320 ̠ ̡ ̢ ̣ ̤ ̥ ̦ ̧ ̨ ̩ ̪ ̫ ̬ ̭ ̮ ̯ ̰ ̱ ̲ ̳ ̴ ̵ ̶ ̷ ̸ ̹ ̺ ̻ ̼ ̽ ̾ ̿
0340 ̀ ́ ͂ ̓ ̈́ ͅ ͆ ͇ ͈ ͉ ͊ ͋ ͌ ͍ ͎ ͏ ͐ ͑ ͒ ͓ ͔ ͕ ͖ ͗ ͘ ͙ ͚ ͛ ͜ ͝ ͞ ͟
0360 ͠ ͡ ͢ ͣ ͤ ͥ ͦ ͧ ͨ ͩ ͪ ͫ ͬ ͭ ͮ ͯ Ͱ ͱ Ͳ ͳ ʹ ͵ Ͷ ͷ ͺ ͻ ͼ ͽ ; Ϳ
1.2.2.4 UNICODE : Malayalam (Unicode block)
Malayalam is a Unicode block containing characters
for the Malayalam language.
0 1 2 3 4 5 6 7 8 9 A B C D E F
U+0D0x ഀ ഁ ം ഃ അ ആ ഇ ഈ ഉ ഊ ഋ ഌ എ ഏ
U+0D1x ഐ ഒ ഓ ഔ ക ഖ ഗ ഘ ങ ച ഛ ജ ഝ ഞ ട
U+0D2x ഠ ഡ ഢ ണ ത ഥ ദ ധ ന ഩ പ ഫ ബ ഭ മ യ
U+0D3x ര റ ല ള ഴ വ ശ ഷ സ ഹ ഺ ഻ ഼ ഽ ാ ി
U+0D4x ീ ു ൂ ൃ ൄ െ േ ൈ ൊ ോ ൌ ് ൎ ൏
U+0D5x ൔ ൕ ൖ ൗ ൘ ൙ ൚ ൛ ൜ ൝൞ ൟ
U+0D6x ൠ ൡ ൢ ൣ ൦ ൧ ൨ ൩ ൪ ൫ ൬ ൭ ൮ ൯
U+0D7x ൰ ൱ ൲ ൳ ൴ ൵ ൶ ൷ ൸൹ ൺ ൻ ർ ൽ ൾ ൿ
1.2.2.4 Alphanumeric codes : Baudot-Murray code
ITA2 Standard:
Normal text consists of over 50 different characters (26 letters, 10 numbers,
10 punctuation marks and some control codes).
In the ITA2 standard, 5 bits are used to represent a character, which means that we can
create only 32 different codes (25).
As this would not be sufficient to create normal text, most codes are used twice (i.e. have
two different meanings) and special codes are used to 'shift' between the two code sets
known as Letters (LTRS) and Figures (FIGS).
The table below shows the interpretation of the commonly used ITA2
standard.
Although this code has officially been superseded by ASCII, it is still in use on some old
telex networks and by Radio Amateurs.
Some of the cipher machines described on this website, use 5-bit digital telegraphy and
many of these (if they support the Latin character set) follow the ITA2 standard.
1.2.2.4 Alphanumeric codes : Baudot-Murray code
Normally, a paper tape would start with two LTRS characters, to ensure that
the teletype is in Letters-mode. By convention, the holes (bits) in the tape
are called channels or tracks and the tape is shown as it would run through
the reader away from you.
1.2.2.4 Alphanumeric codes : Baudot-Murray code
Ltr Letters (A-Z) Ltr Fig Hex Bin
Fig Figures (Numbers and punctuation 0 NUL 00 000·00 NULL, Nothing (blank tape)
marks) 1 E 3 01 000·01
2 LF 02 000·10 Line Feed (new line)
Ctrl Control characters 3 A - 03 000·11
Hex Hexadecimal code 4 SP 04 001·00 Space
5 S ' 05 001·01
Bin 1 Binary, Positions of the holes in the paper 6 I 8 06 001·10
tape 7 U 7 07 001·11
8 CR 08 010·00 Cariage Return
9 D ENC 09 010·01 Enquiry (Who are you?, WRU)
10 R 4 0A 010·10
11 J BEL 0B 010·11 BELL (ring bell at the other end)
12 N , 0C 011·00
13 F ! 0D 011·01
14 C : 0E 011·10
15 K ( 0F 011·11
16 T 5 10 100·00
17 Z + 11 100·01
18 L ) 12 100·10
19 W 2 13 100·11
20 H $ 14 101·00 Currency symbol (can also be £)
21 Y 6 15 101·01
22 P 0 16 101·10
23 Q 1 17 101·11
24 O 9 18 110·00
25 B ? 19 110·01
26 G & 1A 110·10 Can also be @
27 FIGS 1B 110·11 Figures (Shift on)
28 M . 1C 111·00
29 X / 1D 111·01
30 V ; 1E 111·10
31 LTRS 1F 11·111 Letters (Shift off)
1.2.2.5 Error Codes
What is Error?
Error is a condition when the output information does not match with the
input information.
During transmission, digital signals suffer from noise that can introduce
errors in the binary bits travelling from one system to other.
Error-Correcting codes:
Along with error-detecting code, we can also pass some data to figure out the
original message from the corrupt message that we received.
This type of code is called an error-correcting code.
Error-correcting codes also deploy the same strategy as error-detecting codes but
additionally, such codes also detect the exact location of the corrupt bit.
The data bits along with the parity bits form a code word.
1.2.2.5 Error Codes …
Parity Checking of Error Detection:
It is the simplest technique for detecting and correcting errors.
The MSB of an 8-bits word is used as the parity bit and the remaining 7 bits
are used as data or message bits.
The parity of 8-bits transmitted word can be either even parity or odd
parity.
Even parity : Even parity means the number of 1's in the given word including the
parity bit should be even (2,4,6,....).
Odd parity : Odd parity means the number of 1's in the given word including the
parity bit should be odd (1,3,5,....).
1.2.2.5 Error Codes …
Use of Parity Bit:
The parity bit can be set to 0 and 1 depending on the type of the parity
required.
For even parity, this bit is set to 1 or 0 such that the no. of "1 bits" in the
entire word is even.
Shown in fig. (a).
For odd parity, this bit is set to 1 or 0 such that the no. of "1 bits" in the
entire word is odd.
Shown in fig. (b).
1.2.2.5 Error Codes …
How Does Error Detection Take Place?
Parity checking at the receiver can detect the presence of an error if the
parity of the receiver signal is different from the expected parity.
That means, if it is known that the parity of the transmitted signal is always
going to be "even" and if the received signal has an odd parity, then the receiver
can conclude that the received signal is not correct.
If an error is detected, then the receiver will ignore the received byte and
request for retransmission of the same byte to the transmitter.
1.3 Boolean Algebra
Boolean Algebra is used to analyze and simplify the digital
(logic) circuits.
1) Commutative law
2) Associative law
3) Distributive law
4) AND law
5) OR law
6) INVERSION law
1.3.2 Boolean Laws …
1) Commutative law
Any binary operation which satisfies the following expression is referred to
as commutative operation.
Commutative law states that changing the sequence of the variables does not
have any effect on the output of a logic circuit.
2) Associative law
This law states that the order in which the logic operations are performed is
irrelevant as their effect is the same.
1.3.2 Boolean Laws …
3) Distributive law
Distributive law states the following condition.
4) AND law
These laws use the AND operation.
Therefore they are called as AND laws.
5) OR law
These laws use the OR operation.
Therefore they are called as OR laws.
6) INVERSION law
This law uses the NOT operation.
The inversion law states that double inversion of a variable results in the original variable
itself.
1.3.3 Boolean Expression ⁄ Function
Boolean algebra deals with binary variables and logic operation.
1) Karnaugh-map or K-map
The Boolean theorems and the De-Morgan's theorems are useful in
manipulating the logic expression.
The number of logic gates required for the realization of a logical expression
should be reduced to a minimum possible value by K-map method.
Theorem 1:
The left hand side (LHS) of this theorem represents a NAND gate with inputs
A and B, whereas the right hand side (RHS) of the theorem represents an OR
gate with inverted inputs.
The LHS of this theorem represents a NOR gate with inputs A and B, whereas
the RHS represents an AND gate with inverted inputs.