IT402 Unit 1
Computer Architecture | RGPV IT402

IT402 Unit 1 Computer Architecture Notes

Computer Organization Basics for RGPV Exam

This page provides complete IT402 Computer Architecture Unit 1 notes for RGPV B.Tech Information Technology IV semester students. It covers Computer Architecture and Organization, Computer Generations, Von Neumann Model, CPU Organization, Register Organization, Various CPU Registers, Register Transfer, Bus and Memory Transfers, Arithmetic Micro Operations, Logic Micro Operations, Shift Micro Operations and Arithmetic Logic Shift Unit in easy exam-oriented language.

๐Ÿ–ฅ๏ธ CPU

CPU performs arithmetic, logical and control operations during instruction execution.

๐Ÿง  Registers

Registers are high-speed storage units used to store data, addresses and instructions temporarily.

๐Ÿ” Bus Transfer

Bus transfers data, addresses and control signals between CPU, memory and I/O devices.

๐Ÿ“˜

Detailed Notes

Read complete Unit 1 notes with definitions, diagrams, examples, comparisons and RGPV exam-oriented explanations.

Read Notes
โญ

Important Questions

Prepare expected 2 marks, 5 marks, 7 marks and 14 marks questions from IT402 Unit 1.

View Questions
๐Ÿ“„

Related Units

Open other Computer Architecture units for complete semester preparation.

Open Subject

IT402 Unit 1 Syllabus Topics

Computer Architecture Computer Organization Computer Generations Von Neumann Model CPU Organization Register Organization Various CPU Registers Register Transfer Bus and Memory Transfers Arithmetic Micro Operations Logic Micro Operations Shift Micro Operations Arithmetic Logic Shift Unit (ALSU)

IT402 Unit 1 Detailed Notes

1. Computer Architecture

Computer Architecture aur Computer Organization Computer System ke do sabse important concepts hain. Ye dono topics RGPV IT402 Unit 1 ke foundation topics hain aur lagbhag har saal exam me puchhe jate hain. Kisi bhi computer system ko samajhne ke liye Architecture aur Organization ka knowledge bahut zaruri hota hai.

Aaj ke modern computers, laptops, smartphones aur servers ki performance inhi concepts par depend karti hai. Computer Architecture programmer ko system ka logical view provide karti hai, jabki Computer Organization hardware components ke internal implementation ko describe karti hai.

What is Computer Architecture?

Computer Architecture refers to those attributes of a computer system that are visible to a programmer and directly affect the logical execution of a program.

Simple words me, Computer Architecture batati hai ki computer user aur programmer ko kya facilities provide karta hai aur computer ka logical design kya hai.

Main Components of Computer Architecture

Instruction Set Architecture (ISA)

Instruction Set Architecture CPU ke instruction set ko define karti hai. Ye batati hai ki processor kaun-kaun se instructions execute kar sakta hai.

ADD
SUB
MUL
DIV

Ye sab processor ke basic instructions hote hain.

Data Representation

Computer data ko internally binary format me store karta hai. Data Representation define karta hai ki information memory me kis format me store hogi.

Addressing Modes

Addressing Modes define karte hain ki CPU operand ko memory ya register se kaise access karega.

What is Computer Organization?

Computer Organization refers to the operational units and interconnections that realize the architectural specifications.

Simple words me, Computer Organization batati hai ki hardware components internally kaise arranged aur interconnected hote hain.

Main Components of Computer Organization

Basic Computer System Organization

+------------------+ | Input Unit | +--------+---------+ | v +-----------------------------+ | CPU | | | | +--------+ +-----------+ | | | ALU | | Control | | | | | | Unit | | | +--------+ +-----------+ | +--------------+--------------+ | v +------------------+ | Memory Unit | +------------------+ | v +------------------+ | Output Unit | +------------------+

Explanation of Components

Input Unit

Input Unit user se data aur instructions receive karti hai. Examples: Keyboard, Mouse, Scanner, Touch Screen.

CPU (Central Processing Unit)

CPU computer ka brain hota hai. Ye instructions ko execute karta hai aur complete system ko control karta hai.

Arithmetic Logic Unit (ALU)

ALU arithmetic aur logical operations perform karta hai.

Control Unit (CU)

Control Unit CPU ka controlling part hota hai. Ye instructions ko fetch aur decode karti hai aur pura execution manage karti hai.

Memory Unit

Memory Unit data aur instructions ko store karti hai. Memory ke bina computer koi information retain nahi kar sakta.

Output Unit

Output Unit processed result ko user ko display karti hai. Examples: Monitor, Printer, Speaker.

Characteristics of Computer Architecture

Characteristics of Computer Organization

Difference Between Computer Architecture and Computer Organization

Computer Architecture Computer Organization
What Computer Does How Computer Does
Programmer View Hardware View
Logical Design Physical Implementation
Instruction Set Architecture Hardware Circuits
Visible to Programmer Hidden from Programmer
Software Related Hardware Related

Relationship Between Architecture and Organization

Computer Architecture aur Computer Organization ek dusre ke complementary concepts hain. Architecture define karti hai ki system kya karega aur Organization define karti hai ki system us functionality ko kaise implement karega.

Example: Intel Core i3 aur Intel Core i7 dono same x86 Architecture use karte hain, lekin unki internal Organization different hoti hai.

Advantages

Applications

RGPV Exam Tips

Conclusion

Computer Architecture aur Computer Organization modern computer systems ki foundation hain. Computer Architecture system ke logical behavior ko define karti hai, jabki Computer Organization hardware implementation ko describe karti hai. Dono milkar computer system ko efficient, reliable aur high-performance banate hain.

Computer Generations

Computer Generation ka matlab hai computer technology ka development aur evolution over time. Jaise-jaise technology improve hui, computers ka size kam hua, speed badhi, cost kam hui aur reliability increase hui. Computer Generations ko mainly 5 generations me divide kiya jata hai.

RGPV IT402 Unit 1 me Computer Generations ek important theory topic hai jo frequently 2 marks, 5 marks aur 14 marks ke questions me pucha jata hai.

Introduction to Computer Generations

Initial computers bahut bade, expensive aur slow hote the. Technology advancement ke saath Vacuum Tubes se Transistors, Transistors se Integrated Circuits, aur ICs se Microprocessors ka development hua. Isi technological evolution ko Computer Generations kehte hain.

1st Generation โ†’ Vacuum Tubes 2nd Generation โ†’ Transistors 3rd Generation โ†’ Integrated Circuits (IC) 4th Generation โ†’ Microprocessors 5th Generation โ†’ Artificial Intelligence

Why Study Computer Generations?


First Generation Computers (1946 โ€“ 1959)

Technology Used

First Generation computers me Vacuum Tubes ka use hota tha. Vacuum Tubes electronic switching devices thi jo calculations perform karti thi.

Characteristics

Advantages

Disadvantages

Examples

Vacuum Tube +---------+ | Vacuum | | Tube | +---------+

