Skip to content

Vishesh987/Synchronous-FIFO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Synchronous FIFO in Verilog

This project implements a parameterized synchronous FIFO (First-In First-Out) memory in Verilog, along with a comprehensive testbench covering all edge cases.

πŸ”§ Features

  • Parameterizable DEPTH and WIDTH
  • Synchronous read and write with single clock
  • Flags for full, empty
  • Handles wrap-around logic correctly
  • Detects and handles overflow & underflow conditions
  • Includes reset functionality

πŸ“ File Structure

  • fifo.v – RTL design of the FIFO
  • fifotb.v – Testbench with tasks for: -The testbench is modularized with tasks, including:

tc_write() – Write test

tc_read() – Read data and check order

tc_full() – Test full condition

tc_empty() – Test empty condition

tc_wraparound() – Check pointer wrap-around behavior

tc_simultaneous_read_write() – Simultaneous read/write with backpressure

tc_overflow() – Write check when FIFO is full

tc_underflow() – Read check when FIFO is empty

tc_reset() – Reset FIFO during operation

About

Verilog implementation and testbench of a synchronous FIFO buffer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors