SlideShare a Scribd company logo
1 of 12
SHORT NOTE ON ASSOCIATIVE MEMORY
Introduction
• A memory unit accessed by content is called associative
memory or content addressable memory(CAM) or associative
storage or associative array.
• Memory is capable of finding empty unused location to store
the word.
• To search particular data in memory, data is read from certain
address and compared if the match is not found content of the
next address is accessed and compared.
• This goes on until required data is found. The number of
access depend on the location of data and efficiency of
searching algorithm.
Hardware Organization Of Associative
Memory
Associative Memory is organized in such a way.
• Argument register(A) : It contains the word to be searched. It has
n bits(one for each bit of the word).
• Key Register(K) : This specifies which part of the argument word
needs to be compared with words in memory. If all bits in register
are 1, The entire word should be compared. Otherwise, only the
bits having k bit set to 1 will be compared.
• Associative memory array : It contains the words which are to be
compared with the argument word.
• Match Register(M): It has m bits, one bit corresponding to each
word in the memory array. After the matching process, the bits
corresponding to matching words in match register are set to 1.
Hardware Organization
• Key register provide the mask for choosing the particular field in A
register.
• The entire content of A register is compared if key register content
all 1.
• Otherwise only bit that have 1 in key register arecompared.
• If the compared data is matched corresponding bits in the match
register are set.
• Reading is accomplished by sequential access inmemory for those
words whose bit are set.
Hardware Organization
Match Logic
Let us include key register. If Kj=0 then there is no need to compare Aj
and Fij.
 Only when Kj=1, comparison is needed.
 This achieved by ORing each term with Kj.
Match Logic
Read Operation
• When a word is to be read from an associative memory, the
contents of the word, or a part of the word is specified.
• If the entire memory is loaded with new information
at once prior to search operation then writing can be
done by addressing each location in sequence.
• Tag register contain as many bits as there are words
in memory.
• It contain 1 for active word and 0 for inactive word
• If the word is to be inserted, tag register is scanned
until 0 is found and word is written at that position
and bit is change to 1.
Write Operation
Advantages
This is suitable for parallel searches. It is also used
where search time needs to be short
Associative memory is often used to speed up
databases, in neural networks and in the page tables
used by the virtual memory of modern computers.
CAM-design challenge is to reduce power
consumption associated with the large amount of
parallel active circuitry, without sacrificing speed or
memory density
Disadvantages
 An associative memory is more expensive than a
random access memory because each cell must
have an extra storage capability as well as logic
circuits for matching its content with an external
argument.
 Usually associative memories are used in
applications where the search time is very critical
and must be very short.
THANK YOU…

More Related Content

What's hot

Virtual memory
Virtual memoryVirtual memory
Virtual memory
Anuj Modi
 
Implementation of page table
Implementation of page tableImplementation of page table
Implementation of page table
guestff64339
 

What's hot (20)

Arm
ArmArm
Arm
 
Register introduction
Register introductionRegister introduction
Register introduction
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
Computer architecture cache memory
Computer architecture cache memoryComputer architecture cache memory
Computer architecture cache memory
 
COA (Unit_4.pptx)
COA (Unit_4.pptx)COA (Unit_4.pptx)
COA (Unit_4.pptx)
 
Cache memory
Cache memoryCache memory
Cache memory
 
Cache memory
Cache memoryCache memory
Cache memory
 
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
 
Cache replacement policies,cache miss,writingtechniques
Cache replacement policies,cache miss,writingtechniquesCache replacement policies,cache miss,writingtechniques
Cache replacement policies,cache miss,writingtechniques
 
Cache memory
Cache memoryCache memory
Cache memory
 
Translation lookaside buffer
Translation lookaside bufferTranslation lookaside buffer
Translation lookaside buffer
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
Implementation of page table
Implementation of page tableImplementation of page table
Implementation of page table
 
Cache memory
Cache memoryCache memory
Cache memory
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
 
Memory management ppt coa
Memory management ppt coaMemory management ppt coa
Memory management ppt coa
 
Cache memory
Cache memoryCache memory
Cache memory
 
Module4
Module4Module4
Module4
 
Presentation1
Presentation1Presentation1
Presentation1
 
Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memory
 

Similar to Associative memory

Associative Memory in Computer architecture
Associative Memory in Computer architectureAssociative Memory in Computer architecture
Associative Memory in Computer architecture
pritheeshg03
 
Ch9 OS
Ch9 OSCh9 OS
Ch9 OS
C.U
 
Web indexing finale
Web indexing finaleWeb indexing finale
Web indexing finale
Ajit More
 
cache memory and types of cache memory,
cache memory  and types of cache memory,cache memory  and types of cache memory,
cache memory and types of cache memory,
ashima967262
 
