Computer System Organization-1
Computer System Organization-1
Structure Of Computer
Basic Structure of computers -
Computer architecture in general covers 3 aspects of computer design –
1. Computer Hardware
2. Instruction Set Architecture
3. Computer System Organization
Computer Hardware : Consists of electronic circuits, display, magnetic and optional
storage media and communication facilities
Instruction Set Architecture : It is a programmer visible interface such as instruction sets,
registers and memory organization
2 main approaches are : 1. CISC – Complex Instruction Set Computer
2. RISC – Reduced Instruction Set Computer
Computer System Organization : It includes a high level aspects of a design such as
Memory system, the bus structure, the design of internal CPU.
Computer : Computer is fast electronic calculating machine , which accepts digital inputs,
process according to the stored instruction and produce the result on the output device.
Internal Operation in a Computer are like this -
Fetching
1
Execution Decoding
3 2
Fetching : Retrieving the next instruction from the memory that increasing the program
counter.
Decoding : Decode the bit pattern in the instruction register.
Execution : Perform the action requested by the instruction register.
Types of Computer :-
1. Micro Computer :- A personal computer design to meet the computer needs of an
individual provides access to the wide variety of computing application such as word
processing, photo editing, email and internet.
2. Laptop :- A portable compact computer that can run on power supply or a battery all
components are integrated as one compact unit. It is generally more expensive then a
comparable desktop. It is also called a notebook
3. Workstation : - Powerful desktop computer design for specialize task generally used for
tasks that required a lot. 0 processing speed. Can also be an ordinary personal computer
attach to a LAN
Made By Jerry
4. Super Computer :- A computer that is considered to be the fastest in the world used to
execute tasks that would take a lot of time for other computers. (Eg – Modellino Weather
System)
5. Main frame :- Large expensive computer capable of simultaneously processing data of
thousand or hundred user used to store manage and process the large amount of data that
need reliable secure, centralize.
6. Multi Core :- Having multiple core with parallel computing platforms. Many cores or
computing elements in a single chip (Eg – i3, i5, i7, i9)
7. Hand-Held :- It is also called a personal digital assistant a computer that fits into a pocket
runs on battery and is used while holding the unit in your hand, typically used as an
appointment book, address book, calculator, notepad.
OUTPUT Arithmetic
Logic Unit
ALU
I/O Main Memory
CPU
1. Input Unit: Computer accepts encoded information through input unit. The standard
input device is a keyboard. Whenever a key is pressed, keyboard controller sends the
code to CPU/Memory.
2. Output Unit: Computer after computation returns the computed results, error
messages, etc. via output unit. The standard output device is a video monitor, LCD/TFT
monitor. Other output devices are printers, plotters etc.
3. Memory Unit: Memory unit stores the program instructions (Code), data and results
of computations etc.
Memory unit is classified as:
Primary /Main Memory
Secondary /Auxiliary Memory
Primary Memory:- Primary memory is also known as the main memory or the random-
access memory (RAM). These are semiconductor memory that provides access at high
speed, runtime programming instruction and operands are stored in main memory.
Secondary Memory:- Secondary memory is the hard disk of your system, it also includes
ash drive, optical disks, magnetic disk. The secondary memory is slower and less
expensive as compared to primary memory. These are Non-Volatile in nature.
Made By Jerry
Cache Memory:- Cache memory can be accessed much faster as compared to primary
memory and it is even smaller in size. It is stored with the data that is required frequently
by the processor.
4. Arithmetic and logic unit: ALU consist of necessary logic circuits like adder,
comparator etc., to perform operations of addition, multiplication, comparison of two
numbers etc.
5. Control Unit: Control unit co-ordinates activities of all units by issuing control signals.
Control signals issued by control unit govern the data transfers and then appropriate
operations take place.
Control unit interprets or decides the operation/action to be performed.
The operations of a computer can be summarized as follows :
MDR - Memory Data Register (Holds data that is being transferred to or from memory)
AC - Accumulator (Where intermediate arithmetic and logic results are stored)
PC - Program Counter (Contains the address of the next instruction to be executed)
CIR - Current Instruction Register (Contains the current instruction during processing)
Register Transfer
The term Register Transfer refers to the availability of hardware logic circuits that can
perform a given micro-operation and transfer the result of the operation to the same or
another register.
Most of the standard notations used for specifying operations on various registers are
stated below.
Arithmetic Micro-operations
In general, the Arithmetic Micro-operations deals with the operations performed on
numeric data stored in the registers.
The basic Arithmetic Micro-operations are classified in the following categories:
1. Addition
2. Subtraction
1. Increment
2. Decrement
3. Shift
The following table shows the symbolic representation of various Arithmetic Micro-
operations.
Symbolic Representation Description
R3 ← R1 + R2 The contents of R1 plus R2 are transferred to R3.
R3 ← R1 - R2 The contents of R1 minus R2 are transferred to R3.
R2 ← R2' Complement the contents of R2 (1's complement)
R2 ← R2' +1 2's complement the contents of R2 (negate)
R3 ← R1 + R2' + 1 R1 plus the 2's complement of R2 (subtraction)
R1 ← R1' +1 Increment the contents of R1 by one
R1 ← R1 - 1 Decrement the contents of R1 by one
Logic Micro-Operations:-
Logic operations are binary micro-operations implemented on the bits saved in the
registers. These operations treated each bit independently and create them as binary
variables.
Logic micro-operations specify binary operations for strings of bits stored in
registers.
These operations consider each bit of the register separately and treat them as
binary variables.
For example, the exclusive-OR micro-operation with the contents of two registers
RI and R2 is symbolized by the statement
P: R1←R1⊕R2
Shift Micro-Operations:-
Shift micro-operations are those micro-operations that are used for serial transfer of
information. These are also used in conjunction with arithmetic micro-operation, logic
micro-operation, and other data-processing operations.
Shift microoperations are used for serial transfer of data.
The contents of a register can be shifted to the left or the right.
During a shift-left operation the serial input transfers a bit into the rightmost
position.
During a shift-right operation the serial input transfers a bit into the leftmost
position.
There are three types of shifts: logical, circular, and arithmetic.
The symbolic notation for the shift microoperations is shown in Table.
4-7
Logical Shift:
A logical shift is one that transfers 0 through the serial input.
The symbols shl and shr for logical shift-left and shift-right microoperations.
The microoperations that specify a 1-bit shift to the left of the content of register R
and a 1-bit shift to the right of the content of register R shown in table 4.7.
The bit transferred to the end position through the serial input is assumed to be 0
during a logical shift.
Circular Shift:
The circular shift (also known as a rotate operation) circulates the bits of the
register around the two ends without loss of information.
This is accomplished by connecting the serial output of the shift register to its
serial input.
We will use the symbols cil and cir for the circular shift left and right, respectively.
Arithmetic Shift:
An arithmetic shift is a microoperation that shifts a signed binary number to the
left or right.
An arithmetic shift-left multiplies a signed binary number by 2.
An arithmetic shift-right divides the number by 2.
Arithmetic shifts must leave the sign bit unchanged because the sign of the number
remains the same when it is multiplied or divided by 2.
Table 4-8 lists the 14 operations of the ALU. The first eight are arithmetic
operations and are selected with S3S2 = 00.
The next four are logic and are selected with S3S2 = 01.
The input carry has no effect during the logic operations and is marked with don't-
care x’s.
The last two operations are shift operations and are selected with S3S2= 10 and
11.
The other three selection inputs have no effect on the shift.