SlideShare a Scribd company logo
1 of 19
Associative Memory
Computation
Ameer Mehmood 14208
Adeel Ahmad 13700
Introduction
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.
This searching time can be reduced if data is searched
on the basis of content.
Introduction
A memory unit accessed by content is called
associative memory or content addressable
memory(CAM) or associative storage or associative
array.
This type of memory is accessed simultaneously and
in parallel on the basis of data content.
Memory is capable of finding empty unused location
to store the word.
Associative Memory Organization
Associative Memory Organization
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 Organization
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.
Associative Memory Organization
Associative Memory 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 are
compared.
If the compared data is matched corresponding bits in
the match register are set.
Associative Memory Organization
Reading is accomplished by sequential access in
memory for those words whose bit are set.
Associative Memory Organization
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.
Associative Memory Organization
Associative Memory Organization
Write operation:
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.
Associative Memory Organization
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.
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.
Associative Memory Organization
 If more than one word match with the content, all the
matched words will have 1 in the corresponding bit
position in match register.
Matched words are then read in sequence by applying
a read signal to each word line.
In most application, the associative memory stores a
table with no two identical items under a given key.
Associative memory Architecture
It is a hardware search engines, a special type of
computer memory used in certain very high searching
applications.
composed of conventional semiconductor memory
(usually SRAM) with added comparison circuitry that
enable a search operation to complete in a single clock
cycle.
SRAM is a type of semiconductor memory that
uses bistable latching circuitry to store each bit.
Types of Associative memory
There are two types of Associative memory, which both
are used in different conditions.
 Auto-associative
 Auto-associative memory takes back(retrieves) a
previously stored pattern that most closely resembles
the current pattern.
Types of Associative memory
 Hetero-associative
Hetero-associative memory, the retrieved pattern is in
general, different from the input pattern not only in
content but possibly also in type and format.
Neutral networks are used to implement these
associative memory models called NAM (Neutral
associative memory).
Advantages of Associative memory
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 of Associative memory
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.

More Related Content

What's hot

Computer architecture cache memory
Computer architecture cache memoryComputer architecture cache memory
Computer architecture cache memoryMazin Alwaaly
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)rishi ram khanal
 
Computer instructions
Computer instructionsComputer instructions
Computer instructionsAnuj Modi
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and ArchitectureVinit Raut
 
Cache memory ppt
Cache memory ppt  Cache memory ppt
Cache memory ppt Arpita Naik
 
Memory management ppt coa
Memory management ppt coaMemory management ppt coa
Memory management ppt coaBharti Khemani
 
Microprocessor 80386
Microprocessor 80386Microprocessor 80386
Microprocessor 80386yash sawarkar
 
11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMSkoolkampus
 
Input Output - Computer Architecture
Input Output - Computer ArchitectureInput Output - Computer Architecture
Input Output - Computer ArchitectureMaruf Abdullah (Rion)
 
Timing and control
Timing and controlTiming and control
Timing and controlchauhankapil
 
Computer architecture control unit
Computer architecture control unitComputer architecture control unit
Computer architecture control unitMazin Alwaaly
 
Transactions in dbms
Transactions in dbmsTransactions in dbms
Transactions in dbmsNancy Gulati
 

What's hot (20)

Parallel processing
Parallel processingParallel processing
Parallel processing
 
Memory management
Memory managementMemory management
Memory management
 
Computer architecture cache memory
Computer architecture cache memoryComputer architecture cache memory
Computer architecture cache memory
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
 
Computer instructions
Computer instructionsComputer instructions
Computer instructions
 
cache memory
 cache memory cache memory
cache memory
 
Instruction code
Instruction codeInstruction code
Instruction code
 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
 
Cache memory ppt
Cache memory ppt  Cache memory ppt
Cache memory ppt
 
Memory management ppt coa
Memory management ppt coaMemory management ppt coa
Memory management ppt coa
 
File system structure
File system structureFile system structure
File system structure
 
Microprocessor 80386
Microprocessor 80386Microprocessor 80386
Microprocessor 80386
 
Assembly Language
Assembly LanguageAssembly Language
Assembly Language
 
11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Disk structure
Disk structureDisk structure
Disk structure
 
Input Output - Computer Architecture
Input Output - Computer ArchitectureInput Output - Computer Architecture
Input Output - Computer Architecture
 
Timing and control
Timing and controlTiming and control
Timing and control
 
Computer architecture control unit
Computer architecture control unitComputer architecture control unit
Computer architecture control unit
 
Transactions in dbms
Transactions in dbmsTransactions in dbms
Transactions in dbms
 

Similar to Associative Memory Computation: Fast Parallel Searching

Associative Memory in Computer architecture
Associative Memory in Computer architectureAssociative Memory in Computer architecture
Associative Memory in Computer architecturepritheeshg03
 
Associative memory
Associative memoryAssociative memory
Associative memoryCharmi Patel
 
Computer Organisation and Architecture (COA)
Computer Organisation and Architecture (COA)Computer Organisation and Architecture (COA)
Computer Organisation and Architecture (COA)SwapnitaSrivastava1
 
Ch9 OS
Ch9 OSCh9 OS
Ch9 OSC.U
 
lecture-5.pptx
lecture-5.pptxlecture-5.pptx
lecture-5.pptxsarasaad69
 
IS 139 Lecture 7
IS 139 Lecture 7IS 139 Lecture 7
IS 139 Lecture 7wajanga
 
