data/full_repos/permissive/51494710/Hardware/Perceptron_xor/new_weight_mid.sv
1: b"%Error: data/full_repos/permissive/51494710/Hardware/Perceptron_xor/new_weight_mid.sv:21: Cannot find file containing module: 'calculate_error'\n  calculate_error er1(\n  ^~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/51494710/Hardware/Perceptron_xor,data/full_repos/permissive/51494710/calculate_error\n             data/full_repos/permissive/51494710/Hardware/Perceptron_xor,data/full_repos/permissive/51494710/calculate_error.v\n             data/full_repos/permissive/51494710/Hardware/Perceptron_xor,data/full_repos/permissive/51494710/calculate_error.sv\n             calculate_error\n             calculate_error.v\n             calculate_error.sv\n             obj_dir/calculate_error\n             obj_dir/calculate_error.v\n             obj_dir/calculate_error.sv\n%Error: data/full_repos/permissive/51494710/Hardware/Perceptron_xor/new_weight_mid.sv:32: Cannot find file containing module: 'calculate_delta_mid'\n  calculate_delta_mid delta0(\n  ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/51494710/Hardware/Perceptron_xor/new_weight_mid.sv:35: Cannot find file containing module: 'calculate_delta_mid'\n  calculate_delta_mid delta1(\n  ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/51494710/Hardware/Perceptron_xor/new_weight_mid.sv:38: Cannot find file containing module: 'calculate_delta_mid'\n  calculate_delta_mid delta2(\n  ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/51494710/Hardware/Perceptron_xor/new_weight_mid.sv:44: Cannot find file containing module: 'fp_add_sub'\n  fp_add_sub add0(\n  ^~~~~~~~~~\n%Error: data/full_repos/permissive/51494710/Hardware/Perceptron_xor/new_weight_mid.sv:51: Cannot find file containing module: 'fp_add_sub'\n  fp_add_sub add1(\n  ^~~~~~~~~~\n%Error: data/full_repos/permissive/51494710/Hardware/Perceptron_xor/new_weight_mid.sv:58: Cannot find file containing module: 'fp_add_sub'\n  fp_add_sub add2(\n  ^~~~~~~~~~\n%Error: Exiting due to 7 error(s)\n"
module new_weight_mid(
  input				iCLK,
  input	[31:0]	iTEACH,
  input	[31:0]	iOUTPUT,
  input	[31:0]	iMID_VALUE1,
  input	[31:0]	iMID_VALUE2,
  input	[31:0]	iMID_VALUE12,
  input	[31:0]	iWEIGHT_V0,
  input	[31:0]	iWEIGHT_V1,
  input	[31:0]	iWEIGHT_V2,
  
  output	[31:0]	oWEIGHT_V0,
  output	[31:0]	oWEIGHT_V1,
  output	[31:0]	oWEIGHT_V2,
  output	[31:0]	oERROR
);



  logic	[31:0]	error_o;
  calculate_error er1(
    .iCLK(iCLK),
    .iTEACH(iTEACH),
    .iOUTPUT(iOUTPUT),
  
    .oERROR(error_o)
  );



  logic	[31:0]	delta_v0, delta_v1, delta_v2;
  calculate_delta_mid delta0(
    .iCLK(iCLK), .iERROR(error_o), .iMID_VALUE(iMID_VALUE1),  .oDELTA(delta_v0)
  );
  calculate_delta_mid delta1(
    .iCLK(iCLK), .iERROR(error_o), .iMID_VALUE(iMID_VALUE2),  .oDELTA(delta_v1)
  );
  calculate_delta_mid delta2(
    .iCLK(iCLK), .iERROR(error_o), .iMID_VALUE(iMID_VALUE12), .oDELTA(delta_v2)
  );
  


  fp_add_sub add0(
    .add_sub(1'b1),
    .clock(iCLK),
    .dataa(iWEIGHT_V0),
    .datab(delta_v0),
    .result(oWEIGHT_V0)
  );
  fp_add_sub add1(
    .add_sub(1'b1),
    .clock(iCLK),
    .dataa(iWEIGHT_V1),
    .datab(delta_v1),
    .result(oWEIGHT_V1)
  );
  fp_add_sub add2(
    .add_sub(1'b1),
    .clock(iCLK),
    .dataa(iWEIGHT_V2),
    .datab(delta_v2),
    .result(oWEIGHT_V2)
  );

  assign oERROR	= error_o;

endmodule
module new_weight_mid(
  input				iCLK,
  input	[31:0]	iTEACH,
  input	[31:0]	iOUTPUT,
  input	[31:0]	iMID_VALUE1,
  input	[31:0]	iMID_VALUE2,
  input	[31:0]	iMID_VALUE12,
  input	[31:0]	iWEIGHT_V0,
  input	[31:0]	iWEIGHT_V1,
  input	[31:0]	iWEIGHT_V2,
  
  output	[31:0]	oWEIGHT_V0,
  output	[31:0]	oWEIGHT_V1,
  output	[31:0]	oWEIGHT_V2,
  output	[31:0]	oERROR
);




  logic	[31:0]	error_o;
  calculate_error er1(
    .iCLK(iCLK),
    .iTEACH(iTEACH),
    .iOUTPUT(iOUTPUT),
  
    .oERROR(error_o)
  );



  logic	[31:0]	delta_v0, delta_v1, delta_v2;
  calculate_delta_mid delta0(
    .iCLK(iCLK), .iERROR(error_o), .iMID_VALUE(iMID_VALUE1),  .oDELTA(delta_v0)
  );
  calculate_delta_mid delta1(
    .iCLK(iCLK), .iERROR(error_o), .iMID_VALUE(iMID_VALUE2),  .oDELTA(delta_v1)
  );
  calculate_delta_mid delta2(
    .iCLK(iCLK), .iERROR(error_o), .iMID_VALUE(iMID_VALUE12), .oDELTA(delta_v2)
  );
  


  fp_add_sub add0(
    .add_sub(1'b1),
    .clock(iCLK),
    .dataa(iWEIGHT_V0),
    .datab(delta_v0),
    .result(oWEIGHT_V0)
  );
  fp_add_sub add1(
    .add_sub(1'b1),
    .clock(iCLK),
    .dataa(iWEIGHT_V1),
    .datab(delta_v1),
    .result(oWEIGHT_V1)
  );
  fp_add_sub add2(
    .add_sub(1'b1),
    .clock(iCLK),
    .dataa(iWEIGHT_V2),
    .datab(delta_v2),
    .result(oWEIGHT_V2)
  );

  assign oERROR	= error_o;

endmodule