data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/lib/fifo/axis_fifo_monitor.v
1: b"%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/lib/fifo/axis_fifo_monitor.v:37: Cannot find file containing module: 'axis_strm_monitor'\n  axis_strm_monitor #(\n  ^~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/lib/fifo,data/full_repos/permissive/214858095/axis_strm_monitor\n             data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/lib/fifo,data/full_repos/permissive/214858095/axis_strm_monitor.v\n             data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/lib/fifo,data/full_repos/permissive/214858095/axis_strm_monitor.sv\n             axis_strm_monitor\n             axis_strm_monitor.v\n             axis_strm_monitor.sv\n             obj_dir/axis_strm_monitor\n             obj_dir/axis_strm_monitor.v\n             obj_dir/axis_strm_monitor.sv\n%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/lib/fifo/axis_fifo_monitor.v:49: Cannot find file containing module: 'axis_strm_monitor'\n  axis_strm_monitor #(\n  ^~~~~~~~~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module axis_fifo_monitor #(
  parameter COUNT_W = 32
)(

  input  wire               clk,
  input  wire               reset,

  input  wire               i_tlast,
  input  wire               i_tvalid,
  input  wire               i_tready,

  input  wire               o_tlast,
  input  wire               o_tvalid,
  input  wire               o_tready,

  output wire               i_sop,
  output wire               i_eop,
  output wire               o_sop,
  output wire               o_eop,
  output wire [COUNT_W-1:0] occupied,
  output wire [COUNT_W-1:0] occupied_pkts
);

  wire [COUNT_W-1:0] i_pkt_count, o_pkt_count;
  wire [COUNT_W-1:0] i_xfer_count, o_xfer_count;

  axis_strm_monitor #(
    .WIDTH(1), .COUNT_W(COUNT_W),
    .PKT_LENGTH_EN(0), .PKT_CHKSUM_EN(0),
    .PKT_COUNT_EN(1), .XFER_COUNT_EN(1)
  ) input_monitor (
    .clk(clk), .reset(reset),
    .axis_tdata(1'b0), .axis_tlast(i_tlast), .axis_tvalid(i_tvalid), .axis_tready(i_tready),
    .sop(i_sop), .eop(i_eop),
    .pkt_length(), .pkt_chksum(),
    .pkt_count(i_pkt_count), .xfer_count(i_xfer_count)
  );

  axis_strm_monitor #(
    .WIDTH(1), .COUNT_W(COUNT_W),
    .PKT_LENGTH_EN(0), .PKT_CHKSUM_EN(0),
    .PKT_COUNT_EN(1), .XFER_COUNT_EN(1)
  ) output_monitor (
    .clk(clk), .reset(reset),
    .axis_tdata(1'b0), .axis_tlast(o_tlast), .axis_tvalid(o_tvalid), .axis_tready(o_tready),
    .sop(o_sop), .eop(o_eop),
    .pkt_length(), .pkt_chksum(),
    .pkt_count(o_pkt_count), .xfer_count(o_xfer_count)
  );



  assign occupied      = (i_xfer_count - o_xfer_count);
  assign occupied_pkts = (i_pkt_count  - o_pkt_count);

 endmodule
module axis_fifo_monitor #(
  parameter COUNT_W = 32
)(

  input  wire               clk,
  input  wire               reset,

  input  wire               i_tlast,
  input  wire               i_tvalid,
  input  wire               i_tready,

  input  wire               o_tlast,
  input  wire               o_tvalid,
  input  wire               o_tready,

  output wire               i_sop,
  output wire               i_eop,
  output wire               o_sop,
  output wire               o_eop,
  output wire [COUNT_W-1:0] occupied,
  output wire [COUNT_W-1:0] occupied_pkts
);


  wire [COUNT_W-1:0] i_pkt_count, o_pkt_count;
  wire [COUNT_W-1:0] i_xfer_count, o_xfer_count;

  axis_strm_monitor #(
    .WIDTH(1), .COUNT_W(COUNT_W),
    .PKT_LENGTH_EN(0), .PKT_CHKSUM_EN(0),
    .PKT_COUNT_EN(1), .XFER_COUNT_EN(1)
  ) input_monitor (
    .clk(clk), .reset(reset),
    .axis_tdata(1'b0), .axis_tlast(i_tlast), .axis_tvalid(i_tvalid), .axis_tready(i_tready),
    .sop(i_sop), .eop(i_eop),
    .pkt_length(), .pkt_chksum(),
    .pkt_count(i_pkt_count), .xfer_count(i_xfer_count)
  );

  axis_strm_monitor #(
    .WIDTH(1), .COUNT_W(COUNT_W),
    .PKT_LENGTH_EN(0), .PKT_CHKSUM_EN(0),
    .PKT_COUNT_EN(1), .XFER_COUNT_EN(1)
  ) output_monitor (
    .clk(clk), .reset(reset),
    .axis_tdata(1'b0), .axis_tlast(o_tlast), .axis_tvalid(o_tvalid), .axis_tready(o_tready),
    .sop(o_sop), .eop(o_eop),
    .pkt_length(), .pkt_chksum(),
    .pkt_count(o_pkt_count), .xfer_count(o_xfer_count)
  );



  assign occupied      = (i_xfer_count - o_xfer_count);
  assign occupied_pkts = (i_pkt_count  - o_pkt_count);

 endmodule