`timescale 1ns / 1ps // Small synchronous first-word-fall-through FIFO (dout is valid while !empty). module fifo #( parameter W = 8, parameter A = 4 // depth = 2**A ) ( input clk, input rst, input [W-1:0] din, input wr, input rd, output [W-1:0] dout, output empty, output full ); reg [W-1:0] mem [0:(1<