/******************************************************************************* * Module: simul_fifo * Date:2014-04-06 * Author: Andrey Filippov * Description: simple fifo for simulation * * Copyright (c) 2014 Elphel, Inc. * simul_fifo.v is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * simul_fifo.v is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . *******************************************************************************/ `timescale 1ns/1ps module simul_fifo #( parameter integer WIDTH= 32, // total number of output bits parameter integer DEPTH= 64, // maximal number of words in FIFO // parameter OUT_DELAY = 3.5, parameter integer FIFO_DEPTH=DEPTH+1 // parameter integer DATA_2DEPTH=(1<