data/full_repos/permissive/433225833/Common/checksum_calculator.v
1: b"%Error: data/full_repos/permissive/433225833/Common/checksum_calculator.v:14: Cannot find file containing module: 'one_complement_adder'\n  one_complement_adder #(.LENGTH(LENGTH)) adder (.a1(checksum), .a2(in), .res(next_checksum));\n  ^~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/433225833/Common,data/full_repos/permissive/433225833/one_complement_adder\n             data/full_repos/permissive/433225833/Common,data/full_repos/permissive/433225833/one_complement_adder.v\n             data/full_repos/permissive/433225833/Common,data/full_repos/permissive/433225833/one_complement_adder.sv\n             one_complement_adder\n             one_complement_adder.v\n             one_complement_adder.sv\n             obj_dir/one_complement_adder\n             obj_dir/one_complement_adder.v\n             obj_dir/one_complement_adder.sv\n%Error: Exiting due to 1 error(s)\n"
module checksum_calculator (in, reset, enable, clk, checksum);
  parameter LENGTH = 32;
  
  input [LENGTH-1:0] in;
  input reset, enable, clk;
  output [LENGTH-1:0] checksum;
  
  wire [LENGTH-1:0] in;
  wire reset, clk;
  reg [LENGTH-1:0] checksum;
  
  
  wire [LENGTH-1:0] next_checksum;
  one_complement_adder #(.LENGTH(LENGTH)) adder (.a1(checksum), .a2(in), .res(next_checksum));
  
  always @(posedge clk) begin
    if (reset) checksum <= 0;
    else if (enable) checksum <= next_checksum;
  end
  
endmodule
module checksum_calculator (in, reset, enable, clk, checksum);

  parameter LENGTH = 32;
  
  input [LENGTH-1:0] in;
  input reset, enable, clk;
  output [LENGTH-1:0] checksum;
  
  wire [LENGTH-1:0] in;
  wire reset, clk;
  reg [LENGTH-1:0] checksum;
  
  
  wire [LENGTH-1:0] next_checksum;
  one_complement_adder #(.LENGTH(LENGTH)) adder (.a1(checksum), .a2(in), .res(next_checksum));
  
  always @(posedge clk) begin
    if (reset) checksum <= 0;
    else if (enable) checksum <= next_checksum;
  end
  
endmodule