FiFO電路(first in,first out),內部藏有16bit×16word的Dual port RAM,依次讀出已經寫入的數據。因為不存在Address輸入,所以請自行設計內藏的讀寫指針。由FiFO電路輸出的EF信號(表示RAM內部的數據為空)和FF信號(表示RAM內部的數據為滿)來表示RAM內部的狀態,并且控制FiFO的輸入信號WEN(寫使能)和REN(讀使能)。以及為了更好得控制FiFO電路,AEF(表示RAM內部的數據即將空)信號也同時輸出。
Synthesizable FiFO Model
This example describes a synthesizable implementation of a FiFO. The FiFO depth and FiFO width in bits can be modified by simply changing the value of two parameters, `FWIDTH and `FDEPTH. For this example, the FiFO depth is 4 and the FiFO width is 32 bits.