SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
1
Associative Memory
 Many data processing applications require searching of an item efficiently.
 An Assembler program searches the symbol address table in order to extract
the symbol’s binary equivalent.
 The number of accesses to memory depends on the location of the item and
the efficiency of search algorithm.
 Many Search algorithm have been developed to minimize the number of access
while searching for an item in a random or sequential access memory.
 The time required to find an item stored in memory can be reduced
considerably if stored data can be identified by the content of the data itself
rather than an address.
 A memory unit accessed by content is called an associative memory or
Content Addressable Memory (CAM).
 This type of memory is accessed simultaneously and in parallel on the basis of
data content renther that by specific address or location.
 When a word is written to associative memory no address is given. The
memory is capable of finding an empty unused location to store the word.
 When a word is to be read from an associative memory, the content of the
word, or part of the word is specified. The memory locates all words which
match the specified content and marks them for reading.
 An associative memory is more expensive than a random access memory, so
are used in application where search time is very critical and must be very
short.
Hardware Organization
 It consist of a memory array and logic for m Words with n bits per word.
 Argument register A and key register K Each have n bits.
 The match register M has m bits, one for each memory word.
 Each word in the memory is compared in parallel with the content of the
argument register. The words that match the bits of the argument register set
a corresponding bit in the match register. Then reading is accomplished by a
sequential access to memory.
2
Key register
 It provides a mask for choosing a particular field or key in the argument word.
 The entire argument is compared with each memory word if the key register
contains all 1’s. Otherwise, only those bits in the argument that have 1’s in
their corresponding position of the key register are compared.
Example
Relationship between the memory array and external registers
 Cell Cij is the cell for bit j in word i. A bit Aj in the argument register is
compared with all bits in column j of the array provided that kj =1.
 This is done for all comumns j=1,2,…,n. If match occurs between all the
unmasked bits of the argument and the bits in word I, then set Mi to 1.
Otherwise set Mi to 0.
3
One cell of associative memory
 It consist of a flip-flop storage element Fij and circuit for reading, writing ,
and matching the cell.
Match Logic
 Word i is equal to the argument in A if Aj=Fij for j=1,2,..,n. Two bits are equal if
they are both 1 or both 0. The equality of two bits can be expressed logically
by Boolean function.
xj= AjFij + Aj’Fij’
 where xj = 1 if the pair of bits in position j are equal; otherwise, xj=0.
 For a word i to be equal to the argument in A we must have all xj variables
equal to 1. This is the condition for setting the corresponding match bit Mi to
1. Boolean function for this condition is
Mi =x1x2… xn
 If kj=0, the corresponding bits of Aj and Fij need no comparison. Only when