Second Generation Computers (1959 โ€“ 1965)

Technology Used

Second Generation me Vacuum Tubes ki jagah Transistors use kiye gaye. Transistors smaller, faster aur more reliable the.

Characteristics

Advantages

Disadvantages

Examples

Vacuum Tube โŒ Transistor โœ…

Third Generation Computers (1965 โ€“ 1971)

Technology Used

Third Generation computers me Integrated Circuits (ICs) ka use hua. Hundreds of transistors ek single chip me integrate kiye gaye.

Characteristics

Advantages

Examples

Integrated Circuit (IC) +------------------+ | T T T T T T T T | | T T T T T T T T | +------------------+

Fourth Generation Computers (1971 โ€“ Present)

Technology Used

Fourth Generation computers me Microprocessors ka use hua. Thousands aur millions of transistors ek single chip me integrate kiye gaye.

Characteristics

Advantages

Examples

Microprocessor +------------------+ | CPU CHIP | | Millions of | | Transistors | +------------------+

Fifth Generation Computers (Present and Future)

Technology Used

Fifth Generation computers Artificial Intelligence (AI), Machine Learning, Natural Language Processing aur Parallel Processing technologies par based hain.

Characteristics

Advantages

Examples

Artificial Intelligence Input โ†“ Learning โ†“ Decision Making โ†“ Output

Comparison of Computer Generations

Generation Technology Speed Size
First Vacuum Tubes Low Very Large
Second Transistors Medium Large
Third ICs High Small
Fourth Microprocessor Very High Very Small
Fifth AI Technology Extremely High Compact

RGPV Exam Keywords

Most Expected RGPV Questions

Conclusion

Computer Generations represent the continuous evolution of computer technology. From Vacuum Tubes to Artificial Intelligence, each generation has improved speed, reliability, storage capacity and performance. Modern computers are the result of this technological advancement and continue to evolve toward intelligent computing systems.

Von Neumann Model

Von Neumann Model modern computer architecture ki foundation hai. Is model ko famous mathematician John Von Neumann ne 1945 me propose kiya tha. Aaj ke lagbhag sabhi computers, laptops, smartphones aur servers isi architecture ke principles par based hote hain.

RGPV IT402 Unit 1 me Von Neumann Model sabse important topics me se ek hai aur ye frequently 5 marks, 7 marks aur 14 marks ke question me pucha jata hai.

Introduction

Von Neumann Architecture ko Stored Program Concept bhi kaha jata hai. Is model ki sabse important feature ye hai ki Instructions aur Data dono same memory me store hote hain. CPU memory se instruction fetch karta hai, decode karta hai aur execute karta hai.

Is architecture ne computer design ko simple aur efficient banaya, isi wajah se aaj ke most computer systems isi model ko follow karte hain.

Definition

Von Neumann Model is a computer architecture in which instructions and data are stored in the same memory and processed sequentially by the CPU.

Main Components of Von Neumann Architecture

Block Diagram of Von Neumann Architecture

+----------------+ | Input Unit | +--------+-------+ | v +------------------------------------------------+ | Memory Unit | | (Data + Instructions Stored Together) | +----------------------+-------------------------+ | | v +-----------------------------+ | CPU | | | | +---------+ +----------+ | | | ALU | | Control | | | | | | Unit | | | +---------+ +----------+ | | | | Registers | +-------------+---------------+ | v +---------------+ | Output Unit | +---------------+

Explanation of Components

1. Input Unit

Input Unit user se data aur instructions receive karti hai aur system ko provide karti hai.

Examples:

2. Memory Unit

Memory Unit data aur instructions ko store karti hai. Von Neumann Architecture me data aur instructions same memory me store hote hain.

Memory CPU ko required information provide karti hai.

3. Control Unit (CU)

Control Unit CPU ka controlling part hota hai. Ye instruction ko decode karti hai aur execution ke liye control signals generate karti hai.

Functions of Control Unit:

4. Arithmetic Logic Unit (ALU)

ALU arithmetic aur logical operations perform karta hai.

Arithmetic Operations:

Logical Operations:

5. Registers

Registers CPU ke andar present high-speed storage locations hote hain. Ye temporary data aur instructions ko store karte hain.

Important Registers:

6. Output Unit

Output Unit processed result ko user ko display karti hai.

Examples:

Stored Program Concept

Stored Program Concept Von Neumann Architecture ki sabse important feature hai. Is concept ke according:

Memory +--------------------+ | Instruction 1 | +--------------------+ | Instruction 2 | +--------------------+ | Instruction 3 | +--------------------+ | Data | +--------------------+

Working of Von Neumann Architecture

Step 1: Fetch

CPU memory se next instruction fetch karta hai. Program Counter instruction ka address provide karta hai.

Step 2: Decode

Instruction Register instruction ko store karta hai aur Control Unit usko decode karti hai.

Step 3: Execute

ALU required operation perform karta hai.

Step 4: Store

Result register ya memory me store kar diya jata hai.

FETCH โ†“ DECODE โ†“ EXECUTE โ†“ STORE

Example of Instruction Execution

Suppose instruction hai:

ADD A, B

Working:

  1. CPU instruction fetch karega.
  2. Control Unit instruction decode karegi.
  3. ALU A aur B ko add karega.
  4. Result accumulator me store hoga.

Advantages of Von Neumann Architecture

Disadvantages of Von Neumann Architecture

Von Neumann Bottleneck

Von Neumann Bottleneck architecture ki sabse famous limitation hai. Kyuki data aur instructions same bus aur same memory share karte hain, CPU ek time par limited information access kar pata hai.

CPU โ†“ Single Bus โ†“ Memory (Data + Instructions)

Ye bottleneck performance ko reduce kar sakta hai.

Applications of Von Neumann Architecture

Von Neumann vs Harvard Architecture

Von Neumann Architecture Harvard Architecture
Single Memory Separate Memories
Single Bus Separate Buses
Lower Cost Higher Cost
Simpler Design Complex Design
Slower Performance Faster Performance
Most General Computers DSP & Embedded Systems

RGPV Exam Keywords

Most Expected RGPV Questions

Conclusion

Von Neumann Architecture modern computer systems ki foundation hai. Is architecture ne Stored Program Concept introduce kiya jisme instructions aur data same memory me store hote hain. CPU Fetch-Decode-Execute cycle ke through instructions process karta hai. Aaj ke most computers isi architecture par based hain, isi liye ye Computer Architecture ka sabse important topic mana jata hai.

CPU Organization

CPU (Central Processing Unit) computer system ka sabse important component hota hai. CPU ko computer ka Brain bhi kaha jata hai kyunki ye saare instructions ko execute karta hai, data ko process karta hai aur complete computer system ko control karta hai.

RGPV IT402 Unit 1 me CPU Organization ek highly important topic hai jo frequently 5 marks, 7 marks aur 14 marks ke questions me pucha jata hai.

Introduction to CPU Organization

