Introduction: A Simple ALU | Digital Electronics - Electrical Engineering (EE) PDF Download

Representing and storing numbers were the basic operations of the computers of earlier times. The real go came when computation, manipulating numbers like adding and multiplying came into the picture. These operations are handled by the computer’s arithmetic logic unit (ALU). The ALU is the mathematical brain of a computer. The first ALU (Arithmetic Logic Unit) was indeed the INTEL 74181, which was implemented as part of the 7400 series TTL (Transistor-Transistor Logic) integrated circuits. It was released by Intel in 1970.

What is ALU?

ALU is a digital circuit that provides arithmetic and logic operations. It is the fundamental building block of the central processing unit of a computer. A modern central processing unit(CPU) has a very powerful ALU and it is complex in design. In addition to ALU modern CPU contains a control unit and a set of registers. Most of the operations are performed by one or more ALUs, which load data from the input register. Registers are a small amount of storage available to the CPU. These registers can be accessed very fast. The control unit tells ALU what operation to perform on the available data. After calculation/manipulation, the ALU stores the output in an output register.

Introduction: A Simple ALU | Digital Electronics - Electrical Engineering (EE)

The CPU can be divided into two sections: the data section and the control section. The data section is also known as the data path.

BUS

In early computers BUS were parallel electrical wires with multiple hardware connections. Therefore a bus is a communication system that transfers data between components inside a computer, or between computers. It includes hardware components like wires, optical fibers, etc and software, including communication protocols. The Registers, ALU, and the interconnecting BUS are collectively referred to as data paths. 

Types of the bus

There are mainly three type of bus:-

  • Address bus: Transfers memory addresses from the processor to components like storage and input/output devices. It’s one-way communication.
  • Data bus: carries the data between the processor and other components. The data bus is bidirectional.
  • Control bus: carries control signals from the processor to other components. The control bus also carries the clock’s pulses. The control bus is unidirectional.

The bus can be dedicated, i.e., it can be used for a single purpose or it can be multiplexed, i.e., it can be used for multiple purposes. when we would have different kinds of buses, different types of bus organizations will take place.

Registers

In Computer Architecture, the Registers are very fast computer memory which is used to execute programs and operations efficiently. but In that scenario, registers serve as gates, sending signals to various components to carry out little tasks. Register signals are directed by the control unit, which also operates the registers.

The following list of five registers for in-out signal data storage:

  1. Program Counter: A program counter (PC) is a CPU register in the computer processor which has the address of the next instruction to be executed from memory. As each instruction gets fetched, the program counter increases its stored value by 1. It is a digital counter needed for faster execution of tasks as well as for tracking the current execution point. 
  2. Instruction Register: In computing, an instruction register (IR) is the part of a CPU’s control unit that holds the instruction currently being executed or decoded. The instruction register specifically holds the instruction and provides it to the instruction decoder circuit. 
  3. Memory Address Register: The Memory Address Register (MAR) is the CPU register that either stores the memory address from which data will be fetched from the CPU, or the address to which data will be sent and stored. It is a temporary storage component in the CPU(central processing unit) that temporarily stores the address (location) of the data sent by the memory unit until the instruction for the particular data is executed. 
  4. Memory Data Register: The memory data register (MDR) is the register in a computer’s processor, or central processing unit, CPU, that stores the data being transferred to and from the immediate access storage. Memory data register (MDR) is also known as memory buffer register (MBR). 
  5. General Purpose Register: General-purpose registers are used to store temporary data within the microprocessor. It is a multipurpose register. They can be used either by a programmer or by a user.

What is Data Path?

Suppose that the CPU needs to carry out any data processing action, such as copying data from memory to a register and vice versa, moving register content from one register to another, or adding two numbers in the ALU. Therefore, whenever a data processing action takes place in the CPU, the data involved for that operation follows a particular path, or data path.

Data paths are made up of various functional components, such as multipliers or arithmetic logic units. Data path is is required to do data processing operations.

One Bus Organization

One Bus OrganizationOne Bus Organization

In one bus organization, a single bus is used for multiple purposes. A set of general-purpose registers, program counters, instruction registers, memory address registers (MAR), memory data registers (MDR) are connected with the single bus. Memory read/write can be done with MAR and MDR. The program counterpoints to the memory location from where the next instruction is to be fetched. Instruction register is that very register will hold the copy of the current instruction. In the case of one bus organization, at a time only one operand can be read from the bus. 

