Skip to content

Commit eb81736

Browse files
authored
Merge pull request #269 from SiLab-Bonn/fix-generic-fifo-wrapper
Fix port width of wrapper in generic_fifo
2 parents a7c349b + d673b96 commit eb81736

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

basil/firmware/modules/utils/generic_fifo.v

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,17 +105,18 @@ endmodule
105105
module gerneric_fifo
106106
#(
107107
parameter DATA_SIZE = 32,
108-
parameter DEPTH = 8
108+
parameter DEPTH = 8,
109+
parameter POINTER_SIZE = 16 // maximum in Xilinx 7-series
109110
) (
110111
input wire clk,
111112
input wire reset,
112113
input wire write,
113114
input wire read,
114-
input wire data_in,
115+
input wire [DATA_SIZE-1:0] data_in,
115116
output wire full,
116117
output wire empty,
117-
output wire data_out,
118-
output wire size
118+
output wire [DATA_SIZE-1:0] data_out,
119+
output wire [POINTER_SIZE-1:0] size
119120
);
120121

121122
generic_fifo #(

0 commit comments

Comments
 (0)