CPU Organization se matlab CPU ke internal structure aur components ke arrangement se hai. Ye batata hai ki CPU ke andar ALU, Control Unit, Registers aur Bus System kaise interconnected hote hain aur milkar instruction execution perform karte hain.

CPU Organization +---------------------+ | CPU | | | | +------+ +------+ | | | ALU | | CU | | | +------+ +------+ | | | | Registers | +---------------------+

Definition

CPU Organization refers to the arrangement and interconnection of various components inside the CPU such as ALU, Control Unit, Registers and Internal Buses.

Main Components of CPU


1. Arithmetic Logic Unit (ALU)

ALU CPU ka computational unit hota hai jo arithmetic aur logical operations perform karta hai.

Arithmetic Operations

Logical Operations

Input Data โ†“ +------------+ | ALU | +------------+ โ†“ Result

Functions of ALU


2. Control Unit (CU)

Control Unit CPU ka controlling component hota hai. Ye complete computer system ko control aur coordinate karta hai.

Control Unit khud calculation perform nahi karta. Ye ALU, Memory aur Input Output devices ko control signals bhejta hai.

Instruction โ†“ +---------------+ | Control Unit | +---------------+ โ†“ Control Signals

Functions of Control Unit

Types of Control Unit


3. Registers

Registers CPU ke andar present high-speed storage locations hote hain. Ye temporary data aur instructions store karte hain.

Registers memory se bahut faster hote hain.

Important CPU Registers

Register Function
Program Counter (PC) Stores next instruction address
Instruction Register (IR) Stores current instruction
Accumulator (AC) Stores ALU result
Memory Address Register (MAR) Stores memory address
Memory Data Register (MDR) Stores memory data
Stack Pointer (SP) Stores top of stack address
Program Counter Instruction Register Accumulator MAR MDR Stack Pointer

4. Bus System

Bus System CPU ke internal components aur memory ke beech communication provide karta hai.

Types of Bus

CPU | ----------------- | Data Bus | | Address Bus | | Control Bus | ----------------- | Memory

Data Bus

Data Bus actual data transfer karti hai.

Address Bus

Address Bus memory locations ke addresses transfer karti hai.

Control Bus

Control Bus read, write aur interrupt signals transfer karti hai.


5. Clock Unit

Clock Unit timing signals generate karti hai jo CPU operations ko synchronize karte hain.

Clock Pulse โ†“ Fetch โ†“ Decode โ†“ Execute

Clock speed CPU ki performance ko directly affect karti hai.


CPU Internal Organization

+------------------+ | Main Memory | +--------+---------+ | | +--------v---------+ | CPU | | | | +------------+ | | | Registers | | | +------------+ | | | | +------------+ | | | ALU | | | +------------+ | | | | +------------+ | | | Control CU | | | +------------+ | +------------------+

Instruction Execution Cycle

CPU instruction execution ko Fetch-Decode-Execute cycle ke through perform karta hai.

Step 1: Fetch

Program Counter next instruction ka address provide karta hai aur instruction memory se fetch hoti hai.

Step 2: Decode

Instruction Register instruction ko hold karta hai aur Control Unit usko decode karti hai.

Step 3: Execute

ALU ya required hardware instruction ko execute karta hai.

Step 4: Store Result

Execution result register ya memory me store kar diya jata hai.

FETCH โ†“ DECODE โ†“ EXECUTE โ†“ STORE RESULT

Example of CPU Working

Instruction:

ADD A, B

Working:

  1. Instruction memory se fetch hogi.
  2. Control Unit instruction decode karegi.
  3. ALU A aur B ko add karega.
  4. Result Accumulator me store hoga.

Advantages of CPU Organization

Disadvantages

Applications

RGPV Exam Keywords

Most Expected RGPV Questions

Conclusion

CPU Organization computer system ka core topic hai jo CPU ke internal structure aur working ko explain karta hai. ALU, Control Unit, Registers aur Bus System milkar instruction execution perform karte hain. CPU Organization ko samajhna Computer Architecture ke advanced topics ko samajhne ke liye bahut important hai.

Register Organization

Register Organization CPU ke andar registers ke arrangement, interconnection aur operation ko describe karta hai. Registers CPU ke sabse fast storage locations hote hain jo data, instructions aur addresses ko temporarily store karte hain.

Computer Architecture me Register Organization ka objective ye samajhna hai ki CPU ke andar registers kaise interconnected hote hain aur data transfer kaise perform hota hai.

RGPV IT402 Unit 1 me Register Organization ek important topic hai jo frequently 5 marks, 7 marks aur 14 marks ke questions me pucha jata hai.


Introduction to Register Organization

CPU ke andar bahut saare registers present hote hain. In registers ke beech data transfer continuously hota rehta hai. Register Organization ye define karta hai ki registers ka structure kya hai aur unke beech communication kaise hota hai.

Registers โ†“ Data Transfer โ†“ ALU Processing โ†“ Result Storage

Register Organization CPU performance ko improve karta hai kyunki registers memory ke comparison me bahut fast hote hain.


Definition

Register Organization is the arrangement and interconnection of registers within the CPU for efficient storage and transfer of data.

Easy Definition

CPU ke andar registers ko organize karne aur unke beech data transfer ko manage karne ki technique ko Register Organization kehte hain.


Need of Register Organization


Components of Register Organization


Registers in CPU

Registers CPU ke internal storage elements hote hain. Ye temporary information ko store karte hain.

Main Registers

Register Function
Program Counter (PC) Stores next instruction address
Instruction Register (IR) Stores current instruction
Accumulator (AC) Stores ALU result
Memory Address Register (MAR) Stores memory address
Memory Data Register (MDR) Stores memory data
Stack Pointer (SP) Stores stack top address

General Register Organization

General Register Organization me multiple registers common bus ke through interconnected hote hain. Bus ke through ek register se doosre register me data transfer kiya jata hai.

R1 | | BUS / | \ / | \ R2 R3 R4

Yahan BUS ek common communication path provide karta hai.


Common Bus System

Common Bus System ek shared communication line hoti hai jo multiple registers ko connect karti hai.

Advantages of Common Bus

R1 | | +--------+ | BUS | +--------+ / | \ / | \ R2 R3 R4

Bus Using Multiplexers

Multiplexer based bus system me multiple register outputs ko multiplexers ke through select kiya jata hai.

R1 ----\ R2 -----\ MUX ----> BUS R3 -----/ R4 ----/

Control signals decide karte hain ki kaunsa register bus par data send karega.


Register Transfer

Register Transfer ek register se doosre register me binary information transfer karne ki process hai.

Example

R1 โ† R2

Meaning:


Control Function

Register transfer tabhi perform hota hai jab corresponding control signal active ho.

Example

P : R1 โ† R2

Meaning:

Agar control signal P = 1 hai to R2 ka content R1 me transfer hoga.


Register Transfer Language (RTL)

RTL ek symbolic language hai jo register operations ko represent karti hai.

Examples

R1 โ† R2 AC โ† AC + R1 PC โ† PC + 1

RTL Computer Architecture me operations ko explain karne ke liye use hoti hai.


Arithmetic Operations in Register Organization

ALU registers par arithmetic operations perform karta hai.

Examples

R3 โ† R1 + R2 R3 โ† R1 - R2 R1 โ† R1 + 1 R2 โ† R2 - 1

Operations


Logic Operations in Register Organization

R1 โ† R2 AND R3 R1 โ† R2 OR R3 R1 โ† R2 XOR R3 R1 โ† NOT R2

Logical Operations


Shift Operations in Register Organization

Shift operations bits ko left ya right move karti hain.

Left Shift 1010 โ†“ 0100
Right Shift 1010 โ†“ 0101

Types of Shift


Working of Register Organization

Step 1

Data source register me available hota hai.

Step 2

Control unit appropriate control signals generate karti hai.

Step 3

Data common bus par place hota hai.

Step 4

Destination register data receive karta hai.

Step 5

ALU required operation perform karti hai.

Source Register โ†“ Common Bus โ†“ Destination Register โ†“ ALU Processing

Advantages of Register Organization


Disadvantages


Applications


Register Organization vs Memory Organization

Register Organization Memory Organization
Inside CPU Outside CPU
Very Fast Slower
Small Storage Large Storage
Temporary Storage Permanent/Long Term Storage
Direct CPU Access Indirect Access

RGPV Exam Keywords


Most Expected RGPV Questions


Conclusion

Register Organization CPU ke efficient operation ke liye bahut important hai. Ye registers ke arrangement, communication aur data transfer ko define karta hai. Common Bus System aur Register Transfer Language ke through registers ke beech fast communication possible hota hai. Register Organization CPU performance ko improve karta hai aur modern computer systems ki foundation ka important part hai.

Various CPU Registers

CPU (Central Processing Unit) computer ka brain hota hai. CPU ke andar kuch special high-speed storage locations hoti hain jinko Registers kaha jata hai. Registers temporary data, instructions aur addresses ko store karte hain taaki CPU fast processing kar sake.

Registers memory se bahut fast hote hain aur directly CPU ke andar present hote hain. Program execution ke dauran CPU continuously registers ka use karta hai.

RGPV IT402 Unit 1 me Various CPU Registers ek important topic hai aur frequently 5 marks, 7 marks aur 14 marks me pucha jata hai.


Definition of Register

A Register is a small, high-speed storage location inside the CPU used to temporarily store data, instructions, addresses and intermediate results during program execution.

Easy Definition

Registers CPU ke andar present fastest storage units hote hain jo temporary information store karte hain.


Need of Registers


CPU Register Organization Diagram

+------------------+ | Program Counter | +------------------+ | v +------------------+ | Instruction Reg. | +------------------+ | v +------------+ +------------+ +------------+ | Accumulator|<->| ALU |<->| General | | (AC) | | | | Registers | +------------+ +------------+ +------------+ | v +------------+ +------------+ | MAR | | MDR | +------------+ +------------+ | v Main Memory +------------+ +------------+ | Stack Ptr | | Flag Reg. | +------------+ +------------+

Types of CPU Registers


1. Accumulator Register (AC)

Accumulator Register arithmetic aur logical operations ke intermediate aur final results ko store karta hai. ALU ke saath directly connected hota hai.

Example

AC โ† AC + R1

Agar:

AC = 20 R1 = 10

Result:

AC = 30

Diagram

+------------------+ | Accumulator (AC) | +--------+---------+ | v +------------------+ | ALU | +------------------+

Functions


2. Program Counter (PC)

Program Counter next instruction ka memory address store karta hai.

Example

PC = 1000

Matlab next instruction memory location 1000 se fetch hogi.

Diagram

+--------------------+ | Program Counter PC | +--------------------+ | v Next Instruction Address

Functions


3. Instruction Register (IR)

Instruction Register current instruction ko temporarily store karta hai.

Example

ADD R1, R2

Ye instruction IR me store hogi.

Diagram

+--------------------+ | Instruction Reg IR | +--------------------+ | v Current Instruction

Functions


4. Memory Address Register (MAR)

Memory Address Register memory location ka address store karta hai.

Example

MAR = 500

CPU memory location 500 access karega.

Diagram

+--------------------+ | Memory Address Reg | | MAR | +--------------------+ | v Memory Address

Functions


5. Memory Data Register (MDR)

Memory Data Register memory se read ya memory me write hone wala actual data store karta hai.

Example

MDR = 25

Diagram

+--------------------+ | Memory Data Reg | | MDR | +--------------------+ | v Data

Functions


6. Stack Pointer (SP)

Stack Pointer stack ke top element ka address store karta hai.

Diagram

+--------------------+ | Stack Pointer SP | +--------------------+ | v Top of Stack

Functions


7. Flag Register (Status Register)

Flag Register ALU operations ke status information ko store karta hai.

Common Flags

Flag Meaning
Carry Flag (CF) Carry generated
Zero Flag (ZF) Result is zero
Sign Flag (SF) Negative result
Overflow Flag (OF) Overflow occurred

Diagram

+----------------------+ | Flag Register | +----------------------+ | CF | ZF | SF | OF | +----------------------+

8. General Purpose Registers (GPR)

General Purpose Registers temporary data storage ke liye use hote hain. Programmer inka use calculations aur data manipulation ke liye kar sakta hai.

R1 R2 R3 R4

Functions


Comparison of Important Registers

Register Main Function
PC Stores next instruction address
IR Stores current instruction
MAR Stores memory address
MDR Stores memory data
AC Stores ALU result
SP Stores stack top address
Flag Register Stores status flags

Advantages of CPU Registers


Applications


RGPV Exam Keywords


Most Expected RGPV Questions


Conclusion

CPU Registers computer system ke fastest storage elements hote hain. Ye instruction execution, memory access, arithmetic operations aur control operations me important role play karte hain. Program Counter, Instruction Register, MAR, MDR, Accumulator, Stack Pointer aur Flag Register CPU ke most important registers hote hain aur Computer Architecture ki foundation ko strong banate hain.

Register Transfer

Register Transfer Computer Architecture ka ek fundamental concept hai jo CPU ke andar ek register se doosre register me data transfer karne ki process ko describe karta hai. Computer ke execution cycle me continuously registers ke beech information exchange hota rehta hai.

Register Transfer ko efficiently represent karne ke liye Register Transfer Language (RTL) ka use kiya jata hai. RTL Computer Architecture ki symbolic language hai jo register operations ko represent karti hai.

RGPV IT402 Unit 1 me Register Transfer ek important topic hai aur frequently 5 marks, 7 marks aur 14 marks ke questions me pucha jata hai.


Introduction to Register Transfer

CPU ke andar multiple registers present hote hain. Program execution ke dauran data ek register se doosre register me move hota hai. Isi process ko Register Transfer kaha jata hai.

Register Transfer ka main objective fast data movement aur efficient instruction execution provide karna hota hai.

