data/full_repos/permissive/15431697/src/fifo_tb.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/15431697/src/fifo_tb.v:67: Unsupported: Ignoring delay on this delayed statement.\n    #10 s_aclk <= ~s_aclk;\n    ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/15431697/src/fifo_tb.v:74: Unsupported: Ignoring delay on this delayed statement.\n    #5 m_aclk <= ~m_aclk;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/15431697/src/fifo_tb.v:80: Unsupported: Ignoring delay on this delayed statement.\n  #10 s_aresetn     <= 1\'b1;   \n  ^\n%Warning-STMTDLY: data/full_repos/permissive/15431697/src/fifo_tb.v:83: Unsupported: Ignoring delay on this delayed statement.\n  #60 s_axis_tvalid <= 1\'b1;   \n  ^\n%Warning-STMTDLY: data/full_repos/permissive/15431697/src/fifo_tb.v:88: Unsupported: Ignoring delay on this delayed statement.\n  #20 s_axis_tvalid <= 1\'b0;   \n  ^\n%Warning-STMTDLY: data/full_repos/permissive/15431697/src/fifo_tb.v:95: Unsupported: Ignoring delay on this delayed statement.\n  #20 s_axis_tvalid <= 1\'b1;   \n  ^\n%Warning-STMTDLY: data/full_repos/permissive/15431697/src/fifo_tb.v:99: Unsupported: Ignoring delay on this delayed statement.\n  #20 s_axis_tdata  <= 64\'h2222222222222222;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/15431697/src/fifo_tb.v:102: Unsupported: Ignoring delay on this delayed statement.\n  #20 s_axis_tdata  <= 64\'h3333333333333333;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/15431697/src/fifo_tb.v:105: Unsupported: Ignoring delay on this delayed statement.\n  #20 s_axis_tdata  <= 64\'h4444444444444444;\n  ^\n%Warning-STMTDLY: data/full_repos/permissive/15431697/src/fifo_tb.v:109: Unsupported: Ignoring delay on this delayed statement.\n  #20 s_axis_tvalid <= 1\'b0;\n  ^\n%Error: data/full_repos/permissive/15431697/src/fifo_tb.v:26: Cannot find file containing module: \'FIFO\'\nFIFO F0 (\n^~~~\n        ... Looked in:\n             data/full_repos/permissive/15431697/src,data/full_repos/permissive/15431697/FIFO\n             data/full_repos/permissive/15431697/src,data/full_repos/permissive/15431697/FIFO.v\n             data/full_repos/permissive/15431697/src,data/full_repos/permissive/15431697/FIFO.sv\n             FIFO\n             FIFO.v\n             FIFO.sv\n             obj_dir/FIFO\n             obj_dir/FIFO.v\n             obj_dir/FIFO.sv\n%Error: Exiting due to 1 error(s), 10 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module fifo_tb();


reg                         s_aclk;
reg                         s_aresetn;
reg                         s_axis_tvalid;
wire                        s_axis_tready;
reg [63:0]                  s_axis_tdata;
reg [7:0]                   s_axis_tkeep;
reg                         s_axis_tlast;


reg                         m_aclk;
wire                        m_aresetn;
wire                        m_axis_tvalid;
reg                         m_axis_tready;
wire [63:0]                 m_axis_tdata;
wire [7:0]                  m_axis_tkeep;
wire                        m_axis_tlast;

wire                        axis_overflow;
wire                        axis_underflow;



FIFO F0 (
  .m_aclk(m_aclk),
  .s_aclk(s_aclk),
  .s_aresetn(s_aresetn),
  .s_axis_tvalid(s_axis_tvalid),
  .s_axis_tready(s_axis_tready),
  .s_axis_tdata(s_axis_tdata),
  .s_axis_tkeep(s_axis_tkeep),
  .s_axis_tlast(s_axis_tlast),
  .m_axis_tvalid(m_axis_tvalid),
  .m_axis_tready(m_axis_tready),
  .m_axis_tdata(m_axis_tdata),
  .m_axis_tkeep(m_axis_tkeep),
  .m_axis_tlast(m_axis_tlast),
  .axis_overflow(axis_overflow),
  .axis_underflow(axis_underflow)
);




always @(m_axis_tvalid) begin
  m_axis_tready <= m_axis_tvalid;
end


initial begin
  s_aclk            <= 1'b0;
  m_aclk            <= 1'b0;
  s_aresetn         <= 1'b0;
  s_axis_tvalid     <= 1'b0;
  m_axis_tready     <= 1'b0;
  s_axis_tdata      <= 64'b0;
  s_axis_tkeep      <= 8'b0;
  s_axis_tlast      <= 1'b0;
end



initial begin
  forever begin
    #10 s_aclk <= ~s_aclk;
  end
