同步与同步化FIFO的设计与仿真
1. 同步FIFO的RTL代码
同步FIFO(Synchronous FIFO)是一种重要的硬件组件,下面是一个深度为15、数据位宽为8位的同步FIFO的RTL代码。
/*********************************************************/
// MODULE:
// Synchronous FIFO
//
// FILE NAME:
// sfifo_rtl.v
// VERSION:
// 1.0
// DATE:
// January 1, 1999
// AUTHOR:
// Bob Zeidman, Zeidman Consulting
//
// CODE TYPE:
// Register Transfer Level
//
// DESCRIPTION:
// This module defines a Synchronous FIFO. The
// FIFO memory is implemented as a ring buffer. The read
// pointer points to the beginning of the buffer, while the
// write pointer points to the end of the buffer. Note that
// in this RTL version, the memory has one more location than
// the FIFO needs in order to calculate the FIFO count
// correc