Register A โ†“ Data Transfer โ†“ Register B

Definition

Register Transfer is the process of transferring binary information from one register to another register under the control of control signals.

Easy Definition

Ek register se doosre register me data copy karne ki process ko Register Transfer kehte hain.


Need of Register Transfer


Register Transfer Language (RTL)

Register Transfer Language (RTL) ek symbolic notation hai jo register operations ko represent karti hai.

RTL ke through hum register ke beech hone wale data transfer ko easily represent kar sakte hain.

Basic RTL Statement

R1 โ† R2

Meaning:


RTL Symbols

Symbol Meaning
โ† Transfer To
+ Addition
- Subtraction
AND Logical AND
OR Logical OR

Simple Register Transfer Example

Assume:

R1 = 0000 R2 = 1010

Operation:

R1 โ† R2

Result:

R1 = 1010 R2 = 1010

Yahan R2 ka content R1 me copy hua hai.


Control Function in Register Transfer

Register Transfer tabhi perform hota hai jab corresponding control signal active ho.

Example

P : R1 โ† R2

Meaning:


Control Signal Diagram

P โ”‚ โ–ผ R2 โ”€โ”€โ”€โ”€โ”€โ–บ R1

Yahan transfer sirf tabhi hoga jab signal P active hoga.


Bus Based Register Transfer

CPU me multiple registers ko connect karne ke liye Common Bus System use kiya jata hai.

R1 โ”‚ โ–ผ +------+ | BUS | +------+ โ–ฒ โ–ฒ โ”‚ โ”‚ R2 R3

Bus ke through ek register se doosre register me data transfer kiya jata hai.


Register Transfer Operation

Register Transfer operation ke basic steps:

  1. Source Register select hota hai.
  2. Control signal activate hota hai.
  3. Data bus par place hota hai.
  4. Destination Register select hota hai.
  5. Data destination register me load hota hai.
Source Register โ†“ Control Signal โ†“ BUS โ†“ Destination Register

Types of Register Transfer Operations


1. Simple Transfer

Ek register ka content directly doosre register me copy kiya jata hai.

R1 โ† R2

2. Arithmetic Transfer

Arithmetic operations registers ke beech perform kiye jate hain.

Examples

R3 โ† R1 + R2 R3 โ† R1 - R2 R1 โ† R1 + 1 R2 โ† R2 - 1

Operations:


3. Logical Transfer

Registers ke data par logical operations perform kiye jate hain.

R1 โ† R2 AND R3 R1 โ† R2 OR R3 R1 โ† NOT R2 R1 โ† R2 XOR R3

4. Shift Transfer

Bits ko left ya right move karne ke liye shift operations use kiye jate hain.

Left Shift

1010 โ†“ 0100

Right Shift

1010 โ†“ 0101

Hardware Implementation of Register Transfer

Register Transfer hardware level par buses, multiplexers aur control signals ke through perform kiya jata hai.

Register A โ”‚ โ–ผ +-------------+ | Multiplexer | +-------------+ โ”‚ โ–ผ BUS โ”‚ โ–ผ Register B

Working of Register Transfer

Step 1

Source Register identify kiya jata hai.

Step 2

Control Unit transfer instruction decode karti hai.

Step 3

Control signal generate hota hai.

Step 4

Source Register ka data bus par place hota hai.

Step 5

Destination Register data receive karta hai.

Step 6

Transfer complete ho jata hai.

Source Register โ†“ Control Signal โ†“ BUS โ†“ Destination Register โ†“ Transfer Complete

Advantages of Register Transfer


Disadvantages


Applications


Register Transfer vs Memory Transfer

Register Transfer Memory Transfer
Register to Register Register to Memory
Very Fast Relatively Slow
CPU Internal CPU and Memory
Low Delay Higher Delay
Temporary Data Stored Data

RGPV Exam Keywords


Most Expected RGPV Questions


Conclusion

Register Transfer CPU ke internal operations ka basic concept hai. RTL ke through register operations ko easily represent kiya jata hai. Control signals, buses aur registers milkar fast data transfer provide karte hain. Register Transfer Computer Architecture aur CPU Organization dono ka important foundation topic hai.

Bus and Memory Transfers

Computer system me CPU, Memory aur Input/Output devices ke beech continuously data exchange hota rehta hai. Is data exchange ko efficiently perform karne ke liye Bus System aur Memory Transfer Operations ka use kiya jata hai.

Bus ek common communication pathway provide karti hai jiske through data, address aur control signals transfer hote hain. Memory Transfer operations CPU aur Memory ke beech information exchange ko represent karti hain.

RGPV IT402 Unit 1 me Bus and Memory Transfers ek highly important topic hai jo frequently 5 Marks, 7 Marks aur 14 Marks ke questions me pucha jata hai.


Definition of Bus

A Bus is a common communication pathway used to transfer data, addresses and control signals between various components of a computer system.

Easy Definition

Bus computer ke andar ek electronic highway hai jo CPU, Memory aur I/O devices ko connect karti hai.


Definition of Memory Transfer

Memory Transfer is the process of transferring data between CPU registers and memory locations.

Easy Definition

CPU aur Memory ke beech data move karne ki process Memory Transfer kehlati hai.


Need of Bus System


Basic Bus Structure

+-----------+ | CPU | +-----+-----+ | | ================= BUS ================= / \ / \ +---------------+ +--------------+ | Memory | | I/O Devices | +---------------+ +--------------+

Bus CPU, Memory aur Input Output devices ko connect karti hai aur information transfer karne me help karti hai.


Types of Bus


1. Data Bus

Data Bus actual data ko transfer karti hai. Ye CPU, Memory aur I/O devices ke beech binary information exchange karti hai.

CPU โ‡„ DATA BUS โ‡„ MEMORY

Characteristics

Example

Agar CPU memory se value 25 read karta hai to ye value Data Bus ke through transfer hogi.


2. Address Bus

Address Bus memory location ka address transfer karti hai. CPU batata hai ki kis memory location ko access karna hai.

CPU โ†’ ADDRESS BUS โ†’ MEMORY

Characteristics

Example

MAR = 1000

Address Bus memory location 1000 ko select karegi.


3. Control Bus

Control Bus control signals transfer karti hai jo operations ko manage karte hain.

CPU โ‡„ CONTROL BUS โ‡„ MEMORY

Common Control Signals


Comparison of Buses

Data Bus Address Bus Control Bus
Transfers Data Transfers Address Transfers Control Signals
Bidirectional Unidirectional Bidirectional
Actual Information Memory Location Operation Control

Common Bus System

Common Bus System ek shared communication line hoti hai jo multiple registers aur components ko connect karti hai.

R1 | | โ–ผ +-------+ | BUS | +-------+ โ–ฒ โ–ฒ โ–ฒ | | | R2 R3 R4

Yahan BUS common communication path provide karta hai.


Memory Transfer Operations

Memory Transfer CPU aur Memory ke beech information exchange ko represent karta hai.

Main Operations


