data/full_repos/permissive/159001439/src/fifo_sync_xpm.v
1: b"%Error: data/full_repos/permissive/159001439/src/fifo_sync_xpm.v:36: Cannot find file containing module: 'xpm_fifo_sync'\nxpm_fifo_sync # (\n^~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/159001439/src,data/full_repos/permissive/159001439/xpm_fifo_sync\n             data/full_repos/permissive/159001439/src,data/full_repos/permissive/159001439/xpm_fifo_sync.v\n             data/full_repos/permissive/159001439/src,data/full_repos/permissive/159001439/xpm_fifo_sync.sv\n             xpm_fifo_sync\n             xpm_fifo_sync.v\n             xpm_fifo_sync.sv\n             obj_dir/xpm_fifo_sync\n             obj_dir/xpm_fifo_sync.v\n             obj_dir/xpm_fifo_sync.sv\n%Error: Exiting due to 1 error(s)\n"
module fifo_sync(
	rst,
	clk,
	din,
	wr_en,
	full,
	wr_count,
	dout,
	rd_en,
	empty,
	rd_count
);
parameter DSIZE = 8;
parameter ASIZE = 4;
parameter MODE = "NORMAL";
localparam DEPTH = 2**ASIZE;
localparam READ_MODE = (MODE=="FWFT")?"fwft":"std";

output [DSIZE-1:0] dout;
output full;
output empty;
output [ASIZE:0] wr_count;
output [ASIZE:0] rd_count;
input [DSIZE-1:0] din;
input wr_en;
input rd_en;
input clk;
input rst;

xpm_fifo_sync # (

  .FIFO_MEMORY_TYPE          ("auto"),
  .ECC_MODE                  ("no_ecc"),
  .FIFO_WRITE_DEPTH          (DEPTH),
  .WRITE_DATA_WIDTH          (DSIZE),
  .WR_DATA_COUNT_WIDTH       (ASIZE+1),
  .PROG_FULL_THRESH          (DEPTH/2),
  .FULL_RESET_VALUE          (0),
  .READ_MODE                 (READ_MODE),
  .FIFO_READ_LATENCY         (0),
  .READ_DATA_WIDTH           (DSIZE),
  .RD_DATA_COUNT_WIDTH       (ASIZE+1),
  .PROG_EMPTY_THRESH         (DEPTH/2),
  .DOUT_RESET_VALUE          ("0"),
  .WAKEUP_TIME               (0)

) xpm_fifo_sync_inst (
  .sleep            (1'b0),
  .rst              (rst),
  .wr_clk           (clk),
  .wr_en            (wr_en),
  .din              (din),
  .full             (full),
  .prog_full        (prog_full),
  .wr_data_count    (wr_count),
  .overflow         (overflow),
  .wr_rst_busy      (wr_rst_busy),
  .rd_en            (rd_en),
  .dout             (dout),
  .empty            (empty),
  .prog_empty       (prog_empty),
  .rd_data_count    (rd_count),
  .underflow        (underflow),
  .rd_rst_busy      (rd_rst_busy),
  .injectsbiterr    (1'b0),
  .injectdbiterr    (1'b0),
  .sbiterr          (),
  .dbiterr          ()
);
endmodule
module fifo_sync(
	rst,
	clk,
	din,
	wr_en,
	full,
	wr_count,
	dout,
	rd_en,
	empty,
	rd_count
);

parameter DSIZE = 8;
parameter ASIZE = 4;
parameter MODE = "NORMAL";
localparam DEPTH = 2**ASIZE;
localparam READ_MODE = (MODE=="FWFT")?"fwft":"std";

output [DSIZE-1:0] dout;
output full;
output empty;
output [ASIZE:0] wr_count;
output [ASIZE:0] rd_count;
input [DSIZE-1:0] din;
input wr_en;
input rd_en;
input clk;
input rst;

xpm_fifo_sync # (

  .FIFO_MEMORY_TYPE          ("auto"),
  .ECC_MODE                  ("no_ecc"),
  .FIFO_WRITE_DEPTH          (DEPTH),
  .WRITE_DATA_WIDTH          (DSIZE),
  .WR_DATA_COUNT_WIDTH       (ASIZE+1),
  .PROG_FULL_THRESH          (DEPTH/2),
  .FULL_RESET_VALUE          (0),
  .READ_MODE                 (READ_MODE),
  .FIFO_READ_LATENCY         (0),
  .READ_DATA_WIDTH           (DSIZE),
  .RD_DATA_COUNT_WIDTH       (ASIZE+1),
  .PROG_EMPTY_THRESH         (DEPTH/2),
  .DOUT_RESET_VALUE          ("0"),
  .WAKEUP_TIME               (0)

) xpm_fifo_sync_inst (
  .sleep            (1'b0),
  .rst              (rst),
  .wr_clk           (clk),
  .wr_en            (wr_en),
  .din              (din),
  .full             (full),
  .prog_full        (prog_full),
  .wr_data_count    (wr_count),
  .overflow         (overflow),
  .wr_rst_busy      (wr_rst_busy),
  .rd_en            (rd_en),
  .dout             (dout),
  .empty            (empty),
  .prog_empty       (prog_empty),
  .rd_data_count    (rd_count),
  .underflow        (underflow),
  .rd_rst_busy      (rd_rst_busy),
  .injectsbiterr    (1'b0),
  .injectdbiterr    (1'b0),
  .sbiterr          (),
  .dbiterr          ()
);
endmodule