SlideShare a Scribd company logo
1 of 4
Download to read offline
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

What's hot

Memory allocation (4)
Memory allocation (4)Memory allocation (4)
Memory allocation (4)rockymani
 
Computer architecture control unit
Computer architecture control unitComputer architecture control unit
Computer architecture control unitMazin Alwaaly
 
Cache memory
Cache memoryCache memory
Cache memoryAnuj Modi
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architectureFaisal Hussain
 
Pipelining and vector processing
Pipelining and vector processingPipelining and vector processing
Pipelining and vector processingKamal Acharya
 
Dynamic storage allocation techniques in Compiler design
Dynamic storage allocation techniques in Compiler designDynamic storage allocation techniques in Compiler design
Dynamic storage allocation techniques in Compiler designkunjan shah
 
Flynn's Taxonomy
Flynn's TaxonomyFlynn's Taxonomy
Flynn's TaxonomyAshish KC
 
Cache memory ppt
Cache memory ppt  Cache memory ppt
Cache memory ppt Arpita Naik
 
Computer registers
Computer registersComputer registers
Computer registersDeepikaT13
 
Virtual memory
Virtual memoryVirtual memory
Virtual memoryAnuj Modi
 
Asynchronous Data Transfer.pptx
Asynchronous Data Transfer.pptxAsynchronous Data Transfer.pptx
Asynchronous Data Transfer.pptxArunaDevi63
 
Syntax directed translation
Syntax directed translationSyntax directed translation
Syntax directed translationAkshaya Arunan
 

What's hot (20)

Cache Memory
Cache MemoryCache Memory
Cache Memory
 
Memory allocation (4)
Memory allocation (4)Memory allocation (4)
Memory allocation (4)
 
Cache memory
Cache memoryCache memory
Cache memory
 
Computer architecture control unit
Computer architecture control unitComputer architecture control unit
Computer architecture control unit
 
Cache memory
Cache memoryCache memory
Cache memory
 
Memory mapping
Memory mappingMemory mapping
Memory mapping
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architecture
 
Cache coherence ppt
Cache coherence pptCache coherence ppt
Cache coherence ppt
 
Basic Computer Organization and Design
Basic  Computer  Organization  and  DesignBasic  Computer  Organization  and  Design
Basic Computer Organization and Design
 
Pipelining and vector processing
Pipelining and vector processingPipelining and vector processing
Pipelining and vector processing
 
Asymptotic Notation
Asymptotic NotationAsymptotic Notation
Asymptotic Notation
 
Dynamic storage allocation techniques in Compiler design
Dynamic storage allocation techniques in Compiler designDynamic storage allocation techniques in Compiler design
Dynamic storage allocation techniques in Compiler design
 
Paging and segmentation
Paging and segmentationPaging and segmentation
Paging and segmentation
 
Flynn's Taxonomy
Flynn's TaxonomyFlynn's Taxonomy
Flynn's Taxonomy
 
Cache memory ppt
Cache memory ppt  Cache memory ppt
Cache memory ppt
 
phases of a compiler
 phases of a compiler phases of a compiler
phases of a compiler
 
Computer registers
Computer registersComputer registers
Computer registers
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
Asynchronous Data Transfer.pptx
Asynchronous Data Transfer.pptxAsynchronous Data Transfer.pptx
Asynchronous Data Transfer.pptx
 
Syntax directed translation
Syntax directed translationSyntax directed translation
Syntax directed translation
 

Similar to Associative memory

Associative memory
Associative memoryAssociative memory
Associative memoryCharmi Patel
 
Associative memory.pptx
Associative memory.pptxAssociative memory.pptx
Associative memory.pptxShrisanjay5
 
Associative Memory in Computer architecture
Associative Memory in Computer architectureAssociative Memory in Computer architecture
Associative Memory in Computer architecturepritheeshg03
 

Similar to Associative memory (6)

Associative memory
Associative memoryAssociative memory
Associative memory
 
Associative memory.pptx
Associative memory.pptxAssociative memory.pptx
Associative memory.pptx
 
Memory Organization.pdf
Memory Organization.pdfMemory Organization.pdf
Memory Organization.pdf
 
Unit 5-lecture-1
Unit 5-lecture-1Unit 5-lecture-1
Unit 5-lecture-1
 
Associative Memory in Computer architecture
Associative Memory in Computer architectureAssociative Memory in Computer architecture
Associative Memory in Computer architecture
 
Inverted index
Inverted indexInverted index
Inverted index
 

More from NancyBeaulah_R

Common Bus System.pptx
Common Bus System.pptxCommon Bus System.pptx
Common Bus System.pptxNancyBeaulah_R
 
Computer Registers.pptx
Computer Registers.pptxComputer Registers.pptx
Computer Registers.pptxNancyBeaulah_R
 
Chapter 1 2 - some size factors
Chapter 1   2 - some size factorsChapter 1   2 - some size factors
Chapter 1 2 - some size factorsNancyBeaulah_R
 
Chapter 1 1 - intro ppt
Chapter 1   1 - intro pptChapter 1   1 - intro ppt
Chapter 1 1 - intro pptNancyBeaulah_R
 
Asynchronous data transfer
Asynchronous  data  transferAsynchronous  data  transfer
Asynchronous data transferNancyBeaulah_R
 
Quality and productivity factors
Quality and productivity factorsQuality and productivity factors
Quality and productivity factorsNancyBeaulah_R
 
Programming team structure
Programming team structureProgramming team structure
Programming team structureNancyBeaulah_R
 

More from NancyBeaulah_R (12)

Addressing Modes
Addressing ModesAddressing Modes
Addressing Modes
 
Common Bus System.pptx
Common Bus System.pptxCommon Bus System.pptx
Common Bus System.pptx
 
Computer Registers.pptx
Computer Registers.pptxComputer Registers.pptx
Computer Registers.pptx
 
Machine Learning.pptx
Machine Learning.pptxMachine Learning.pptx
Machine Learning.pptx
 
Chapter 1 2 - some size factors
Chapter 1   2 - some size factorsChapter 1   2 - some size factors
Chapter 1 2 - some size factors
 
Chapter 1 1 - intro ppt
Chapter 1   1 - intro pptChapter 1   1 - intro ppt
Chapter 1 1 - intro ppt
 
Memory hierarchy
Memory hierarchyMemory hierarchy
Memory hierarchy
 
Asynchronous data transfer
Asynchronous  data  transferAsynchronous  data  transfer
Asynchronous data transfer
 
Software maintenance
Software maintenanceSoftware maintenance
Software maintenance
 
Walkthroughs
WalkthroughsWalkthroughs
Walkthroughs
 
Quality and productivity factors
Quality and productivity factorsQuality and productivity factors
Quality and productivity factors
 
Programming team structure
Programming team structureProgramming team structure
Programming team structure
 

Recently uploaded

JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 

Recently uploaded (20)

JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 

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.