data/full_repos/permissive/418692101/DTWCalculator.v
1: b'%Error: data/full_repos/permissive/418692101/DTWCalculator.v:3: Cannot find include file: DistanceCalculator.v\n`include "DistanceCalculator.v" \n         ^~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/418692101,data/full_repos/permissive/418692101/DistanceCalculator.v\n             data/full_repos/permissive/418692101,data/full_repos/permissive/418692101/DistanceCalculator.v.v\n             data/full_repos/permissive/418692101,data/full_repos/permissive/418692101/DistanceCalculator.v.sv\n             DistanceCalculator.v\n             DistanceCalculator.v.v\n             DistanceCalculator.v.sv\n             obj_dir/DistanceCalculator.v\n             obj_dir/DistanceCalculator.v.v\n             obj_dir/DistanceCalculator.v.sv\n%Error: data/full_repos/permissive/418692101/DTWCalculator.v:5: Define or directive not defined: \'`dtw_width\'\n  input  [`dtw_width - 1:0] pre_DTW_0,\n          ^~~~~~~~~~\n%Error: data/full_repos/permissive/418692101/DTWCalculator.v:6: Define or directive not defined: \'`dtw_width\'\n  input  [`dtw_width - 1:0] pre_DTW_1,\n          ^~~~~~~~~~\n%Error: data/full_repos/permissive/418692101/DTWCalculator.v:7: Define or directive not defined: \'`dtw_width\'\n  input  [`dtw_width - 1:0] pre_DTW_2,\n          ^~~~~~~~~~\n%Error: data/full_repos/permissive/418692101/DTWCalculator.v:8: Define or directive not defined: \'`distance_width\'\n  input  [`distance_width - 1:0] distance,\n          ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/418692101/DTWCalculator.v:9: Define or directive not defined: \'`dtw_width\'\n  output [`dtw_width - 1:0] DTW,\n          ^~~~~~~~~~\n%Error: data/full_repos/permissive/418692101/DTWCalculator.v:14: Define or directive not defined: \'`dtw_width\'\n  wire [`dtw_width - 1:0] intern = judge_0 ? pre_DTW_0 : pre_DTW_2;\n        ^~~~~~~~~~\n%Error: data/full_repos/permissive/418692101/DTWCalculator.v:17: Define or directive not defined: \'`dtw_width\'\n  wire [`dtw_width - 1:0] cons = judge_1 ? intern : pre_DTW_1;\n        ^~~~~~~~~~\n%Error: Exiting due to 8 error(s)\n'
module DTWCalculator(
  input  [`dtw_width - 1:0] pre_DTW_0,
  input  [`dtw_width - 1:0] pre_DTW_1,
  input  [`dtw_width - 1:0] pre_DTW_2,
  input  [`distance_width - 1:0] distance,
  output [`dtw_width - 1:0] DTW,
  output [1:0] Number
);

  wire  judge_0 = pre_DTW_0 < pre_DTW_2;
  wire [`dtw_width - 1:0] intern = judge_0 ? pre_DTW_0 : pre_DTW_2;
  wire [1:0] number_intern = judge_0 ? 2'b00 : 2'b10;
  wire  judge_1 = intern < pre_DTW_1;
  wire [`dtw_width - 1:0] cons = judge_1 ? intern : pre_DTW_1;
  assign Number = judge_1 ? number_intern : 2'b01;
  assign DTW = distance + cons; 
endmodule
module DTWCalculator(
  input  [`dtw_width - 1:0] pre_DTW_0,
  input  [`dtw_width - 1:0] pre_DTW_1,
  input  [`dtw_width - 1:0] pre_DTW_2,
  input  [`distance_width - 1:0] distance,
  output [`dtw_width - 1:0] DTW,
  output [1:0] Number
);


  wire  judge_0 = pre_DTW_0 < pre_DTW_2;
  wire [`dtw_width - 1:0] intern = judge_0 ? pre_DTW_0 : pre_DTW_2;
  wire [1:0] number_intern = judge_0 ? 2'b00 : 2'b10;
  wire  judge_1 = intern < pre_DTW_1;
  wire [`dtw_width - 1:0] cons = judge_1 ? intern : pre_DTW_1;
  assign Number = judge_1 ? number_intern : 2'b01;
  assign DTW = distance + cons; 
endmodule