Memory Read Operation

Memory Read operation me CPU memory se data receive karta hai.

RTL Representation

MAR โ† Address Read MDR โ† Memory

Working

  1. Address MAR me load hota hai.
  2. Address Bus memory location select karti hai.
  3. Read signal active hota hai.
  4. Memory data MDR me transfer hota hai.
  5. CPU data receive karta hai.
CPU โ†“ MAR โ†“ Address Bus โ†“ Memory โ†“ Data Bus โ†“ MDR

Memory Write Operation

Memory Write operation me CPU data ko memory me store karta hai.

RTL Representation

MAR โ† Address MDR โ† Data Write

Working

  1. Address MAR me load hota hai.
  2. Data MDR me load hota hai.
  3. Write signal active hota hai.
  4. Data memory location me store ho jata hai.
CPU โ†“ MDR โ†“ Data Bus โ†“ Memory

Bus Transfer Using Registers

Registers ke beech bus ke through data transfer perform kiya jata hai.

Example

R1 โ† R2

Meaning:


Bus Transfer Hardware Diagram

Register R1 | โ–ผ +------+ | BUS | +------+ โ–ผ Register R2

Working of Bus Transfer

Step 1

Source register select hota hai.

Step 2

Data bus par place hota hai.

Step 3

Destination register select hota hai.

Step 4

Data destination register me load hota hai.

Source Register โ†“ BUS โ†“ Destination Register

Advantages of Bus System


Disadvantages of Bus System


Applications


Bus Transfer vs Memory Transfer

Bus Transfer Memory Transfer
Register to Register CPU and Memory
Internal Transfer External Transfer
Fast Relatively Slow
Uses Bus Uses MAR and MDR

RGPV Exam Keywords


Most Expected RGPV Questions


Conclusion

Bus and Memory Transfers computer system ke efficient communication mechanism hain. Bus CPU, Memory aur I/O devices ko connect karti hai, jabki Memory Transfer CPU aur Memory ke beech information exchange ko represent karta hai. Data Bus, Address Bus aur Control Bus milkar complete communication system ko manage karte hain.

Arithmetic Micro-Operations

Arithmetic Micro-Operations wo operations hote hain jo binary data par arithmetic calculations perform karte hain. Ye operations CPU ke Arithmetic Logic Unit (ALU) dwara execute kiye jate hain.

Computer Architecture me arithmetic micro-operations registers ke contents par perform kiye jate hain. Ye operations instruction execution aur data processing ka important part hote hain.

RGPV IT402 Unit 1 me Arithmetic Micro-Operations ek important topic hai jo frequently 5 Marks, 7 Marks aur 14 Marks ke questions me pucha jata hai.


Definition

Arithmetic Micro-Operations are the operations performed on numeric data stored in registers to execute arithmetic functions such as addition, subtraction, increment and decrement.

Easy Definition

Registers ke data par addition, subtraction, increment aur decrement jaise arithmetic operations perform karne ko Arithmetic Micro-Operations kehte hain.


Need of Arithmetic Micro-Operations


Types of Arithmetic Micro-Operations


Arithmetic Micro-Operations Block Diagram

Register A โ”‚ โ–ผ +---------+ | ALU | +---------+ โ–ฒ โ”‚ Register B โ”‚ โ–ผ Result โ”‚ โ–ผ Register C

1. Addition Operation

Addition operation do registers ke contents ko add karta hai.

RTL Representation

R3 โ† R1 + R2

Example

R1 = 0101 (5) R2 = 0011 (3) R3 = R1 + R2

Result:

0101 0011 ----- 1000 R3 = 8

Applications


2. Subtraction Operation

Subtraction operation ek register ke content ko doosre register se subtract karti hai.

RTL Representation

R3 โ† R1 - R2

Example

R1 = 1000 (8) R2 = 0011 (3) R3 = 0101 (5)

Computer subtraction ko generally 2's Complement method se perform karta hai.


3. Increment Operation

Increment operation register value ko 1 se increase karti hai.

RTL Representation

R1 โ† R1 + 1

Example

Before = 0110 (6) After = 0111 (7)

Uses


4. Decrement Operation

Decrement operation register value ko 1 se decrease karti hai.

RTL Representation

R1 โ† R1 - 1

Example

Before = 0111 (7) After = 0110 (6)

Uses


5. Add with Carry

Addition operation me Carry Bit bhi include kiya jata hai.

RTL Representation

R3 โ† R1 + R2 + Carry

Example

R1 = 1111 R2 = 0001 Result = 10000 Carry = 1

Ye operation multi-byte arithmetic me useful hota hai.


6. Subtract with Borrow

Subtraction operation me Borrow Bit consider ki jati hai.

RTL Representation

R3 โ† R1 - R2 - Borrow

7. Transfer Operation

Transfer operation ek register ka content doosre register me copy karti hai.

RTL Representation

R1 โ† R2

Example

R2 = 1010 R1 = 1010

Hardware Implementation of Arithmetic Micro-Operations

Register A โ”‚ โ–ผ +-----------+ | ALU | +-----------+ โ–ฒ โ”‚ Register B โ”‚ โ–ผ Result

ALU arithmetic operations perform karta hai aur result destination register me store hota hai.


Working of Arithmetic Micro-Operations

Step 1

Source registers select hote hain.

Step 2

Control Unit operation select karti hai.

Step 3

Data ALU ko provide kiya jata hai.

Step 4

ALU arithmetic operation perform karta hai.

Step 5

Result destination register me store hota hai.

Registers โ†“ Control Unit โ†“ ALU โ†“ Result Register

Arithmetic Operations Summary Table

Operation RTL
Addition R3 โ† R1 + R2
Subtraction R3 โ† R1 - R2
Increment R1 โ† R1 + 1
Decrement R1 โ† R1 - 1
Add with Carry R3 โ† R1 + R2 + Carry
Transfer R1 โ† R2

Advantages of Arithmetic Micro-Operations


Disadvantages


Applications


RGPV Exam Keywords


Most Expected RGPV Questions


Conclusion

Arithmetic Micro-Operations CPU ke arithmetic processing ka foundation hain. Ye operations ALU ke through perform kiye jate hain aur registers ke data par calculations execute karte hain. Addition, Subtraction, Increment aur Decrement sabse important Arithmetic Micro-Operations hain jo almost har computer system me use hote hain.

Logic Micro-Operations

Logic Micro-Operations wo operations hote hain jo binary data par logical manipulation perform karte hain. Ye operations CPU ke Arithmetic Logic Unit (ALU) ke logical section dwara execute kiye jate hain.

Logic Micro-Operations arithmetic calculations nahi karte, balki bits ke beech logical relationships determine karte hain. Computer Architecture me ye operations decision making, bit manipulation aur data processing ke liye use hote hain.

RGPV IT402 Unit 1 me Logic Micro-Operations ek important topic hai jo frequently 5 Marks, 7 Marks aur 14 Marks ke questions me pucha jata hai.


Definition