As a result, if the requirement is to read two operands for the operation then the read operation needs to be carried twice. So that’s why it is making the process a little longer. One of the advantages of one bus organization is that it is one of the simplest and also this is very cheap to implement. At the same time a disadvantage lies that it has only one bus and this “one bus” is accessed by all general-purpose registers, program counter, instruction register, MAR, MDR making each and every operation sequential. No one recommends this architecture nowadays.

Two Bus Organization

To overcome the disadvantage of one bus organization another architecture was developed known as two bus organization. In two bus organizations, there are two buses. The general-purpose register can read/write from both the buses. In this case, two operands can be fetched at the same time because of the two buses. One bus fetch operand for ALU and another bus fetch for register. The situation arises when both buses are busy fetching operands, the output can be stored in a temporary register and when the buses are free, the particular output can be dumped on the buses.
There are two versions of two bus organizations, i.e., in-bus and out-bus. From in-bus, the general-purpose register can read data and to the out bus, the general-purpose registers can write data. Here buses get dedicated. 

Introduction: A Simple ALU | Digital Electronics - Electrical Engineering (EE)
Introduction: A Simple ALU | Digital Electronics - Electrical Engineering (EE)

Three Bus Organization

In three bus organizations we have three buses, OUT bus1, OUT bus2, and an IN bus. From the out buses, we can get the operand which can come from the general-purpose register and evaluated in ALU and the output is dropped on In Bus so it can be sent to respective registers. This implementation is a bit complex but faster in nature because in parallel two operands can flow into ALU and out of ALU. It was developed to overcome the busy waiting problem of two bus organizations. In this structure after execution, the output can be dropped on the bus without waiting because of the presence of an extra bus. The structure is given below in the figure. 

Introduction: A Simple ALU | Digital Electronics - Electrical Engineering (EE)

The main advantages of multiple bus organizations over the single bus are as given below. 

  • Increase in size of the registers. 
  • Reduction in the number of cycles for execution. 
  • Increases the speed of execution or we can say faster execution. 
The document Introduction: A Simple ALU | Digital Electronics - Electrical Engineering (EE) is a part of the Electrical Engineering (EE) Course Digital Electronics.
All you need of Electrical Engineering (EE) at this link: Electrical Engineering (EE)
115 videos|71 docs|58 tests

Top Courses for Electrical Engineering (EE)

FAQs on Introduction: A Simple ALU - Digital Electronics - Electrical Engineering (EE)

1. What is the function of an Arithmetic and Logic Unit in connecting digital circuits together?
Ans. The Arithmetic and Logic Unit (ALU) is responsible for performing arithmetic and logic operations on data in digital circuits. It is a crucial component that connects different digital circuits by carrying out computations and making decisions based on the input data.
2. What are the component parts of an Arithmetic and Logic Unit?
Ans. The component parts of an ALU typically include logic gates, registers, multiplexers, and other digital circuit elements. These parts work together to execute arithmetic operations, logical comparisons, and data manipulation tasks within the ALU.
3. How do multiplexers play a role in the operation of an Arithmetic and Logic Unit?
Ans. Multiplexers are used in an ALU to select between different data inputs and choose the appropriate output based on control signals. They help in routing data within the ALU, enabling it to perform various arithmetic and logic operations efficiently.
4. What is the significance of having a simple ALU in digital circuits?
Ans. A simple ALU is essential in digital circuits as it provides the basic functionality for carrying out arithmetic and logic operations. It serves as the core processing unit that connects different components together and facilitates the execution of computations within the circuit.
5. How does an Arithmetic and Logic Unit contribute to the overall performance of a digital system?
Ans. The ALU plays a critical role in enhancing the overall performance of a digital system by efficiently processing data, executing instructions, and making logical decisions. Its ability to perform arithmetic and logic operations quickly and accurately significantly impacts the speed and effectiveness of the digital system.
115 videos|71 docs|58 tests
Download as PDF
Explore Courses for Electrical Engineering (EE) exam

Top Courses for Electrical Engineering (EE)

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Sample Paper

,

practice quizzes

,

Important questions

,

Viva Questions

,

past year papers

,

ppt

,

Free

,

Semester Notes

,

Summary

,

shortcuts and tricks

,

Exam

,

mock tests for examination

,

Previous Year Questions with Solutions

,

study material

,

video lectures

,

Introduction: A Simple ALU | Digital Electronics - Electrical Engineering (EE)

,

MCQs

,

Extra Questions

,

Introduction: A Simple ALU | Digital Electronics - Electrical Engineering (EE)

,

Introduction: A Simple ALU | Digital Electronics - Electrical Engineering (EE)

,

Objective type Questions

,

pdf

;