Lec 1 digital electroinics - memory array, write read operations
Lec 1   digital electroinics - memory array, write read operationsLec 1   digital electroinics - memory array, write read operations
Lec 1 digital electroinics - memory array, write read operationspriyankatabhane
 
CPU Caching Concepts
CPU Caching ConceptsCPU Caching Concepts
CPU Caching ConceptsAbhijit K Rao
 
Introduction of data structure
Introduction of data structureIntroduction of data structure
Introduction of data structureeShikshak
 
computer architecture and organization.pptx
computer architecture and organization.pptxcomputer architecture and organization.pptx
computer architecture and organization.pptxROHANSharma311906
 
MODULE-4 - Memory-System used in Computer organization
MODULE-4 - Memory-System used in Computer organizationMODULE-4 - Memory-System used in Computer organization
MODULE-4 - Memory-System used in Computer organizationMadhuraNK
 

Similar to Associative Memory Computation: Fast Parallel Searching (20)

Associative Memory in Computer architecture
Associative Memory in Computer architectureAssociative Memory in Computer architecture
Associative Memory in Computer architecture
 
Associative memory
Associative memoryAssociative memory
Associative memory
 
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
 
Computer Organisation and Architecture (COA)
Computer Organisation and Architecture (COA)Computer Organisation and Architecture (COA)
Computer Organisation and Architecture (COA)
 
COA
COACOA
COA
 
OSCh9
OSCh9OSCh9
OSCh9
 
Ch9 OS
Ch9 OSCh9 OS
Ch9 OS
 
OS_Ch9
OS_Ch9OS_Ch9
OS_Ch9
 
lecture-5.pptx
lecture-5.pptxlecture-5.pptx
lecture-5.pptx
 
IS 139 Lecture 7
IS 139 Lecture 7IS 139 Lecture 7
IS 139 Lecture 7
 
Lec 1 digital electroinics - memory array, write read operations
Lec 1   digital electroinics - memory array, write read operationsLec 1   digital electroinics - memory array, write read operations
Lec 1 digital electroinics - memory array, write read operations
 
CPU Caching Concepts
CPU Caching ConceptsCPU Caching Concepts
CPU Caching Concepts
 
Introduction of data structure
Introduction of data structureIntroduction of data structure
Introduction of data structure
 
Cache Memory.pptx
Cache Memory.pptxCache Memory.pptx
Cache Memory.pptx
 
Unit 5-lecture-2
Unit 5-lecture-2Unit 5-lecture-2
Unit 5-lecture-2
 
CMPE-255 Term Project.pptx
CMPE-255 Term Project.pptxCMPE-255 Term Project.pptx
CMPE-255 Term Project.pptx
 
Memory management
Memory managementMemory management
Memory management
 
computer architecture and organization.pptx
computer architecture and organization.pptxcomputer architecture and organization.pptx
computer architecture and organization.pptx
 
MODULE-4 - Memory-System used in Computer organization
MODULE-4 - Memory-System used in Computer organizationMODULE-4 - Memory-System used in Computer organization
MODULE-4 - Memory-System used in Computer organization
 

Recently uploaded

UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
An introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxAn introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxPurva Nikam
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Comparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization TechniquesComparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization Techniquesugginaramesh
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 

Recently uploaded (20)

UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
An introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptxAn introduction to Semiconductor and its types.pptx
An introduction to Semiconductor and its types.pptx
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Comparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization TechniquesComparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization Techniques
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 

Associative Memory Computation: Fast Parallel Searching

  • 2. Introduction 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. This searching time can be reduced if data is searched on the basis of content.
  • 3. Introduction A memory unit accessed by content is called associative memory or content addressable memory(CAM) or associative storage or associative array. This type of memory is accessed simultaneously and in parallel on the basis of data content. Memory is capable of finding empty unused location to store the word.
  • 5. Associative Memory Organization 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.
  • 6. Associative Memory Organization 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.
  • 8. Associative Memory 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 are compared. If the compared data is matched corresponding bits in the match register are set.
  • 9. Associative Memory Organization Reading is accomplished by sequential access in memory for those words whose bit are set.
  • 10. Associative Memory Organization 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.
  • 12. Associative Memory Organization Write operation: 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.
  • 13. Associative Memory Organization 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. 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.
  • 14. Associative Memory Organization  If more than one word match with the content, all the matched words will have 1 in the corresponding bit position in match register. Matched words are then read in sequence by applying a read signal to each word line. In most application, the associative memory stores a table with no two identical items under a given key.
  • 15. Associative memory Architecture It is a hardware search engines, a special type of computer memory used in certain very high searching applications. composed of conventional semiconductor memory (usually SRAM) with added comparison circuitry that enable a search operation to complete in a single clock cycle. SRAM is a type of semiconductor memory that uses bistable latching circuitry to store each bit.
  • 16. Types of Associative memory There are two types of Associative memory, which both are used in different conditions.  Auto-associative  Auto-associative memory takes back(retrieves) a previously stored pattern that most closely resembles the current pattern.
  • 17. Types of Associative memory  Hetero-associative Hetero-associative memory, the retrieved pattern is in general, different from the input pattern not only in content but possibly also in type and format. Neutral networks are used to implement these associative memory models called NAM (Neutral associative memory).
  • 18. Advantages of Associative memory 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
  • 19. Disadvantages of Associative memory 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.