Fifo &dpram
Fifo &dpram
Fifo &dpram
endmodule
fifo code
reg [count-1:0]wptr;
reg [count-1:0]rptr;
reg [bits:0]ram[depth-1:0];
reg [count-1:0]count;
assign empty=(count==0);
assign full=(count==depth);
assign overflow = full && wr_en;
assign underflow = empty && rd_en;
endmodule