data/full_repos/permissive/17590431/testbench/gost89_pipelined_ecb_tb.v
 line:8 column:27: Illegal character "'"
1: b'%Warning-STMTDLY: data/full_repos/permissive/17590431/testbench/gost89_pipelined_ecb_tb.v:6: Unsupported: Ignoring delay on this delayed statement.\n    #1 clk = ~clk;\n    ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Error: data/full_repos/permissive/17590431/testbench/gost89_pipelined_ecb_tb.v:25: Unsupported or unknown PLI call: $dumpfile\n    $dumpfile("gost89_pipelined_ecb_tb.vcd");\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/17590431/testbench/gost89_pipelined_ecb_tb.v:26: Unsupported or unknown PLI call: $dumpvars\n    $dumpvars(0, gost89_pipelined_ecb_tb);\n    ^~~~~~~~~\n%Warning-STMTDLY: data/full_repos/permissive/17590431/testbench/gost89_pipelined_ecb_tb.v:31: Unsupported: Ignoring delay on this delayed statement.\n    #1;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/17590431/testbench/gost89_pipelined_ecb_tb.v:33: Unsupported: Ignoring delay on this delayed statement.\n    #64;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/17590431/testbench/gost89_pipelined_ecb_tb.v:39: Unsupported: Ignoring delay on this delayed statement.\n    #4\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/17590431/testbench/gost89_pipelined_ecb_tb.v:41: Unsupported: Ignoring delay on this delayed statement.\n    #2;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/17590431/testbench/gost89_pipelined_ecb_tb.v:43: Unsupported: Ignoring delay on this delayed statement.\n    #8;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/17590431/testbench/gost89_pipelined_ecb_tb.v:45: Unsupported: Ignoring delay on this delayed statement.\n    #54;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/17590431/testbench/gost89_pipelined_ecb_tb.v:49: Unsupported: Ignoring delay on this delayed statement.\n    #2;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/17590431/testbench/gost89_pipelined_ecb_tb.v:53: Unsupported: Ignoring delay on this delayed statement.\n    #8;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/17590431/testbench/gost89_pipelined_ecb_tb.v:58: Unsupported: Ignoring delay on this delayed statement.\n    #10;\n    ^\n%Error: Exiting due to 2 error(s), 10 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module gost89_pipelined_ecb_tb;
  reg clk;
  always
    #1 clk = ~clk;

  reg  [511:0] sbox = 512'h 4a92d80e6b1c7f53eb4c6dfa23810759581da342efc7609b7da1089fe46cb2536c715fd84a9e03b24ba0721d36859cfedb413f590ae7682c1fd057a4923e6b8c;
  reg  [255:0] key  = 256'h 0475f6e05038fbfad2c7c390edb3ca3d1547124291ae1e8a2f79cd9ed2bcefbd;
  reg  [63:0]  in_e, in_d;
  wire [63:0]  out_e, out_d;

  gost89_pipelined_ecb_encrypt
    pipelined_ecb_encrypt(clk, sbox, key, in_e, out_e);
  gost89_pipelined_ecb_decrypt
    pipelined_ecb_decrypt(clk, sbox, key, in_d, out_d);



  initial begin
    $dumpfile("gost89_pipelined_ecb_tb.vcd");
    $dumpvars(0, gost89_pipelined_ecb_tb);

    clk = 0;


    #1;
    in_e = 64'h d5a8a608f4f115b4; in_d = 64'h d658a36b11cf46eb;
    #64;
    if (out_e !== 64'h d658a36b11cf46eb || out_d !== 64'h d5a8a608f4f115b4)
      begin $display("E"); $finish; end
    $display("OK");


    #4
    in_e = 64'h 389eb44a391474c4; in_d = 64'h 7aea1ed18e604249;
    #2;
    in_e = 64'h 379e59c3c96bb2ab; in_d = 64'h c35472c91cd78640;
    #8;
    in_e = 64'h 3f38ae3b8f541361; in_d = 64'h 3b5834a000fba066;
    #54;
    if (out_e !== 64'h 7aea1ed18e604249 || out_d !== 64'h 389eb44a391474c4)
      begin $display("E"); $finish; end
    $display("OK");
    #2;
    if (out_e !== 64'h c35472c91cd78640 || out_d !== 64'h 379e59c3c96bb2ab)
      begin $display("E"); $finish; end
    $display("OK");
    #8;
    if (out_e !== 64'h 3b5834a000fba066 || out_d !== 64'h 3f38ae3b8f541361)
      begin $display("E"); $finish; end
    $display("OK");

    #10;
    $display("All passed");
    $finish;
  end
endmodule
module gost89_pipelined_ecb_tb;

  reg clk;
  always
    #1 clk = ~clk;

  reg  [511:0] sbox = 512'h 4a92d80e6b1c7f53eb4c6dfa23810759581da342efc7609b7da1089fe46cb2536c715fd84a9e03b24ba0721d36859cfedb413f590ae7682c1fd057a4923e6b8c;
  reg  [255:0] key  = 256'h 0475f6e05038fbfad2c7c390edb3ca3d1547124291ae1e8a2f79cd9ed2bcefbd;
  reg  [63:0]  in_e, in_d;
  wire [63:0]  out_e, out_d;

  gost89_pipelined_ecb_encrypt
    pipelined_ecb_encrypt(clk, sbox, key, in_e, out_e);
  gost89_pipelined_ecb_decrypt
    pipelined_ecb_decrypt(clk, sbox, key, in_d, out_d);



  initial begin
    $dumpfile("gost89_pipelined_ecb_tb.vcd");
    $dumpvars(0, gost89_pipelined_ecb_tb);

    clk = 0;


    #1;
    in_e = 64'h d5a8a608f4f115b4; in_d = 64'h d658a36b11cf46eb;
    #64;
    if (out_e !== 64'h d658a36b11cf46eb || out_d !== 64'h d5a8a608f4f115b4)
      begin $display("E"); $finish; end
    $display("OK");


    #4
    in_e = 64'h 389eb44a391474c4; in_d = 64'h 7aea1ed18e604249;
    #2;
    in_e = 64'h 379e59c3c96bb2ab; in_d = 64'h c35472c91cd78640;
    #8;
    in_e = 64'h 3f38ae3b8f541361; in_d = 64'h 3b5834a000fba066;
    #54;
    if (out_e !== 64'h 7aea1ed18e604249 || out_d !== 64'h 389eb44a391474c4)
      begin $display("E"); $finish; end
    $display("OK");
    #2;
    if (out_e !== 64'h c35472c91cd78640 || out_d !== 64'h 379e59c3c96bb2ab)
      begin $display("E"); $finish; end
    $display("OK");
    #8;
    if (out_e !== 64'h 3b5834a000fba066 || out_d !== 64'h 3f38ae3b8f541361)
      begin $display("E"); $finish; end
    $display("OK");

    #10;
    $display("All passed");
    $finish;
  end
endmodule