module fifo_short #(parameter WIDTH=32) (input clk, input reset, input clear, input [WIDTH-1:0] datain, input src_rdy_i, output dst_rdy_o, output [WIDTH-1:0] dataout, output src_rdy_o, input dst_rdy_i, output reg [4:0] space, output reg [4:0] occupied); reg full, empty; wire write = src_rdy_i & dst_rdy_o; wire read = dst_rdy_i & src_rdy_o; assign dst_rdy_o = ~full; assign src_rdy_o = ~empty; reg [3:0] a; genvar i; generate for (i=0;i