URL
https://opencores.org/ocsvn/openarty/openarty/trunk
[/] [openarty/] [trunk/] [rtl/] [wbufifo.v] - Diff between revs 3 and 30
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 3 |
Rev 30 |
Line 31... |
Line 31... |
//
|
//
|
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
//
|
//
|
//
|
//
|
module wbufifo(i_clk, i_rst, i_wr, i_data, i_rd, o_data, o_empty_n, o_err);
|
module wbufifo(i_clk, i_rst, i_wr, i_data, i_rd, o_data, o_empty_n, o_err);
|
parameter BW=66, LGFLEN=10, FLEN=(1<<LGFLEN);
|
parameter BW=66, LGFLEN=10;
|
input i_clk, i_rst;
|
input i_clk, i_rst;
|
input i_wr;
|
input i_wr;
|
input [(BW-1):0] i_data;
|
input [(BW-1):0] i_data;
|
input i_rd;
|
input i_rd;
|
output reg [(BW-1):0] o_data;
|
output reg [(BW-1):0] o_data;
|
output reg o_empty_n;
|
output reg o_empty_n;
|
output wire o_err;
|
output wire o_err;
|
|
|
|
localparam FLEN=(1<<LGFLEN);
|
|
|
reg [(BW-1):0] fifo[0:(FLEN-1)];
|
reg [(BW-1):0] fifo[0:(FLEN-1)];
|
reg [(LGFLEN-1):0] r_first, r_last;
|
reg [(LGFLEN-1):0] r_first, r_last;
|
|
|
reg will_overflow;
|
reg will_overflow;
|
initial will_overflow = 1'b0;
|
initial will_overflow = 1'b0;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.