Logic Micro-Operations are the operations performed on binary data stored in registers using logical operators such as AND, OR, XOR and NOT.

Easy Definition

Registers ke binary data par logical operations perform karne ko Logic Micro-Operations kehte hain.


Need of Logic Micro-Operations


Types of Logic Micro-Operations


Logic Micro-Operations Block Diagram

Register A โ”‚ โ–ผ +-----------+ | ALU | | (Logic) | +-----------+ โ–ฒ โ”‚ Register B โ”‚ โ–ผ Result

Basic Logic Gates

Operation Symbol Meaning
AND โˆง Both bits must be 1
OR โˆจ At least one bit is 1
XOR โŠ• Bits must be different
NOT ยฏ Complement of bit

1. AND Micro-Operation

AND operation me output tabhi 1 hota hai jab dono input bits 1 ho.

RTL Representation

R1 โ† R2 AND R3

Truth Table

A B A AND B
0 0 0
0 1 0
1 0 0
1 1 1

Example

1010 1100 AND ---- 1000

2. OR Micro-Operation

OR operation me output 1 hota hai agar kisi bhi input bit ki value 1 ho.

RTL Representation

R1 โ† R2 OR R3

Truth Table

A B A OR B
0 0 0
0 1 1
1 0 1
1 1 1

Example

1010 1100 OR ---- 1110

3. XOR Micro-Operation

XOR operation me output 1 tab hota hai jab dono input bits different hon.

RTL Representation

R1 โ† R2 XOR R3

Truth Table

A B A XOR B
0 0 0
0 1 1
1 0 1
1 1 0

Example

1010 1100 XOR ----- 0110

4. NOT Micro-Operation

NOT operation binary bits ka complement generate karta hai.

RTL Representation

R1 โ† NOT R2

Truth Table

A NOT A
0 1
1 0

Example

1010 NOT ---- 0101

5. Selective Set Operation

Selective Set operation me selected bits ko 1 banaya jata hai.

Example

Data = 1000 Mask = 0011 OR ------ Result = 1011

6. Selective Complement Operation

Selective Complement operation me selected bits ko complement kiya jata hai.

Example

Data = 1010 Mask = 0011 XOR ------ Result = 1001

7. Selective Clear Operation

Selective Clear operation selected bits ko 0 bana deti hai.

Example

Data = 1111 Mask = 1100 AND ------ Result = 1100

8. Mask Operation

Masking operation specific bits ko isolate karne ke liye use hoti hai.

Example

Data = 10101100 Mask = 00001111 Result = 00001100

Masking data extraction ke liye use hoti hai.


9. Insert Operation

Insert operation selected position par new bits insert karne ke liye use hoti hai.

Original Data โ†“ Clear Position โ†“ Insert New Bits

10. Compare Operation

Compare operation do registers ke contents ko compare karti hai.

Example

R1 = 1010 R2 = 1010 Equal

Working of Logic Micro-Operations

  1. Source Registers select hote hain.
  2. Control Unit logical operation choose karti hai.
  3. Data ALU ke logic section me jata hai.
  4. Required logical operation perform hota hai.
  5. Result destination register me store hota hai.
Registers โ†“ Logic ALU โ†“ Logical Operation โ†“ Result Register

Comparison of Logic Operations

Operation Use
AND Masking
OR Bit Setting
XOR Bit Toggling
NOT Complement

Advantages of Logic Micro-Operations


Applications


RGPV Exam Keywords


Most Expected RGPV Questions


Conclusion

Logic Micro-Operations binary data par logical manipulation perform karte hain. AND, OR, XOR aur NOT sabse important logical operations hain. Ye operations data processing, masking, comparison aur bit manipulation ke liye extensively use hote hain aur Computer Architecture ke important building blocks hain.

Shift Micro-Operations

Shift Micro-Operations wo operations hote hain jinme register ke bits ko left ya right direction me move kiya jata hai. Ye operations Computer Architecture me multiplication, division, data manipulation aur bit processing ke liye bahut important hote hain.

Shift operations CPU ke ALU ya Shift Register circuits ke through perform kiye jate hain. RGPV IT402 Unit 1 me Shift Micro-Operations ek important topic hai jo frequently 5 Marks, 7 Marks aur 14 Marks ke questions me pucha jata hai.


Definition

Shift Micro-Operations are the operations that move the bits of a register to the left or right direction.

Easy Definition

Register ke bits ko left ya right move karne ki process ko Shift Micro-Operation kehte hain.


Need of Shift Operations


Types of Shift Micro-Operations


Shift Operation Block Diagram

Register +------------------+ | 1 | 0 | 1 | 0 | +------------------+ โ†“ Shift Unit โ†“ +------------------+ | Shifted Result | +------------------+

1. Logical Shift

Logical Shift me bits ko left ya right move kiya jata hai aur empty position me 0 fill kiya jata hai.

Types of Logical Shift


Logical Left Shift

Sabhi bits ko ek position left move kiya jata hai aur right side par 0 insert kiya jata hai.

Before 1010 After Left Shift 0100

Logical Left Shift approximately number ko 2 se multiply karta hai.

Example

1010 (10) โ†“ 0100 (20)

Logical Right Shift

Sabhi bits ko ek position right move kiya jata hai aur left side par 0 insert kiya jata hai.

Before 1010 After Right Shift 0101

Logical Right Shift approximately number ko 2 se divide karta hai.


2. Arithmetic Shift

Arithmetic Shift signed binary numbers ke liye use hota hai. Ye sign bit ko preserve karta hai.

Types of Arithmetic Shift


Arithmetic Left Shift

Arithmetic Left Shift Logical Left Shift jaisa hi hota hai. Bits left move hoti hain aur right side par 0 insert hota hai.

Before 0011 After 0110

Number approximately 2 se multiply hota hai.


Arithmetic Right Shift

Arithmetic Right Shift me sign bit preserve ki jati hai. Left side par sign bit copy hoti hai.

Before 1100 After 1110

Negative number ka sign maintain rehta hai.

Importance


3. Circular Shift (Rotate Shift)

Circular Shift me shifted-out bit ko opposite side par insert kar diya jata hai. Is operation me data loss nahi hota.

Types of Circular Shift


Rotate Left

Before 1010 After Rotate Left 0101

Sabse left bit rightmost position par aa jati hai.


Rotate Right

Before 1010 After Rotate Right 0101

Sabse right bit leftmost position par aa jati hai.


Comparison of Shift Operations

Shift Type Inserted Bit Use
Logical Shift 0 Unsigned Numbers
Arithmetic Shift Sign Bit Signed Numbers
Circular Shift Shifted-Out Bit Rotation

Shift Register

Shift Register ek sequential circuit hota hai jo binary data ko store aur shift kar sakta hai.

+----+----+----+----+ |FF1 |FF2 |FF3 |FF4 | +----+----+----+----+ Data shifts โ†’

Functions of Shift Register


