data/full_repos/permissive/418692101/DistanceCalculator.v
1: b'%Error: data/full_repos/permissive/418692101/DistanceCalculator.v:3: Cannot find include file: Macro.v\n`include "Macro.v" \n         ^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/418692101,data/full_repos/permissive/418692101/Macro.v\n             data/full_repos/permissive/418692101,data/full_repos/permissive/418692101/Macro.v.v\n             data/full_repos/permissive/418692101,data/full_repos/permissive/418692101/Macro.v.sv\n             Macro.v\n             Macro.v.v\n             Macro.v.sv\n             obj_dir/Macro.v\n             obj_dir/Macro.v.v\n             obj_dir/Macro.v.sv\n%Error: data/full_repos/permissive/418692101/DistanceCalculator.v:11: Define or directive not defined: \'`distance_width\'\n  output [`distance_width - 1:0] distance\n          ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/418692101/DistanceCalculator.v:17: Define or directive not defined: \'`distance_width\'\n  wire [`distance_width - 1:0] intern_0 = judge_0 ? $signed(ab0) : $signed(ba0);\n        ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/418692101/DistanceCalculator.v:22: Define or directive not defined: \'`distance_width\'\n  wire [`distance_width - 1:0] intern_1 = judge_1 ? $signed(ab1) : $signed(ba1);\n        ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/418692101/DistanceCalculator.v:27: Define or directive not defined: \'`distance_width\'\n  wire [`distance_width - 1:0] intern_2 = judge_2 ? $signed(ab2) : $signed(ba2);\n        ^~~~~~~~~~~~~~~\n%Error: Exiting due to 5 error(s)\n'
module DistanceCalculator(
  input  [9:0]  a_0,
  input  [9:0]  a_1,
  input  [9:0]  a_2,
  input  [9:0]  b_0,
  input  [9:0]  b_1,
  input  [9:0]  b_2,
  output [`distance_width - 1:0] distance
);

  wire  judge_0 = $signed(a_0) > $signed(b_0);
  wire [10:0] ab0 = $signed(a_0) - $signed(b_0);
  wire [10:0] ba0 = $signed(b_0) - $signed(a_0);
  wire [`distance_width - 1:0] intern_0 = judge_0 ? $signed(ab0) : $signed(ba0);

  wire  judge_1 = $signed(a_1) > $signed(b_1);
  wire [10:0] ab1 = $signed(a_1) - $signed(b_1); 
  wire [10:0] ba1 = $signed(b_1) - $signed(a_1); 
  wire [`distance_width - 1:0] intern_1 = judge_1 ? $signed(ab1) : $signed(ba1);

  wire  judge_2 = $signed(a_2) > $signed(b_2); 
  wire [10:0] ab2 = $signed(a_2) - $signed(b_2);
  wire [10:0] ba2 = $signed(b_2) - $signed(a_2);
  wire [`distance_width - 1:0] intern_2 = judge_2 ? $signed(ab2) : $signed(ba2);

  assign distance = $signed(intern_0) + $signed(intern_1) + $signed(intern_2);
endmodule
module DistanceCalculator(
  input  [9:0]  a_0,
  input  [9:0]  a_1,
  input  [9:0]  a_2,
  input  [9:0]  b_0,
  input  [9:0]  b_1,
  input  [9:0]  b_2,
  output [`distance_width - 1:0] distance
);


  wire  judge_0 = $signed(a_0) > $signed(b_0);
  wire [10:0] ab0 = $signed(a_0) - $signed(b_0);
  wire [10:0] ba0 = $signed(b_0) - $signed(a_0);
  wire [`distance_width - 1:0] intern_0 = judge_0 ? $signed(ab0) : $signed(ba0);

  wire  judge_1 = $signed(a_1) > $signed(b_1);
  wire [10:0] ab1 = $signed(a_1) - $signed(b_1); 
  wire [10:0] ba1 = $signed(b_1) - $signed(a_1); 
  wire [`distance_width - 1:0] intern_1 = judge_1 ? $signed(ab1) : $signed(ba1);

  wire  judge_2 = $signed(a_2) > $signed(b_2); 
  wire [10:0] ab2 = $signed(a_2) - $signed(b_2);
  wire [10:0] ba2 = $signed(b_2) - $signed(a_2);
  wire [`distance_width - 1:0] intern_2 = judge_2 ? $signed(ab2) : $signed(ba2);

  assign distance = $signed(intern_0) + $signed(intern_1) + $signed(intern_2);
endmodule