SlideShare ist ein Scribd-Unternehmen logo
1 von 17
FIFO Design

 Aditya Mittal
Objective
•  Use Design Framework
•  Request/Grant Handshake
•  Valid/Busy Handshake




               © Arrow Devices Pvt. Ltd.   2
FIFO Interface




   © Arrow Devices Pvt. Ltd.   3
FIFO Protocol
•  FIFO not guaranteed to work if protocol
   violated
•  Write Data qualified by Push
•  Read Data validated by !Empty
•  Should not Push when Full
•  Should not Pop when Empty



                 © Arrow Devices Pvt. Ltd.   4
FIFO Protocol




   © Arrow Devices Pvt. Ltd.   5
FIFO Datapath
•  Input Data (bus)
•  Output Data (bus)
•  Data Store (memory /flop array)




                 © Arrow Devices Pvt. Ltd.   6
FIFO Datapath




   © Arrow Devices Pvt. Ltd.   7
FIFO Control Path
•  Data Path Control
  –  Write Control
  –  Read Control
•  Flow Control




                     © Arrow Devices Pvt. Ltd.   8
FIFO Write Control
•  Write Pointer: Next memory address to
   write
•  Convention: Push causes write pointer to
   move to next location
•  Decode of write pointer enables memory
   locations



                 © Arrow Devices Pvt. Ltd.    9
FIFO Read Control
•  Read Pointer: Next memory address to
   read
•  Convention: Pop causes read pointer to
   move to next location




                 © Arrow Devices Pvt. Ltd.   10
FIFO Read/Write




    © Arrow Devices Pvt. Ltd.   11
FIFO Flow Control
•  Write Interface: Full signal
•  Read Interface: Empty signal




                 © Arrow Devices Pvt. Ltd.   12
© Arrow Devices Pvt. Ltd.   13
FIFO Full Generation
•  Full Condition: Both pointers are pointing
   to same location




                  © Arrow Devices Pvt. Ltd.     14
FIFO Empty Generation
•  Empty Condition: Both pointers are
   pointing to same location




                 © Arrow Devices Pvt. Ltd.   15
Pointer Wrap State
•  Set wrap bit every time pointer “wraps
   around” the max value




                  © Arrow Devices Pvt. Ltd.   16
FIFO Full/Empty
             Conditions
•  Full when pointer values are same and
   wrap states are different
•  Empty when pointer values are same and
   wrap states are same




                © Arrow Devices Pvt. Ltd.   17

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

2019 2 testing and verification of vlsi design_verification
2019 2 testing and verification of vlsi design_verification2019 2 testing and verification of vlsi design_verification
2019 2 testing and verification of vlsi design_verification
 
APB protocol v1.0
APB protocol v1.0APB protocol v1.0
APB protocol v1.0
 
Advance Peripheral Bus
Advance Peripheral Bus Advance Peripheral Bus
Advance Peripheral Bus
 
Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)
 
14 static timing_analysis_5_clock_domain_crossing
14 static timing_analysis_5_clock_domain_crossing14 static timing_analysis_5_clock_domain_crossing
14 static timing_analysis_5_clock_domain_crossing
 
dual-port RAM (DPRAM)
dual-port RAM (DPRAM)dual-port RAM (DPRAM)
dual-port RAM (DPRAM)
 
Introduction of testing and verification of vlsi design
Introduction of testing and verification of vlsi designIntroduction of testing and verification of vlsi design
Introduction of testing and verification of vlsi design
 
Unit 5
Unit 5Unit 5
Unit 5
 
Clock divider by 3
Clock divider by 3Clock divider by 3
Clock divider by 3
 
test generation
test generationtest generation
test generation
 
pipelining
pipeliningpipelining
pipelining
 
SOC Verification using SystemVerilog
SOC Verification using SystemVerilog SOC Verification using SystemVerilog
SOC Verification using SystemVerilog
 
I2C
I2CI2C
I2C
 
Design and Implementation of Synchronous FIFO Interfaced with RAM.pptx
Design and Implementation of Synchronous FIFO Interfaced with RAM.pptxDesign and Implementation of Synchronous FIFO Interfaced with RAM.pptx
Design and Implementation of Synchronous FIFO Interfaced with RAM.pptx
 
ARM CORTEX M3 PPT
ARM CORTEX M3 PPTARM CORTEX M3 PPT
ARM CORTEX M3 PPT
 
Design-for-Test (Testing of VLSI Design)
Design-for-Test (Testing of VLSI Design)Design-for-Test (Testing of VLSI Design)
Design-for-Test (Testing of VLSI Design)
 