Working of Shift Micro-Operations

  1. Register data select kiya jata hai.
  2. Control Unit shift command generate karti hai.
  3. Shift direction choose ki jati hai.
  4. Bits left ya right move hote hain.
  5. Result register me store hota hai.
Register Data โ†“ Shift Command โ†“ Shift Unit โ†“ Shifted Result

Applications of Shift Operations


Advantages of Shift Operations


Disadvantages


Logical Shift vs Arithmetic Shift

Logical Shift Arithmetic Shift
Used for unsigned numbers Used for signed numbers
Fills 0 Preserves sign bit
Simple operation More complex
May change sign Maintains sign

RGPV Exam Keywords


Most Expected RGPV Questions


Conclusion

Shift Micro-Operations Computer Architecture ka important part hain jo bits ko left ya right move karte hain. Logical Shift, Arithmetic Shift aur Circular Shift sabse important shift operations hain. Ye multiplication, division, data manipulation aur digital processing me extensively use hote hain. Shift Operations CPU ki efficiency aur processing speed ko improve karte hain.

Arithmetic Logic Shift Unit (ALSU)

Arithmetic Logic Shift Unit (ALSU) Computer Architecture ka ek important component hai jo Arithmetic Operations, Logical Operations aur Shift Operations ko perform karta hai. Ye ALU ka advanced version mana jata hai jo ek hi hardware unit me multiple operations execute kar sakta hai.

RGPV IT402 Unit 1 me ALSU ek highly important topic hai aur frequently 7 Marks aur 14 Marks ke questions me pucha jata hai.


Definition

Arithmetic Logic Shift Unit (ALSU) is a digital circuit that performs arithmetic operations, logical operations and shift operations on binary data.

Easy Definition

ALSU ek special hardware unit hai jo addition, subtraction, logical operations aur shifting ek hi circuit me perform karta hai.


Need of ALSU


Basic Concept of ALSU

Computer ko continuously arithmetic, logical aur shift operations perform karne padte hain. Agar har operation ke liye alag hardware use kiya jaye to hardware complexity aur cost dono increase ho jayenge.

Is problem ko solve karne ke liye Arithmetic Logic Shift Unit design ki gayi. Ye ek integrated hardware unit hai jo:

Sabhi ko single hardware structure me perform karti hai.


Functions of ALSU


Arithmetic Logic Shift Unit Block Diagram

+----------------------+ | Control Signals | +----------+-----------+ | v +-------------+ +-------------+ +-------------+ | Register A |----->| ALSU |----->| Register C | +-------------+ +-------------+ +-------------+ ^ | +-------------+ | | Register B |-------------+ +-------------+ ALSU Contains: 1. Arithmetic Circuit 2. Logic Circuit 3. Shift Circuit

Components of ALSU

1. Arithmetic Unit

Arithmetic Unit arithmetic calculations perform karti hai.

Operations

R3 โ† R1 + R2 R3 โ† R1 - R2 R1 โ† R1 + 1

2. Logic Unit

Logic Unit binary data par logical operations perform karti hai.

Operations

R1 โ† R2 AND R3 R1 โ† R2 OR R3 R1 โ† NOT R2

3. Shift Unit

Shift Unit register bits ko left ya right move karti hai.

Operations

1010 โ†“ 0100

Working of ALSU

Step 1

Input data Register A aur Register B me store hota hai.

Step 2

Control Unit operation select karti hai.

Step 3

Control Signals ALSU ko send kiye jate hain.

Step 4

ALSU selected operation perform karti hai.

Step 5

Result destination register me store hota hai.

Input Registers โ†“ Control Signals โ†“ ALSU โ†“ Output Register

Control Signals in ALSU

Control Signals determine karte hain ki ALSU kaunsa operation perform karegi.

Control Signal Operation
000 Addition
001 Subtraction
010 AND
011 OR
100 XOR
101 Shift Left
110 Shift Right

(Note: Actual control codes processor architecture par depend karte hain.)


Example of ALSU Operation

Addition Example

R1 = 0101 R2 = 0011 R3 = R1 + R2 Result = 1000

AND Example

1010 1100 AND ---- 1000

Shift Example

1010 Shift Left โ†“ 0100

Advantages of ALSU


Disadvantages of ALSU


Applications of ALSU


ALSU vs ALU

ALU ALSU
Arithmetic + Logic Operations Arithmetic + Logic + Shift Operations
Limited Functionality More Functionality
Separate Shift Circuit Required Integrated Shift Circuit
Less Complex More Complex
Traditional Design Modern Design

Hardware Representation of ALSU

Register A | | v +----------------+ | Arithmetic Unit| +----------------+ | v +----------------+ | Logic Unit | +----------------+ | v +----------------+ | Shift Unit | +----------------+ | v Output Register

RGPV Exam Keywords


Most Expected RGPV Questions


Exam Point of View (Important)

Agar RGPV me ALSU 7 ya 14 marks me aaye to answer me ye points zarur likhna:


Conclusion

Arithmetic Logic Shift Unit (ALSU) Computer Architecture ka ek powerful hardware component hai jo arithmetic, logical aur shift operations ko ek hi unit me perform karta hai. Modern processors me ALSU performance ko improve karta hai aur hardware complexity ko reduce karta hai. Ye CPU ke efficient instruction execution aur high-speed processing ke liye bahut important hai.

Important Questions - IT402 Unit 1

These are the most important and frequently asked RGPV examination questions from Computer Architecture Unit 1. Students should prepare these questions thoroughly for maximum marks in university examinations.

7 Marks Questions

14 Marks Questions

Related IT402 Unit 1 Topics

Computer Architecture and Organization Computer Generations Von Neumann Model CPU Organization Register Organization Various CPU Registers Register Transfer Bus and Memory Transfers Arithmetic Micro Operations Logic Micro Operations Shift Micro Operations Arithmetic Logic Shift Unit (ALSU)

Related IT402 Unit Pages

FAQs - IT402 Unit 1 Computer Architecture

What are the most important topics in IT402 Unit 1?

The most important topics are Von Neumann Model, CPU Organization, Register Organization, Various CPU Registers, Register Transfer, Bus and Memory Transfers, Micro-operations and Arithmetic Logic Shift Unit.

Is Von Neumann Model important for RGPV exam?

Yes, Von Neumann Model is very important. It can be asked for 5, 7 or 14 marks. Always write stored program concept, diagram, components, working and Von Neumann bottleneck.

Which register topics should I prepare?

Prepare Program Counter, Instruction Register, MAR, MDR, Accumulator, Stack Pointer and Flag Register. Also prepare PC vs IR and MAR vs MDR comparison.

What is the best way to write Bus and Memory Transfer answer?

Start with definition of bus, explain data bus, address bus and control bus, draw system bus diagram, then explain memory read and memory write operations with RTL expressions.

How can I score good marks in IT402 Unit 1?

Learn definitions, draw diagrams, write RTL examples, include comparison tables and practice 14 marks answers. Diagrams and keywords are very important for scoring in RGPV exams.