Sie sind auf Seite 1von 2

Q.

1
What is associative memory? Why it is preferred among other types
of memory. Draw the basic block diagram of CAM and deduce the
logic equation used to find the match in the associative memory.

Associative Memory
An associative memory can be considered as a memory unit whose stored data can be
identified for access by the content of the data itself rather than by an address
or memory location.

Associative memory is often referred to as Content Addressable Memory (CAM).

When a write operation is performed on associative memory, no address or memory


location is given to the word.
The memory itself is capable of finding an empty unused location to store the word.

On the other hand, when the word is to be read from an associative memory, the
content of the word, or part of the word, is specified.
The words which match the specified content are located by the memory and are
marked for reading.

The following diagram shows the block representation of an Associative memory.

Associative Memory
From the block diagram, we can say that an associative memory consists of a memory
array and logic for 'm' words with 'n' bits per word.

The functional registers like the argument register A and key register K each have
n bits, one for each bit of a word. The match register M consists of m bits, one
for each memory word.

The words which are kept in the memory are compared in parallel with the content of
the argument register.

The key register (K) provides a mask for choosing a particular field or key in the
argument word.
If the key register contains a binary value of all 1's, then the entire argument is
compared with each memory word.
Otherwise, only those bits in the argument that have 1's in their corresponding
position of the key register are compared.
Thus, the key provides a mask for identifying a piece of information which
specifies how the reference to memory is made.

***************************************
Q.2
Computer Architecture: Interrupts
Data transfer between the CPU and the peripherals is initiated by the CPU. But the
CPU cannot start the transfer unless the peripheral is ready to communicate with
the CPU. When a device is ready to communicate with the CPU, it generates an
interrupt signal. A number of input-output devices are attached to the computer and
each device is able to generate an interrupt request.

The main job of the interrupt system is to identify the source of the interrupt.
There is also a possibility that several devices will request simultaneously for
CPU communication. Then, the interrupt system has to decide which device is to be
serviced first.
Priority Interrupt
A priority interrupt is a system which decides the priority at which various
devices, which generates the interrupt signal at the same time, will be serviced by
the CPU. The system has authority to decide which conditions are allowed to
interrupt the CPU, while some other interrupt is being serviced. Generally, devices
with high speed transfer such as magnetic disks are given high priority and slow
devices such as keyboards are given low priority.

When two or more devices interrupt the computer simultaneously, the computer
services the device with the higher priority first.

Types of Interrupts:
Following are some different types of interrupts:

Hardware Interrupts
When the signal for the processor is from an external device or hardware then this
interrupts is known as hardware interrupt.

Let us consider an example: when we press any key on our keyboard to do some
action, then this pressing of the key will generate an interrupt signal for the
processor to perform certain action. Such an interrupt can be of two types:

Maskable Interrupt
The hardware interrupts which can be delayed when a much high priority interrupt
has occurred at the same time.

Non Maskable Interrupt


The hardware interrupts which cannot be delayed and should be processed by the
processor immediately.

Software Interrupts
The interrupt that is caused by any internal system of the computer system is known
as a software interrupt. It can also be of two types:

Normal Interrupt
The interrupts that are caused by software instructions are called normal software
interrupts.

Exception
Unplanned interrupts which are produced during the execution of some program are
called exceptions, such as division by zero.

***************************************

Q.3
Goto geekforgeeks .

Das könnte Ihnen auch gefallen