BUilt-In-Self-Test for VLSI Design
BUilt-In-Self-Test for VLSI DesignBUilt-In-Self-Test for VLSI Design
BUilt-In-Self-Test for VLSI Design
 
CPU Verification
CPU VerificationCPU Verification
CPU Verification
 
Ambha axi
Ambha axiAmbha axi
Ambha axi
 
EE270_Final_Project
EE270_Final_ProjectEE270_Final_Project
EE270_Final_Project
 

Andere mochten auch

Fifo first in first out powerpoint ppt slides.
Fifo first in first out powerpoint ppt slides.Fifo first in first out powerpoint ppt slides.
Fifo first in first out powerpoint ppt slides.
SlideTeam.net
 
Fifo (First in First out)
Fifo (First in First out)Fifo (First in First out)
Fifo (First in First out)
SlideShop.com
 
Fifo
FifoFifo
Fifo
ghada
 
Altera Fifo User Guide
Altera Fifo User GuideAltera Fifo User Guide
Altera Fifo User Guide
ToThanhTu
 
Aldec overview 2011-10 revised
Aldec overview 2011-10 revisedAldec overview 2011-10 revised
Aldec overview 2011-10 revised
Prateek Chopra
 
Fifo first in first out powerpoint presentation templates.
Fifo first in first out powerpoint presentation templates.Fifo first in first out powerpoint presentation templates.
Fifo first in first out powerpoint presentation templates.
SlideTeam.net
 
System Verilog 2009 & 2012 enhancements
System Verilog 2009 & 2012 enhancementsSystem Verilog 2009 & 2012 enhancements
System Verilog 2009 & 2012 enhancements
Subash John
 
Session 9 advance_verification_features
Session 9 advance_verification_featuresSession 9 advance_verification_features
Session 9 advance_verification_features
Nirav Desai
 

Andere mochten auch (20)

Fifo first in first out powerpoint ppt slides.
Fifo first in first out powerpoint ppt slides.Fifo first in first out powerpoint ppt slides.
Fifo first in first out powerpoint ppt slides.
 
First In, First Out (FIFO); Last In, Last Out (LIFO)
First In, First Out (FIFO); Last In, Last Out (LIFO)First In, First Out (FIFO); Last In, Last Out (LIFO)
First In, First Out (FIFO); Last In, Last Out (LIFO)
 
Fifo (First in First out)
Fifo (First in First out)Fifo (First in First out)
Fifo (First in First out)
 
Fifo
FifoFifo
Fifo
 
9.6 The First In First Out (FIFO) system
9.6 The First In First Out (FIFO) system9.6 The First In First Out (FIFO) system
9.6 The First In First Out (FIFO) system
 
Inventory Control Methods FEFO-FIFO
Inventory Control Methods FEFO-FIFOInventory Control Methods FEFO-FIFO
Inventory Control Methods FEFO-FIFO
 
Lifo n fifo
Lifo n fifoLifo n fifo
Lifo n fifo
 
2.fifo & lifo (2)
2.fifo & lifo (2)2.fifo & lifo (2)
2.fifo & lifo (2)
 
Altera Fifo User Guide
Altera Fifo User GuideAltera Fifo User Guide
Altera Fifo User Guide
 
Aldec overview 2011-10 revised
Aldec overview 2011-10 revisedAldec overview 2011-10 revised
Aldec overview 2011-10 revised
 
Fifo first in first out powerpoint presentation templates.
Fifo first in first out powerpoint presentation templates.Fifo first in first out powerpoint presentation templates.
Fifo first in first out powerpoint presentation templates.
 
System Verilog 2009 & 2012 enhancements
System Verilog 2009 & 2012 enhancementsSystem Verilog 2009 & 2012 enhancements
System Verilog 2009 & 2012 enhancements
 
Session 9 advance_verification_features
Session 9 advance_verification_featuresSession 9 advance_verification_features
Session 9 advance_verification_features
 
System Verilog Functional Coverage
System Verilog Functional CoverageSystem Verilog Functional Coverage
System Verilog Functional Coverage
 
Warehousing management
Warehousing managementWarehousing management
Warehousing management
 
Timing Analysis
Timing AnalysisTiming Analysis
Timing Analysis
 
Warehousing management System -Shitalinfotech.com
Warehousing management System -Shitalinfotech.comWarehousing management System -Shitalinfotech.com
Warehousing management System -Shitalinfotech.com
 