Kj=1 must they be compared. This requirement is achieved by ORing each
term with Kj’, thus
{
 The match logic for word i in an associative memory can now be expressed by
the following Boolean function.
Mi = (x1 + K1’) (x2 + K2’) (x3 + K3’) … (xn + Kn’)
 If we substitute the original definition of xj.
Mi = ∏ (AjFij + Aj’Fij’+ Kj’)
 where ∏ is a product symbol designating the AND operation of all n terms.
4
 Each cell requires 2 AND gets and one OR gate. The inverters for Aj and Kj are
needed once for each column and are used for all bits in the column. The
output to all OR gates in the cells of the same word go to the input of the
common AND get to Generate the match signal for Mi.
Read Operation
 if more than one word in memory matches, then read in sequence by applying
read signal to each word line with Mi =1.
 If only one word may match, connect output Mi directly to the read line in the
same word position.
Write Operation
 Writing in an associative memory can take different forms. If entire memory is
loaded with new information, then writing can be done by addressing each
location in sequence.
 If unwanted words have to be deleted and new words inserted one at a time
using tag register.
 A word is deleted for memory be clearing its tag bit to 0. After the new word is
stored in memory it is made active by setting its tag bit to 1.

More Related Content

PDF
Computer organization memory
Deepak John
 
PPTX
Cache memory ppt
Arpita Naik
 
PPTX
memory reference instruction
DeepikaT13
 
PPTX
Memory organization (Computer architecture)
Sandesh Jonchhe
 
PPTX
8251 USART
ShivamSood22
 
PDF
Memory organization
Dr. Abhineet Anand
 
PPTX
Stacks & subroutines 1
deval patel
 
PPTX
contiguous memory allocation.pptx
Rajapriya82
 
Computer organization memory
Deepak John
 
Cache memory ppt
Arpita Naik
 
memory reference instruction
DeepikaT13
 
Memory organization (Computer architecture)
Sandesh Jonchhe
 
8251 USART
ShivamSood22
 
Memory organization
Dr. Abhineet Anand
 
Stacks & subroutines 1
deval patel
 
contiguous memory allocation.pptx
Rajapriya82
 

What's hot (20)

PPTX
Computer arithmetic
Balakrishna Chowdary
 
PPTX
Stack organization
chauhankapil
 
PPTX
Read & write
malaybpramanik
 
PPTX
Flag Register in 8086.pptx microprocessor 8085
gaherwarsaloni1234
 
PPTX
Memory Organization
Kamal Acharya
 
PPS
Registers and-common-bus
Anuj Modi
 
PPS
Ram and-rom-chips
Anuj Modi
 
PPTX
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
priya Nithya
 
PPTX
Interrupts
Urwa Shanza
 
PPTX
Unit 4-booth algorithm
vishal choudhary
 
PPT
Instruction codes and computer registers
Sanjeev Patel
 
PPTX
Memory Reference Instructions
Rabin BK
 
PPTX
Addressing modes
karthiga selvaraju
 
PPT
Pipeline hazards in computer Architecture ppt
mali yogesh kumar
 
PPT
Instruction cycle
shweta-sharma99
 
PPT
Semiconductor memories
kitturashmikittu
 
PPTX
Instruction codes
pradeepa velmurugan
 
PPTX
8086 microprocessor-architecture
prasadpawaskar
 
PPTX
Direct memory access (dma)
Zubair Khalid
 
PDF
Unit 4-input-output organization
vishal choudhary
 
Computer arithmetic
Balakrishna Chowdary
 
Stack organization
chauhankapil
 
Read & write
malaybpramanik
 
Flag Register in 8086.pptx microprocessor 8085
gaherwarsaloni1234
 
Memory Organization
Kamal Acharya
 
Registers and-common-bus
Anuj Modi
 
Ram and-rom-chips
Anuj Modi
 
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
priya Nithya
 
Interrupts
Urwa Shanza
 
Unit 4-booth algorithm
vishal choudhary
 
Instruction codes and computer registers
Sanjeev Patel
 
Memory Reference Instructions
Rabin BK
 
Addressing modes
karthiga selvaraju
 
Pipeline hazards in computer Architecture ppt
mali yogesh kumar
 
Instruction cycle
shweta-sharma99
 
Semiconductor memories
kitturashmikittu
 
Instruction codes
pradeepa velmurugan
 
8086 microprocessor-architecture
prasadpawaskar
 
Direct memory access (dma)
Zubair Khalid
 
Unit 4-input-output organization
vishal choudhary
 
Ad

Similar to Associative memory (20)

PPTX
Associative memory.pptx
Shrisanjay5
 
PPTX
Associative memory
Charmi Patel
 
PDF
COA
vinayvinay82
 
PPTX
Associative memory 14208
Ameer Mehmood
 
PPTX
team_-8[1].pptxvjigivhihigigiiggigiiggui
HrushikeshDandu
 
PPTX
team -8.pptxvjkvgigioiibibibiibbiviggihu
HrushikeshDandu
 
PPTX
Associative Memory in Computer architecture
pritheeshg03
 
PPTX
Memory Organization digital image processing
NishmikaPothana
 
PPT
Unit 5-lecture-1
vishal choudhary
 
PPTX
Random Access Memory
university of education,Lahore
 
PPTX
Input output interface its types and memory
drjaspreet25072
 
PPT
Memory organization is the chapter from Mano
krishnamohanG2
 
PDF
IRJET-RFID Based Book Tracking in Libraries: Using Bicam
IRJET Journal
 
PDF
Memory Organization.pdf
AshishPandey502
 
PPTX
DIGITAL DESIGNS SLIDES 7 ENGINEERING 2ND YEAR
kasheen2803
 
PPT
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Hsien-Hsin Sean Lee, Ph.D.
 
PPTX
Unit-6.pptx lk kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
ZeelGoyani
 
PPT
Memory Devices.ppt
20COB258PrabhatKumar
 
PPTX
Memory organization
ishapadhy
 
PPTX
unit 5 M PROGRAMMBLE LOGIC DEVICES (1).pptx
TharcisPaulraj
 
Associative memory.pptx
Shrisanjay5
 
Associative memory
Charmi Patel
 
Associative memory 14208
Ameer Mehmood
 
team_-8[1].pptxvjigivhihigigiiggigiiggui
HrushikeshDandu
 
team -8.pptxvjkvgigioiibibibiibbiviggihu
HrushikeshDandu
 
Associative Memory in Computer architecture
pritheeshg03
 
Memory Organization digital image processing
NishmikaPothana
 
Unit 5-lecture-1
vishal choudhary
 
Random Access Memory
university of education,Lahore
 
Input output interface its types and memory
drjaspreet25072
 
Memory organization is the chapter from Mano
krishnamohanG2
 
IRJET-RFID Based Book Tracking in Libraries: Using Bicam
IRJET Journal
 
Memory Organization.pdf
AshishPandey502
 
DIGITAL DESIGNS SLIDES 7 ENGINEERING 2ND YEAR
kasheen2803
 
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Hsien-Hsin Sean Lee, Ph.D.
 
Unit-6.pptx lk kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
ZeelGoyani
 
Memory Devices.ppt
20COB258PrabhatKumar
 
Memory organization
ishapadhy
 
unit 5 M PROGRAMMBLE LOGIC DEVICES (1).pptx
TharcisPaulraj
 
Ad

More from NancyBeaulah_R (12)

PDF
Addressing Modes
NancyBeaulah_R
 
PPTX
Common Bus System.pptx
NancyBeaulah_R
 
PPTX
Computer Registers.pptx
NancyBeaulah_R
 
PPTX
Machine Learning.pptx
NancyBeaulah_R
 
PPTX
Chapter 1 2 - some size factors
NancyBeaulah_R
 
PPTX
Chapter 1 1 - intro ppt
NancyBeaulah_R
 
PDF
Memory hierarchy
NancyBeaulah_R
 
PDF
Asynchronous data transfer
NancyBeaulah_R
 
PPTX
Software maintenance
NancyBeaulah_R
 
PPTX
Walkthroughs
NancyBeaulah_R
 
PPTX
Quality and productivity factors
NancyBeaulah_R
 
PDF
Programming team structure
NancyBeaulah_R
 
Addressing Modes
NancyBeaulah_R
 
Common Bus System.pptx
NancyBeaulah_R
 
Computer Registers.pptx
NancyBeaulah_R
 
Machine Learning.pptx
NancyBeaulah_R
 
Chapter 1 2 - some size factors
NancyBeaulah_R
 
Chapter 1 1 - intro ppt
NancyBeaulah_R
 
Memory hierarchy
NancyBeaulah_R
 
Asynchronous data transfer
NancyBeaulah_R
 
Software maintenance
NancyBeaulah_R
 
Walkthroughs
NancyBeaulah_R
 
Quality and productivity factors
NancyBeaulah_R
 
Programming team structure
NancyBeaulah_R
 

Recently uploaded (20)

PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
PPTX
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
PPTX
How to Apply for a Job From Odoo 18 Website
Celine George
 
PDF
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
PPTX
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
PPTX
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Celine George
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PPTX
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
PDF
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PPTX
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
How to Apply for a Job From Odoo 18 Website
Celine George
 
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
Command Palatte in Odoo 18.1 Spreadsheet - Odoo Slides
Celine George
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 

Associative memory

  • 1. 1 Associative Memory  Many data processing applications require searching of an item efficiently.  An Assembler program searches the symbol address table in order to extract the symbol’s binary equivalent.  The number of accesses to memory depends on the location of the item and the efficiency of search algorithm.  Many Search algorithm have been developed to minimize the number of access while searching for an item in a random or sequential access memory.  The time required to find an item stored in memory can be reduced considerably if stored data can be identified by the content of the data itself rather than an address.  A memory unit accessed by content is called an associative memory or Content Addressable Memory (CAM).  This type of memory is accessed simultaneously and in parallel on the basis of data content renther that by specific address or location.  When a word is written to associative memory no address is given. The memory is capable of finding an empty unused location to store the word.  When a word is to be read from an associative memory, the content of the word, or part of the word is specified. The memory locates all words which match the specified content and marks them for reading.  An associative memory is more expensive than a random access memory, so are used in application where search time is very critical and must be very short. Hardware Organization  It consist of a memory array and logic for m Words with n bits per word.  Argument register A and key register K Each have n bits.  The match register M has m bits, one for each memory word.  Each word in the memory is compared in parallel with the content of the argument register. The words that match the bits of the argument register set a corresponding bit in the match register. Then reading is accomplished by a sequential access to memory.
  • 2. 2 Key register  It provides a mask for choosing a particular field or key in the argument word.  The entire argument is compared with each memory word if the key register contains all 1’s. Otherwise, only those bits in the argument that have 1’s in their corresponding position of the key register are compared. Example Relationship between the memory array and external registers  Cell Cij is the cell for bit j in word i. A bit Aj in the argument register is compared with all bits in column j of the array provided that kj =1.  This is done for all comumns j=1,2,…,n. If match occurs between all the unmasked bits of the argument and the bits in word I, then set Mi to 1. Otherwise set Mi to 0.
  • 3. 3 One cell of associative memory  It consist of a flip-flop storage element Fij and circuit for reading, writing , and matching the cell. Match Logic  Word i is equal to the argument in A if Aj=Fij for j=1,2,..,n. Two bits are equal if they are both 1 or both 0. The equality of two bits can be expressed logically by Boolean function. xj= AjFij + Aj’Fij’  where xj = 1 if the pair of bits in position j are equal; otherwise, xj=0.  For a word i to be equal to the argument in A we must have all xj variables equal to 1. This is the condition for setting the corresponding match bit Mi to 1. Boolean function for this condition is Mi =x1x2… xn  If kj=0, the corresponding bits of Aj and Fij need no comparison. Only when Kj=1 must they be compared. This requirement is achieved by ORing each term with Kj’, thus {  The match logic for word i in an associative memory can now be expressed by the following Boolean function. Mi = (x1 + K1’) (x2 + K2’) (x3 + K3’) … (xn + Kn’)  If we substitute the original definition of xj. Mi = ∏ (AjFij + Aj’Fij’+ Kj’)  where ∏ is a product symbol designating the AND operation of all n terms.
  • 4. 4  Each cell requires 2 AND gets and one OR gate. The inverters for Aj and Kj are needed once for each column and are used for all bits in the column. The output to all OR gates in the cells of the same word go to the input of the common AND get to Generate the match signal for Mi. Read Operation  if more than one word in memory matches, then read in sequence by applying read signal to each word line with Mi =1.  If only one word may match, connect output Mi directly to the read line in the same word position. Write Operation  Writing in an associative memory can take different forms. If entire memory is loaded with new information, then writing can be done by addressing each location in sequence.  If unwanted words have to be deleted and new words inserted one at a time using tag register.  A word is deleted for memory be clearing its tag bit to 0. After the new word is stored in memory it is made active by setting its tag bit to 1.