Introduction to Memoria
Introduction to MemoriaIntroduction to Memoria
Introduction to Memoria
Victor Smirnov
 

Similar to Associative memory (20)

Associative Memory in Computer architecture
Associative Memory in Computer architectureAssociative Memory in Computer architecture
Associative Memory in Computer architecture
 
Memory Organization.pdf
Memory Organization.pdfMemory Organization.pdf
Memory Organization.pdf
 
Computer Organisation and Architecture (COA)
Computer Organisation and Architecture (COA)Computer Organisation and Architecture (COA)
Computer Organisation and Architecture (COA)
 
Unit 5-lecture-1
Unit 5-lecture-1Unit 5-lecture-1
Unit 5-lecture-1
 
Cache Memory.pptx
Cache Memory.pptxCache Memory.pptx
Cache Memory.pptx
 
COA
COACOA
COA
 
OS_Ch9
OS_Ch9OS_Ch9
OS_Ch9
 
OSCh9
OSCh9OSCh9
OSCh9
 
Ch9 OS
Ch9 OSCh9 OS
Ch9 OS
 
Unit-4 swapping.pptx
Unit-4 swapping.pptxUnit-4 swapping.pptx
Unit-4 swapping.pptx
 
Web indexing finale
Web indexing finaleWeb indexing finale
Web indexing finale
 
Auxiliary, Cache and Virtual memory.pptx
Auxiliary, Cache and Virtual memory.pptxAuxiliary, Cache and Virtual memory.pptx
Auxiliary, Cache and Virtual memory.pptx
 
Memory management
Memory managementMemory management
Memory management
 
cache memory and types of cache memory,
cache memory  and types of cache memory,cache memory  and types of cache memory,
cache memory and types of cache memory,
 
Introduction to Memoria
Introduction to MemoriaIntroduction to Memoria
Introduction to Memoria
 
Elements of cache design
Elements of cache designElements of cache design
Elements of cache design
 
Designing data intensive applications
Designing data intensive applicationsDesigning data intensive applications
Designing data intensive applications
 
Inverted index
Inverted indexInverted index
Inverted index
 
Cache simulator
Cache simulatorCache simulator
Cache simulator
 
lecture-5.pptx
lecture-5.pptxlecture-5.pptx
lecture-5.pptx
 

Recently uploaded

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
MateoGardella
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Recently uploaded (20)

Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 

Associative memory

  • 1. SHORT NOTE ON ASSOCIATIVE MEMORY
  • 2. Introduction • A memory unit accessed by content is called associative memory or content addressable memory(CAM) or associative storage or associative array. • Memory is capable of finding empty unused location to store the word. • To search particular data in memory, data is read from certain address and compared if the match is not found content of the next address is accessed and compared. • This goes on until required data is found. The number of access depend on the location of data and efficiency of searching algorithm.
  • 3. Hardware Organization Of Associative Memory
  • 4. Associative Memory is organized in such a way. • Argument register(A) : It contains the word to be searched. It has n bits(one for each bit of the word). • Key Register(K) : This specifies which part of the argument word needs to be compared with words in memory. If all bits in register are 1, The entire word should be compared. Otherwise, only the bits having k bit set to 1 will be compared. • Associative memory array : It contains the words which are to be compared with the argument word. • Match Register(M): It has m bits, one bit corresponding to each word in the memory array. After the matching process, the bits corresponding to matching words in match register are set to 1. Hardware Organization
  • 5. • Key register provide the mask for choosing the particular field in A register. • The entire content of A register is compared if key register content all 1. • Otherwise only bit that have 1 in key register arecompared. • If the compared data is matched corresponding bits in the match register are set. • Reading is accomplished by sequential access inmemory for those words whose bit are set. Hardware Organization
  • 7. Let us include key register. If Kj=0 then there is no need to compare Aj and Fij.  Only when Kj=1, comparison is needed.  This achieved by ORing each term with Kj. Match Logic
  • 8. Read Operation • When a word is to be read from an associative memory, the contents of the word, or a part of the word is specified.
  • 9. • If the entire memory is loaded with new information at once prior to search operation then writing can be done by addressing each location in sequence. • Tag register contain as many bits as there are words in memory. • It contain 1 for active word and 0 for inactive word • If the word is to be inserted, tag register is scanned until 0 is found and word is written at that position and bit is change to 1. Write Operation
  • 10. Advantages This is suitable for parallel searches. It is also used where search time needs to be short Associative memory is often used to speed up databases, in neural networks and in the page tables used by the virtual memory of modern computers. CAM-design challenge is to reduce power consumption associated with the large amount of parallel active circuitry, without sacrificing speed or memory density
  • 11. Disadvantages  An associative memory is more expensive than a random access memory because each cell must have an extra storage capability as well as logic circuits for matching its content with an external argument.  Usually associative memories are used in applications where the search time is very critical and must be very short.