SPOJ Problem: OLOLO
SPOJ Problem: OLOLOSPOJ Problem: OLOLO
SPOJ Problem: OLOLO
 
Maps
MapsMaps
Maps
 
computer notes - Priority queue
computer notes -  Priority queuecomputer notes -  Priority queue
computer notes - Priority queue
 

Mehr von Arrow Devices

Mehr von Arrow Devices (9)

UVM: Basic Sequences
UVM: Basic SequencesUVM: Basic Sequences
UVM: Basic Sequences
 
UVM Methodology Tutorial
UVM Methodology TutorialUVM Methodology Tutorial
UVM Methodology Tutorial
 
Arrow Devices MIPI MPHY Verification IP Solution
Arrow Devices MIPI MPHY Verification IP SolutionArrow Devices MIPI MPHY Verification IP Solution
Arrow Devices MIPI MPHY Verification IP Solution
 
Basics of Functional Verification - Arrow Devices
Basics of Functional Verification - Arrow DevicesBasics of Functional Verification - Arrow Devices
Basics of Functional Verification - Arrow Devices
 
Transport Layer (L4) of MIPI Unipro - An Introduction
Transport Layer (L4) of MIPI Unipro - An IntroductionTransport Layer (L4) of MIPI Unipro - An Introduction
Transport Layer (L4) of MIPI Unipro - An Introduction
 
Behavioral modeling of Clock/Data Recovery
Behavioral modeling of Clock/Data RecoveryBehavioral modeling of Clock/Data Recovery
Behavioral modeling of Clock/Data Recovery
 
Arrow Devices USB 2.0 Concepts
Arrow Devices USB 2.0 ConceptsArrow Devices USB 2.0 Concepts
Arrow Devices USB 2.0 Concepts
 
Mastery: The key to Success and Happiness
Mastery: The key to Success and HappinessMastery: The key to Success and Happiness
Mastery: The key to Success and Happiness
 
Bidirectional Bus Modelling
Bidirectional Bus ModellingBidirectional Bus Modelling
Bidirectional Bus Modelling
 

Kürzlich hochgeladen

Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
MateoGardella
 
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
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Kürzlich hochgeladen (20)

Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.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..
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
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
 
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"
 
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
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
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...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
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
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 

FIFO Design

  • 2. Objective •  Use Design Framework •  Request/Grant Handshake •  Valid/Busy Handshake © Arrow Devices Pvt. Ltd. 2
  • 3. FIFO Interface © Arrow Devices Pvt. Ltd. 3
  • 4. FIFO Protocol •  FIFO not guaranteed to work if protocol violated •  Write Data qualified by Push •  Read Data validated by !Empty •  Should not Push when Full •  Should not Pop when Empty © Arrow Devices Pvt. Ltd. 4
  • 5. FIFO Protocol © Arrow Devices Pvt. Ltd. 5
  • 6. FIFO Datapath •  Input Data (bus) •  Output Data (bus) •  Data Store (memory /flop array) © Arrow Devices Pvt. Ltd. 6
  • 7. FIFO Datapath © Arrow Devices Pvt. Ltd. 7
  • 8. FIFO Control Path •  Data Path Control –  Write Control –  Read Control •  Flow Control © Arrow Devices Pvt. Ltd. 8
  • 9. FIFO Write Control •  Write Pointer: Next memory address to write •  Convention: Push causes write pointer to move to next location •  Decode of write pointer enables memory locations © Arrow Devices Pvt. Ltd. 9
  • 10. FIFO Read Control •  Read Pointer: Next memory address to read •  Convention: Pop causes read pointer to move to next location © Arrow Devices Pvt. Ltd. 10
  • 11. FIFO Read/Write © Arrow Devices Pvt. Ltd. 11
  • 12. FIFO Flow Control •  Write Interface: Full signal •  Read Interface: Empty signal © Arrow Devices Pvt. Ltd. 12
  • 13. © Arrow Devices Pvt. Ltd. 13
  • 14. FIFO Full Generation •  Full Condition: Both pointers are pointing to same location © Arrow Devices Pvt. Ltd. 14
  • 15. FIFO Empty Generation •  Empty Condition: Both pointers are pointing to same location © Arrow Devices Pvt. Ltd. 15
  • 16. Pointer Wrap State •  Set wrap bit every time pointer “wraps around” the max value © Arrow Devices Pvt. Ltd. 16
  • 17. FIFO Full/Empty Conditions •  Full when pointer values are same and wrap states are different •  Empty when pointer values are same and wrap states are same © Arrow Devices Pvt. Ltd. 17