data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/cordic/cordic_test.v
1: b'%Error: data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/cordic/cordic_test.v:1: Cannot find include file: cordic.vh\n`include "cordic.vh" \n         ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/cordic,data/full_repos/permissive/486954482/cordic.vh\n             data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/cordic,data/full_repos/permissive/486954482/cordic.vh.v\n             data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/cordic,data/full_repos/permissive/486954482/cordic.vh.sv\n             cordic.vh\n             cordic.vh.v\n             cordic.vh.sv\n             obj_dir/cordic.vh\n             obj_dir/cordic.vh.v\n             obj_dir/cordic.vh.sv\n%Error: data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/cordic/cordic_test.v:7: Define or directive not defined: \'`MOD_CIR\'\n  localparam MOD = `MOD_CIR;\n                   ^~~~~~~~\n%Error: data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/cordic/cordic_test.v:7: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  localparam MOD = `MOD_CIR;\n                           ^\n%Error: data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/cordic/cordic_test.v:8: Define or directive not defined: \'`DIR_ROT\'\n  localparam DIR = `DIR_ROT;\n                   ^~~~~~~~\n%Error: data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/cordic/cordic_test.v:8: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n  localparam DIR = `DIR_ROT;\n                           ^\n%Warning-STMTDLY: data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/cordic/cordic_test.v:42: Unsupported: Ignoring delay on this delayed statement.\n    #5 clk = ~clk;\n    ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/cordic/cordic_test.v:50: Unsupported: Ignoring delay on this delayed statement.\n    #10\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/cordic/cordic_test.v:53: Unsupported: Ignoring delay on this delayed statement.\n    #5\n    ^\n%Error: data/full_repos/permissive/486954482/TinyGarble/circuit_synthesis/cordic/cordic_test.v:52: Unsupported: wait statements\n    wait(done==1) \n    ^~~~\n%Error: Exiting due to 6 error(s), 3 warning(s)\n'
module cordic_test();

  localparam DEC = 2;
  localparam FRAC = 14;
  localparam MOD = `MOD_CIR;
  localparam DIR = `DIR_ROT;
  localparam L = DEC + FRAC;

  reg clk;
  reg rst;
  reg  [L-1:0] x;
  reg  [L-1:0] y;
  reg  [L-1:0] z;
  wire [L-1:0] a;
  wire [L-1:0] b;
  wire [L-1:0] c;
  wire done;

  cordic
  #(
    .DEC(DEC),
    .FRAC(FRAC),
    .MOD(MOD),
    .DIR(DIR)
  )
  _cordic_
  (
    .clk(clk),
    .rst(rst),
    .x(x),
    .y(y),
    .z(z),
    .a(a),
    .b(b),
    .c(c),
    .done(done)
  );

  always 
    #5 clk = ~clk;

  initial begin
    clk = 0;
    rst = 1;
    x = 16'h4000;
    y = 0;
    z = 16'h2182;
    #10
    rst = 0;
    wait(done==1) 
    #5
    $stop;
  end

endmodule
module cordic_test();


  localparam DEC = 2;
  localparam FRAC = 14;
  localparam MOD = `MOD_CIR;
  localparam DIR = `DIR_ROT;
  localparam L = DEC + FRAC;

  reg clk;
  reg rst;
  reg  [L-1:0] x;
  reg  [L-1:0] y;
  reg  [L-1:0] z;
  wire [L-1:0] a;
  wire [L-1:0] b;
  wire [L-1:0] c;
  wire done;

  cordic
  #(
    .DEC(DEC),
    .FRAC(FRAC),
    .MOD(MOD),
    .DIR(DIR)
  )
  _cordic_
  (
    .clk(clk),
    .rst(rst),
    .x(x),
    .y(y),
    .z(z),
    .a(a),
    .b(b),
    .c(c),
    .done(done)
  );

  always 
    #5 clk = ~clk;

  initial begin
    clk = 0;
    rst = 1;
    x = 16'h4000;
    y = 0;
    z = 16'h2182;
    #10
    rst = 0;
    wait(done==1) 
    #5
    $stop;
  end

endmodule