Professional Documents
Culture Documents
Register and Counter
Register and Counter
processing unit (CPU). It plays a vital role in holding the data required by the
CPU for immediate processing and is made up of flip-flops.
It usually holds a limited amount of data ranging from 8 to 64 bits, depending
on the processor architecture.
Accumulator Register: The accumulator acts as a central point for arithmetic
and logical operations within the CPU. It fetches data from memory and stores
intermediate results during calculations Arithmetic operations such as
addition, subtraction, multiplication, and division often take place in the
accumulator.
Program Counter (PC) Register: The program counter is a special register
that keeps track of the memory address of the next instruction to be fetched
and executed. As the CPU executes each instruction in sequence the program
counter is updated to indicate the next instruction’s address in memory.
General-Purpose Registers: General-purpose registers are versatile because
they can hold data and memory addresses. They are used for various
calculations and data manipulation tasks during program execution.
Instruction Register (IR): The instruction register holds the currently fetched
instruction from memory.
Memory Address Register (MAR): The memory address register stores the
memory address of data or instructions to be accessed or written in memory
Memory Data Register (MDR): The Memory Data Register holds the actual
data fetched from or written to memory.
Stack Pointer (SP): The stack pointer is used in stack-based memory
operations. It keeps track of the top of the stack. which is a region of memory
used for temporary storage of data and return addresses during function calls.
Floating-Point Registers: The Floating-point registers are specialized for
handling floating-point numbers and performing floating-point arithmetic
operations.
Context Switching: the CPU switches between different processes or threads.
it needs to save and restore the context of each process. Registers are used to
store the CPU’s state including the program counter stack pointer and general-
purpose registers during context switching.
Advantages Disadvantages
1. Speed: The Registers offer fast access 1. Limited Capacity: The Registers have a
times due to their proximity to the CPU, small size, restricting the amount of data
enhancing overall system performance. they can hold at a time.
2. Data Processing Efficiency: They 2. Cost: The Registers are made from flip-
enable quick data manipulation, reducing flops and require more hardware,
the need to access slower main memory contributing to the overall cost of the
frequently. processor.
There are two types of shifting of data are available and these are serial shifting &
parallel shifting.
10. In serial shifting method, data shifting occurs One bit at a time
1. Based on how binary information is entered or shifted out, shift registers are
classified into ___4____ categories.
3. A shift register that will accept a parallel input or a bidirectional serial load and
internal shift features is called as? c) Universal
5. What is meant by the parallel load of a shift register? All FFs are preset with
data
6. The group of bits 11001 is serially shifted (right-most bit first) into a 5-bit
parallel output shift register with an initial state 01110. After three clock pulses,
the register contains 00101
7. Assume that a 4-bit serial in/serial out shift register is initially clear. We wish to
store the nibble 1100. What will be the 4-bit pattern after the second clock pulse?
(Right-most bit first) ) 0000
8. A serial in/parallel out, 4-bit shift register initially contains all 1s. The data
nibble 0111 is waiting to enter. After four clock pulses, the register contains
0111
9. With a 200 kHz clock frequency, eight bits can be serially entered into a shift
register in 40 μs
10. An 8-bit serial in/serial out shift register is used with a clock frequency of 2
MHz to achieve a time delay (td) of 4 us