Today, our communication elements are - Basic structure of the computer/Functional units, software, Performance Issues in Software, Machine instructions and programs, Types of instructions, Instruction Sets, Instruction format, Assembly Language, Stacks and Queues, Subroutines, Processor organization,Information representation, Number Formats.

Basic structure of the computer/Functional units: -
A computer is an electronic machine designed to process data and produce meaningful information. The original structure of the computer is arranged in several functional devices, each playing a specific role in ensuring smooth operation.
Input unit:
The input unit is responsible for feeding data and instructions into the computer. Devices such as keyboards, mice, scanners, and microphones act as input devices. They convert user information into machine-readable form.
Output Unit:
The output unit shows or distributes treated results. General output units include screens, printers, and speakers. These devices convert the binary results of the computer into a human-readable form.
Memory (storage device):
Memory stores data and instructions temporarily or permanently. The primary memory (RAM and ROM) is sharp but limited, while secondary storage (hard drives, SSDs) has large amounts of data. Cash memory provides high-speed access for often-used instructions.
Central Processing Unit (CPU):
The CPU is the brain of the computer. These are:
- Control unit (Cu): Directs the current of data and instructions.
- Arithmetic logic unit (ALU): Calculate and perform logical operations.
- Register: Small, high-speed storage for instant data processing.
System bus:
A system combines all components that activate data transfer. This includes data, address, and control buses.
In summary, data composition ensures a smooth interaction between the entrance, processing, memory, and output units so that it can perform complex functions effectively.
software: -
It is a set of programs, instructions, and related data that directs a computer to perform specific functions. Unlike hardware, which refers to physical components, software is abstract and provides functionality that makes the computer useful.
Types of Software
1. System software
The system software manages and controls the hardware components on the computer, creating an environment to run the application program. This includes:
Operating system (OS):
Works as an interface between hardware and users, handling memory, file system, and unit control. Examples: Windows, Linux, macOS.
Utility Programs:
Tool program: Accessories that perform maintenance features such as antivirus scanning, file compression, and disc cleansing of the disc.
2. Application software
The application software is designed to help users perform specific functions. This includes:
- General application: word processor, spreadsheet, presentation equipment, and browser.
- Special purpose: Sulle for special areas, such as accounting software, medical clinical equipment, or engineering design programmes.
3. Programming software
This type provides equipment to create new software for the programmer. This includes compiler, interpreter, assembly, and integrated development environment (IDE).
The importance of software
Software enables hardware to function effectively. Without software, hardware is useless. It simplifies complex features, automatically improves processes, increases productivity, and supports communication and entertainment.
conclusion
In summary, the software is the spine of modern data processing, reducing the difference between human needs and machine skills. Both system and application software are important for effective and targeted computer use.
Performance Issues in Software: -
General Performance Problems
High response time
Memory leaks
CPU overload
Bad scalability
Resource
Solutions to Performance Issues
- Use effective algorithms and customised codes.
- Common performance tests and profiling.
- Proper memory handling to avoid leaks.
- Design a scalable architecture to deal with development.
- Disposal is often used to reduce treatment time.
conclusion
Machine instructions and programs: -
Machine instructions
- Operation code (OPCODE): Defines action, such as joints, subtraction or data transfer.
- Operand: Specify the location of data or data (in memory or register).
- Address Mode: Defines how operands are reached (instant, direct, indirect or register mode).
- Instructional format: The total design, which usually consists of opcode and operand fields.
Categories of machine instructions
- Data transfer instructions: Transfer data between memory, CPU, and I/O device.
- Arithmetic instructions: Mutical Operations (Add, Sub, MUD).
- Logical instructions: Export comparison and logical operations (and, or not).
- Control instructions: Change the execution sequence (jump, ring, return).
- Input/output Instructions: Manage communication with external devices.
Programs
Importance
Types of instructions: -
Data Transfer Instructions:
- Load: Transfer data from memory to a register.
- Save: Send data from a register to memory.
- Move: Copy data between the registers.
Arithmetic instructions
- Add, subtract, multiply, and divide for additions.
- Increase/subtraction operations (e.g., ink, December).
Logical instructions
- And, or, xor, and not for the bitwise operation.
- Comparison (CMP): The guide program compares two values for the program's current.
Control (branch) instructions
- JAMP (JMP): Transfer control to another part of the program.
- Call/return: Used in the execution of Sabarutin.
- Conditional branches: Perform based on specific conditions (e.g., JZ – jump if zero).
Input/output instructions
- In: Read data from an input unit.
- Out: Send data to the exit device.
conclusion
Instruction Sets: -
Component of an instructional set
- Opcodes: Specify the action, such as AD, Move, or Jumping.
- Operand: Identify the data or memory placements used.
- Addressed mode: Specify how operands are available (instant, direct, indirect, or register).
- Instructional format: It defines how OPCA and operands in the binary are organized.
Types of instructional set
Complex Instruction Set Comp (CISC):
- A large set of instructions; some are very complex.
- Per program, it reduces the number of instructions but can take more cycles to perform.
- Example: Intel X86 processor.
Low-Instruction-Set Computer Management (RISC):
- Offers a small, highly custom set of simple instructions.
- Each instruction works in a single cycle, improving performance.
- Example: ARM processor.
Importance
conclusion
Instruction format: -
Component of Instruction Format
- OPCODE (Operation Code): Identify Operation, Such AS AD, Load, or Jump.
- Operand (s): Specify the location of the data or the location of the data.
- Addressing Mode: This Defines How The Operand Is Accessed (Eg, Direct, Indirect, or Immediate).
- Instructions Length: Total Number of Bits Used for Instructions. This can be decided (RISC) or Char (CISC).
Types of instructions
- ZERO-ADDRESS INSTRUCTIONS: Work on an underlying stack. Example: Push, pop.
- One-address instruction: use a single operand, which often involves an accumulator. Example: Load A.
- Two-Address Instructions: Two Operands Are Required, One of Which Usually Stores The Result. Example: Add A, b.
- Three-Address Instructions: Use Three Operands-Two Sources and A Destination. Example: A, B, C. Add
Importance
conclusion
Assembly Language: -
Features of Assembly Language
- Mnemonic for instructions: For Example, instead of Writing Binary Opcode, Add Extra to Data Transfer.
- Opens and Labels: Opens Register, Memory Location or Constant Specify, while Labels are used for program Control (Eg, Loops, Jumps).
- Mounting: A special program called an assembler is used to translate the assembly language instructions into machine code that the CPU can execute.
- Hardware Specificity: The Assembly is processor-dependent, which means that the programs written for one CPU architecture cannot run on another.
Advantage
- Provide Direct Control over hardware.
- Causes a highly efficient and fixed program.
- Useful for System Programming, Such AS Operating System, Device Driver, and Embedded System.
Disadvantages
- It is difficult to learn and write compared to high-level languages.
- The programs are long and difficult to troubleshoot.
- Lack of portability across different processors.
Example
conclusion
Stacks and Queues: -
Stack
Basic Operations:
- Push: Insert an item in the stack.
- POP: Remove the top element from the pile.
- Peek (top): Look at the top element without removing it.
Application:
- Expressive evaluation and conversion (Infix to PostFix).
- Functional access administration in programming.
- Fabric in text editors.
Queue
Basic Operations:
- Request: Put an item in the back end.
- DEQUEUE: Remove an item from the front end.
- Front/rear: items that reach the ends without removing them.
Types of queues:
- Simple queues: Basic FIFO structure.
- Circular queue: The final position already returns.
- Priority queue: Elements are served on a priority basis, not the situation.
- Double queue: insertion and deletion at both ends.
Application:
- Planning work in the operating system.
- Management of requests in printers or networks.
- After the real-world queue (eg, ticket disk).
conclusion
Subroutines: -
Features of Subroutines:
- Re-purpose: Code Can Be Written Once and Can Be Reused Many Times.
- Modularity: Programs are divided into small, manageable classes.
- Parameter: Input values can be sent to subscribe to adapt the operation.
- Return value: Some subtleties return as a result of conversation programs.
Types of substrates
- Processes: Work, but cannot return values.
- Work: Work and Return the Result.
- Rejuvenated Sabarutin: A subrutin that calls itself until the base position is complicated.
Advantage
- The code reduces repetition.
- The Program Improves Readability and Debugging.
- Make programs easier to test and maintain.
Example
Application
- Mathematical calculation.
- String manipulation.
- Input/output operations.
- Handling repetitive tasks in large programs.
conclusion
Processor organization: -
Information representation: -
Number Formats: -
1. Integer representation:
- Sign-magnitude: The most important bit (MSB) represents the signal (0 for positive, 1 for negative).
- 1’s Complement: Negative numbers are formed by inverting all pieces of positive numbers.
- 2’s Complement: The most commonly used format, where negative numbers are formed by inverting all bits and adding 1. It simplifies arithmetic operations and avoids many representations of zero.
2. Fixed point representation:
3. Liquid Point Representation:
4. Other format:
- Binary-coded decimal (BCD): Each decimal digit is depicted separately in the binary.
- Hexadecimal and octal: Used as short-term notation for binary, making representation compact and readable.
-------------------------------------------MODULE-2 NEXTPAGE-------------------------------------------
No comments:
Post a Comment