Csa Unit Iv
Csa Unit Iv
INTRODUCTION OF COMPUTER:
CPU:
A Central Processing Unit (CPU), often called the "brain" of a
computer, is the primary processor that executes instructions and
manages data. It's a hardware component responsible for carrying out
the instructions of computer programs, performing arithmetic, logical
operations, and input/output tasks.
Computer Architecture
Computer architecture is the functional design and structure of a
computer system. It focuses on how a computer’s hardware
components, like the CPU and memory, work together to execute
instructions efficiently. It involves decisions about the instruction set,
data paths, and control units to optimize performance and
functionality.
COMPUTR DESIGN:
Computer design encompasses the process of creating and
designing computer systems, including hardware components,
software, and digital devices. It involves developing computer
architecture, circuit design, and integrating hardware and software
components.
Stored program concept concept:
The stored program concept, a fundamental principle in computer
science, states that both the instructions (program) and the data a
computer operates on are stored in the same memory. This allows the
computer to execute different programs by simply changing the
contents of memory, rather than requiring physical rewiring of the
hardware.
Harvard Architecture:
The Harvard architecture is a computer architecture that separates
memory storage and buses for instructions and data, unlike the von
Neumann architecture, which uses a single memory and bus for both.
This separation allows the CPU to access instructions and read/write
data simultaneously, overcoming the bottleneck of von Neumann's
architecture and enhancing processing speed.
Reduced Instruction Set Computing (RISC) and Complex Instruction Set Computing (CISC) are
two different approaches to designing the instruction set of a CPU. Each has its own advantages
and disadvantages, and they are suited to different types of applications and hardware
environments.
RISC architecture aims to simplify the hardware by using a small set of simple instructions that
can be executed quickly. The main characteristics of RISC include:
• Simpler Instructions: RISC processors use a smaller set of simple instructions, making
them easier to decode and execute quickly1.
• Single Clock Cycle Execution: Most instructions in RISC can be executed in a single clock
cycle1.
• More General-Purpose Registers: RISC processors typically have more general-purpose
registers1.
• Simple Addressing Modes: RISC uses simple addressing modes1.
• Pipeline Capability: RISC architectures are highly pipelined, allowing for faster instruction
processing1.
Advantages of RISC
• Faster Execution: Due to simpler instructions, RISC processors can execute instructions
faster1.
• Lower Power Consumption: RISC processors consume less power, making them ideal for
portable devices1.
• Easier to Design and Manufacture: The simpler architecture of RISC processors makes
them easier and potentially cheaper to design and produce3.
Disadvantages of RISC
CISC architecture aims to reduce the number of instructions per program by using complex
instructions that can perform multiple operations. The main characteristics of CISC include:
Advantages of CISC
• Reduced Code Size: CISC processors use complex instructions that can perform multiple
operations, reducing the amount of code needed1.
• More Memory Efficient: Fewer instructions are needed to perform complex tasks,
resulting in more memory-efficient code1.
• Widely Used: CISC processors have been in use for a longer time, so they have a larger
user base and more available software1.
Disadvantages of CISC
• Slower Execution: CISC processors take longer to execute instructions due to their
complexity1.
• More Complex Design: The complex instruction sets make CISC processors more
difficult to design and manufacture1.
• Higher Power Consumption: CISC processors consume more power due to their complex
instruction sets
What is Register Transfer Language?
Register Transfer Language (RTL) is a low-level language that is used to
describe the functioning of a digital circuit and, more specifically, the
transfer of information between registers. It provides how data moves
from one register to the other and how data is processed within the digital
system. Through RTL, there is a capability of creating abstraction levels
where high-level design descriptions can be created and easily linked to
low-level hardware implementation in designing, simulating, as well as
synthesizing digital circuits.
Key Concepts of Register Transfer Language(RTL)
• The meaningful descriptions are provided by RTL for the flow of
data between the registers of the hardware.
• It is applied to the representation of synchronous circuits:
circuits that are controlled by clock signals.
• Transfer of data and logical operations are described for the
register level.
• As mentioned earlier, RTL designs are documented most often
in hardware description languages, including Verilog or VHDL.
• It is an abstraction layer between high-order Application
Specific Integrated Circuits (ASICs) and physical devices.
Usage of RTL in Digital Design
• Proclaims the nature of hardware at the register-transfer level.
• Formerly utilized to model data flow while using registers.
• Assists in generation to gate level of designs.
• It allows simulation and validation of the relevant behaviors of
the hardware under design.
• Serves as the foundation for developing circuits within the
digital domain with the use of HDLs.
Micro-operations
The operation executed on the data store in registers are called micro-
operations. They are detailed low-level instructions used in some
designs to implement complex machine instructions.
Register Transfer
The information transformed from one register to another register is
represented in symbolic form by replacement operator is called Register
Transfer.
Replacement Operator
In the statement, R2 <- R1, <- acts as a replacement operator. This
statement defines the transfer of content of register R1 into register R2.
There are various methods of RTL
1. General way of representing a register is by the name of the
register enclosed in a rectangular box as shown in (a).
addressing.
Register Reference Instructions
These instructions perform operations on registers rather than memory
addresses. The IR(14 - 12) is 111 (differentiates it from memory
reference) and IR(15) is 0 (differentiates it from input/output
instructions). The rest 12 bits specify register operation.
Input/Output Instructions
These instructions are for communication between computer and outside
environment. The IR(14 - 12) is 111 (differentiates it from memory
reference) and IR(15) is 1 (differentiates it from register reference
instructions). The rest 12 bits specify I/O operation.
---
## **Types of Buses**
- **Examples:**
A **16-bit Common Bus System** means that the data bus can
transfer **16 bits (2 bytes)** at a time. The address bus width
determines the memory capacity, while the control bus ensures
proper coordination.
2. **Bus Transmission:**
- The destination register (e.g., **Register B**) reads the data from
the bus.
4. **Control Signals:**
3. **Step 3:** **R2** reads the bus data and stores it.
### **Disadvantages**
---
## **Conclusion**