XI - Unit 1 - Computer System Organization 2023
XI - Unit 1 - Computer System Organization 2023
Primary Memory
Secondary memory
Cache Memory
L1 cache:
It is small.
It is built inside the CPU.
It is fast as compared to L2 cache
L2 cache:
It is large.
It is mounted on the motherboard. (external to CPU)
It is slower.
Types of software
System software
(operating systems, system utilities, device drivers)
Application software
OS user interface
TYPES OF SOFTWARE
APPLICATION SOFTWARE
UTILITY SOFTWARE
SYSTEM SOFTWARE
Operating System
OS User Interface
Command-based Interface
Command-based interface requires a user to
enter the commands to perform different tasks like
creating, opening, editing or deleting a file, etc.
• The primary input device used here is the
keyboard.
• Command based interface is often less interactive
• It allows a user to run a single program at a time.
• Examples : MS-DOS and Unix.
Graphical User Interface
Voice-based Interface
NOT
AND
OR
NAND
NOR
XOR
truth table
De Morgan’s laws and logic circuits
Boolean Algebra
Algebra dealing with bool values i.e variables or
constants with value 1 or 0.
OPERATORS
And : binary operator represented by '.‘ gives result 1
if both operands are 1 otherwise 0
1.1=1 1. 0 = 0 0.0=0
Or : binary operator represented by '+‘gives result 0
if both operands are 0 otherwise 1
1+1=1 1+0=0 0+0=0
Not : unary operator represented as ‘ or ¯
complements the operand
1’ = 0 0’ = 1
Truth Table
A truth table is a chart of 1's and 0's, arranged to
indicate the results of all possible input options.
1 variable 3 variable a b c
a 0 0 0
0 a b 0 0 1
1 0 0 0 1 0
2 variable 0 1 0 1 1
1 0 1 0 0
1 0 1
1 1
1 1 0
1 1 1
Implementation of operators on Combinations
0 1 0 0 0 0 0 0
1 0 0 1 0 0 1 1
1 0 0 1 0 1
1 1 1 1 1 1
5 6 0 8 = 80 + 6 + 0 + 0.03125
= 86.0312510
CONVERSION FROM DECIMAL TO ANY TYPE
REPETED DIVISION METHOD
-Divide the decimal value (before .) with the required
base continuously till a digit less than the base is
encountered
-Store the remainder of each division separately.
-Write the remainders in reverse order
DECIMAL TO BINARY
38.2510 = (100110 . 01 )2 2 38 0
2 19 1
.25
x 2 2 9 1
0 0.50 2 4 0
x 2
1 2 2 0
1.00
1
DECIMALPOINT TO BINARY (after .)
DECIMAL TO HEXADECIMAL
423.0312510 = ( 1A7 . 08 )16
.13125
16 423 7 x 16
0 0.5
16 26 10 A x 16
1 8 8.0
powers of 2 method
27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1
1 0 0 0 0 0 0 0 1
2 0 0 0 0 0 0 1 0
3 0 0 0 0 0 0 1 1
4 0 0 0 0 0 1 0 0
27 0 0 0 1 1 0 1 1
99 0 1 1 0 0 0 1 1
BINARY TO OCTAL
100111010.01012= ( 472 . 24 )8
1 0 0 1 1 1 0 1 0 . 0 1 0 1 0 0
4 7 2 2 4
BINARY TO HEXADECIMAL
1110101110.0101112= ( 3AE.5C )16
0 01 1 1 0 1 0 1 1 1 0 . 0 1 0 1 1 10 0
3 A E 5 C
OCTAL TO BINARY
5431.138= (101100011001 . 001011 )2
5 4 3 1 . 1 3
101 100 011 001 001 011
OCTAL TO HEXADECIMAL
5431.138= ( B19 . 2C )16
1 0 1 1 0 0 01 1 0 0 1.0 0 1 0 1 100
B 1 9 2 C
11 12
HEXADECIMAL TO BINARY
9F2. 5C16= ( 100111110010 . 01011100 )2
9 F 2 . 5 C
1001 1111 0010 0101 1100
HEXADECIMAL TO OCTAL
9F2. 5C16= ( 476 . 27 )8
100111110010 . 01011100
27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1
OCTAL SYSTEM ----HEXADECIMAL SYSTEM----
4 2 1 | 8 4 2 1 | 8 4 2 1
0 0 0 0 | 0 0 0 0 8 1 0 0 0
1 0 0 1 | 0 0 0 1 9 1 0 0 1
2 0 1 0 | 0 0 1 0 A 1 0 1 0
3 0 1 1 | 0 0 1 1 B 1 0 1 1
4 1 0 0 | 0 1 0 0 C 1 1 0 0
5 1 0 1 | 0 1 0 1 D 1 1 0 1
6 1 1 0 | 0 1 1 0 E 1 1 1 0
7 1 1 1 | 0 1 1 1 F 1 1 1 1
Encoding Schemes
ASCII
ISCII
UNICODE (UTF8,UTF32)
The mechanism of converting data into an equivalent
cipher using specific code is called encoding.
Alphanumeric code
American Standard For Information Interchange
Consists of 7 bits i.e capable of coding 27 = 128
characters
Represents all standard keyboard characters as
well as control functions.
8 bit ASCII( extended version of 7 bit ASCII) can
represent 256 characters.
ISCII
Developed by C-DAC
characters
UTF-8 UTF-16
UTF-24 UTF-32
UNICODE
0 1 0 0 0 0 0 1
1 0
Control Bit Value Bit
1 0 0 1 1 0 0 0
UTF-32 (4 Octet) Representation:
It uses 32 bits (4 Octets) to encode
characters.
1 1 1 1 0 1 0
Control Bit Value Bit Control Bit Value Bit
1 0 1 0
Control Bit Value Bit Control Bit Value Bit