end


initial begin
  forever begin
    #5 m_aclk <= ~m_aclk;
  end
end


initial begin
  #10 s_aresetn     <= 1'b1;


  #60 s_axis_tvalid <= 1'b1;
  s_axis_tdata      <= 64'hFFFFFFFFFFFFFFFF;
  s_axis_tkeep      <= 8'hCF;
  s_axis_tlast      <= 1'b1;

  #20 s_axis_tvalid <= 1'b0;
  s_axis_tdata      <= 64'b0;
  s_axis_tkeep      <= 8'b0;
  s_axis_tlast      <= 1'b0;



  #20 s_axis_tvalid <= 1'b1;
  s_axis_tdata      <= 64'h1111111111111111;
  s_axis_tkeep      <= 8'hFF;

  #20 s_axis_tdata  <= 64'h2222222222222222;
  s_axis_tkeep      <= 8'hFF;

  #20 s_axis_tdata  <= 64'h3333333333333333;
  s_axis_tkeep      <= 8'hFF;

  #20 s_axis_tdata  <= 64'h4444444444444444;
  s_axis_tkeep      <= 8'hFF;
  s_axis_tlast      <= 1'b1;

  #20 s_axis_tvalid <= 1'b0;
  s_axis_tdata      <= 64'b0;
  s_axis_tkeep      <= 8'b0;
  s_axis_tlast      <= 1'b0;
end

endmodule
module fifo_tb();



reg                         s_aclk;
reg                         s_aresetn;
reg                         s_axis_tvalid;
wire                        s_axis_tready;
reg [63:0]                  s_axis_tdata;
reg [7:0]                   s_axis_tkeep;
reg                         s_axis_tlast;


reg                         m_aclk;
wire                        m_aresetn;
wire                        m_axis_tvalid;
reg                         m_axis_tready;
wire [63:0]                 m_axis_tdata;
wire [7:0]                  m_axis_tkeep;
wire                        m_axis_tlast;

wire                        axis_overflow;
wire                        axis_underflow;



FIFO F0 (
  .m_aclk(m_aclk),
  .s_aclk(s_aclk),
  .s_aresetn(s_aresetn),
  .s_axis_tvalid(s_axis_tvalid),
  .s_axis_tready(s_axis_tready),
  .s_axis_tdata(s_axis_tdata),
  .s_axis_tkeep(s_axis_tkeep),
  .s_axis_tlast(s_axis_tlast),
  .m_axis_tvalid(m_axis_tvalid),
  .m_axis_tready(m_axis_tready),
  .m_axis_tdata(m_axis_tdata),
  .m_axis_tkeep(m_axis_tkeep),
  .m_axis_tlast(m_axis_tlast),
  .axis_overflow(axis_overflow),
  .axis_underflow(axis_underflow)
);




always @(m_axis_tvalid) begin
  m_axis_tready <= m_axis_tvalid;
end


initial begin
  s_aclk            <= 1'b0;
  m_aclk            <= 1'b0;
  s_aresetn         <= 1'b0;
  s_axis_tvalid     <= 1'b0;
  m_axis_tready     <= 1'b0;
  s_axis_tdata      <= 64'b0;
  s_axis_tkeep      <= 8'b0;
  s_axis_tlast      <= 1'b0;
end



initial begin
  forever begin
    #10 s_aclk <= ~s_aclk;
  end
end


initial begin
  forever begin
    #5 m_aclk <= ~m_aclk;
  end
end


initial begin
  #10 s_aresetn     <= 1'b1;


  #60 s_axis_tvalid <= 1'b1;
  s_axis_tdata      <= 64'hFFFFFFFFFFFFFFFF;
  s_axis_tkeep      <= 8'hCF;
  s_axis_tlast      <= 1'b1;

  #20 s_axis_tvalid <= 1'b0;
  s_axis_tdata      <= 64'b0;
  s_axis_tkeep      <= 8'b0;
  s_axis_tlast      <= 1'b0;



  #20 s_axis_tvalid <= 1'b1;
  s_axis_tdata      <= 64'h1111111111111111;
  s_axis_tkeep      <= 8'hFF;

  #20 s_axis_tdata  <= 64'h2222222222222222;
  s_axis_tkeep      <= 8'hFF;

  #20 s_axis_tdata  <= 64'h3333333333333333;
  s_axis_tkeep      <= 8'hFF;

  #20 s_axis_tdata  <= 64'h4444444444444444;
  s_axis_tkeep      <= 8'hFF;
  s_axis_tlast      <= 1'b1;

  #20 s_axis_tvalid <= 1'b0;
  s_axis_tdata      <= 64'b0;
  s_axis_tkeep      <= 8'b0;
  s_axis_tlast      <= 1'b0;
end

endmodule