Chapter 1 Computer Organization
Chapter 1 Computer Organization
Computer System
• A computer is basically an electronic machine meant for computing. It can be programmed
to take data as input, process it and generate information as output .
● Computer system comes in various forms and sizes such as Desktop, Laptop, Tablet,
Mainframe, Super Computer, Smartphone etc.
• A computer system is ideally combination of Hardware and Software .
Image 2 Given below represents the basic structure of computer system. the directed lines
represent the flow of data and signal between the components.
1. Input Device
2. Output Device
3. CPU
4. Memory
5. Storage Devices
Input Device
● The devices used for input data into computer system are termed as Input device .
• Input devices converts the input data into digital signal that is understood by computer
system
• Examples: Keyboard, mouse, scanner, touch screen, microphone etc.
● Input data is temporarily stored in primary memory (RAM)
Output devices
• The devices which are responsible for displaying or producing information are termed as
output device.
• Output devices converts digital signals into human understandable form.
• Output data is temporarily stored in primary memory that can be stored later permanently
in secondary memory.
CPU
• CPU stands for Central Processing Unit referred as brain of computer
• It is responsible for all the processing done and
• It performs arithmetic and logical operation on date as per the instructions given by the
program it fetches from memory
• CPU has three main components
Registers: there are part of CPU and used to store date and instructions during
ALU: stands for arithmetic and logical unit that performs all the arithmetic and logical
Computer memory as it name implies, used to store data and instructions used for processing .
Types of memory
Primary memory
• It store data and programs temporarily during operation .
• CPU can read and write data directly to and from primary memory.
• It is volatile in nature as its content gets deleted as soon as power supply is turned off
• It is of two types
RAM:
Stands for Random Access Memory, used to store data temporarily during operation being
⮚
performed
It is volatile in nature
⮚
It is considered as main memory of computer system
⮚
The required program and data of any application while being started takes space in RAM.
⮚
It is faster than secondary memory
⮚
ROM
Stands for Read Only Memory, which stores startup programs that loads operating system
⮚
into primary memory.
It is non-volatile in nature
⮚
Content of ROM cannot be modified.
⮚
Catch Memory
It's another type of Primary Memory which is considered as very high speed meory.
⮚
It is placed between CPU and Primary Memory (RAM) referred an catche
⮚
The main purpose of Catch memory is to store the copies of frequently access date of
⮚
primary memory to reduce the time consumed to access that data.
Secondary Memory
• It stores data and programs permanently that can be used in future also .
• It is non-volatile in nature.
Unit of Memory
• Byte is unit of memory.
Software
● Software refers to a set of programs that instruct hardware what to do and how to do .
● It comprises of instructions and data to be processed using computer hardware .
● Each software is written for some computational purpose.
● Softwares are intangible.
Need of software
Types of software
Operating System
The software that acts as an interface between user and computer hardware .
● It is a System Software
● Every computer system must have at least one operating system installed.
● Windows, Linux, Solaris, MAC OS, Ubuntu, MS DOS are some of the examples of Operating
System
● It helps in performing the core functionalities like accepting input from various input
devices, directing the output to the display, managing the files and directories .
● communicating with hardware, and installing/uninstalling peripheral devices.
System Utilities
● System Utilities are Softwares used to maintain computer systems to work more smoothly.
efficiently and effectively.
● It helps in improving the performance of computer
● It helps in providing security from virus
● It helps in managing and freeing disk space and providing data backups
● Disk defragmentation, formatting, system restore are some utilities inbuilt in Operating
System.
Device Driver
● Device Drivers are programs that help functioning a hardware device with computer
system
● It acts as an interface between the device and operating system.
● Overall control interpretation, operation and management of a device at the hardware
level is handled by device drivers.
Programming Tools
Programming tools refers to the tools used to write instructions, convert high level to machine
language and develop softwares for computer systems.
• Language translators
• Program development tools
Programming Languages:
• Programming languages are used to write instructions which are applied by a computer system
to get desired results.
• Programming languages are developed to simplify coding for computers.
• Assembly language
Machine language
● It uses binary code i.e 0s and 1s to write instructions for computer systems.
● It is directly understood by computer system and hence no intermediate software is
required to execute them
● It is difficult to use machine language as one has to remember all operational codes and
machine addresses
● It is difficult to find errors in the code written in machine language
Assembly language
• Assembly language uses English like words to write instructions for computer systems.
• It is platform dependent means code written for a particular CPU cannot be used for another
CPU.
• Translators (compilers) are needed to translate high level language into machine language.
Language Translators
● Language translators are used to convert instructions written in assembly or high level
language to machine language.
● The code converted into machine language is called object code.
● Different translators for different languages are used for conversion .
Assembler
● The translator used to convert the code written in assembly language to machine language
is called assembler.
● Each assembler can understand a specific microprocessor instruction set only and hence
the machine code is not portable.
Compiler
● Compiler converts source code written in high level language into machine code .
● If the code does not follow all syntactic rules of the language, the compiler generates
errors.
● Once source code is translated successfully, the compiler is not needed further .
Interpreter
● Interpreter converts source code written in high level language into machine code line
● Interpreter is always needed whenever a source code is to be executed .
Program development tools are also referred as integrated Development Environment which
Application Software
● Software which is developed for a particular type of application such as drawing .
presentation, documentation, calculation etc.
● It is used by user to accomplish their task
● It always runs on the top of the system software.
Customized software
● These are application software designed to meet the requirements of individuals or
organizations.
● Examples: school management software, hospital management, inventory management
payroll etc.
Operating system
● The software that acts as an interface between user and computer hardware .
● It is a System Software.
● Every computer system must have at least one operating system installed.
● Windows, Linux, Solaris, MAC OS, Ubuntu, MS DOS are some of the examples of Operating
System
● It helps in performing the core functionalities like accepting input from various input
devices, directing the output to the display, managing the files and directories communicating
with hardware, and installing/uninstalling peripheral devices.
Establishes communication between different peripheral devices like printer, mouse keyboard,
monitor etc. The Operating System uses special programs called drivers to identify these devices
and their properties, to interact with them.
Resource Management
Here resource management refers to managing allocation and priority of different resources such
as memory. CPU time, files, Input/output devices etc., to the various processes to get an optimum
performance from the system. All these are discussed below:
Process Management
it refers to managing, controlling and scheduling different operations being executed in the CPU . It
decides which process gets the processor and for how long.
Memory Management
it refers to dynamically allocating memory to the process to be executed and released when not
needed.
File Management
It refers to managing all the files and folders in secondary memory. Creating, deleting, moving.
Copying or renaming are some common tasks performed on files.
OS User Interface
OS User Interface refers to a medium through which a user can interact with an Operating System .
BOOLEAN LOGIC
Boolean Logic
Boolean Logic is a concept that involves binary variables and operations. It focuses on the values
true and false (1 and 0). It was developed by the English Mathematician and logician George Boole.
Boolean Algebra comprises of following:
1. Boolean Expression
2. Boolean Variable
Boolean Variable
A boolean variable is a variable that holds boolean values True/ False or 1/0.
Boolean Expression
Boolean Operators
AND operator - It evaluates to True(1) if all inputs are True(1), otherwise False(0). It is represented
by the dot operator (.)
NOT operator - It evaluates to True(1) when the condition is False, and returns False(0) when the
condition is True(1).
Truth Table
A truth table is a representation of all possible combinations of the input variables and the
corresponding output values.
The number of rows in a truth table are 2n, where n is no. of input variables.
Logic Gates
A logic gate is a device that performs a Boolean Function. One or more inputs in the form of 1/0
are provided to get the specific output governed by a logic. Examples of Logic Gates are: AND, OR,
NOT, NOR, NAND and XOR.
NAND and NOR are called Universal Gates, as they can implement any Boolean expression.
Logic Circuits
A logic circuit is an electronic circuit which performs logical operations on the input boolean
variables, and transforms them into the output using a combination of Logic Gates .
There are many possible ways to represent numbers. A number system provides a consistent and
unique method to represent the numbers.
A positional number system is one way of writing numbers. It has unique symbols for 0 through (b
– 1 ),
where b is the base (also known as radix) of the system. These symbols are called digits.
1. Binary - base 2
2. Octal - base 8
3. Decimal - base 10
4. Hexadecimal - base 16
A decimal number uses base-10 for representing numbers. The numbers 0, 1, 2, 3, 4, 5, 6, 7, 8 and
9 are the digits present in the system.
The binary number system uses only two symbols, 0 and 1. Each numeral is known as a binary digit
or a
bit. It is also known as the base-2 numeral system, where the positional digits are powers of 2.
Octal system, or the base-8 system uses 8 unique symbols, 0, 1, 2, 3, 4, 5, 6, and 7. The place
values in the octal system are powers of 8. We can use 3-bit binary numbers to represent the octal
digits, since 23 = 8.
For example, an octal number (532.67)8 can be represented in the decimal number system as
(532.67)8 = 5 x 82 + 3 x 81 + 2 x 80 + 6 x 8-1 + 7 x 8-2
The hexadecimal number system uses 16 unique symbols, 0-9 and A-F for representation of
numbers. The place values in the hexadecimal system are powers of 16.
Number System Conversions
= (100111001110.001101)
Octal
Number System to Hexadecimal Number System
Encoding is defined as the process to convert data from one form to another . Computers only
understand binary language. There is a need to convert popularly used languages by humans into
machine understandable format. Textual characters (letters, numbers and symbols) are assigned
unique numerical codes. Some of the popular encoding schemes are ASCII, ISCII and Unicode .
ASCII
● ASCII stands for American Standard Code for Information Interchange.
● It was developed in the United States of America by American Standards Association (ASA).
● A maximum of 128 characters may be encoded. Out of these 128 characters, only 95 are
printable
including the digits 0-9, lowercase and uppercase characters a-z A-Z and punctuation marks. The
ISCII
● ISCII stands for Indian Script Code for Information Interchange (ISCII).
● ISCII is an extended version of the ASCII code and uses 8 bits for encoding .
● Some of the supported scripts are Devanagari (Hindi, Marathi, Sanskrit, Konkani), Gujarati,
Unicode
● Unicode Standard is developed and managed by the Unicode Consortium, which is a non -profit
● UTF-8 uses 8-bits or 16-bits or 24-bits or 32-bits for each code point.