data/full_repos/permissive/410272426/hardware_code_radix-4/PE1.v
1: b"%Error: data/full_repos/permissive/410272426/hardware_code_radix-4/PE1.v:37: Cannot find file containing module: 'shift_3'\n   shift_3 #(.data_width(14)) shf_u (.clk(clk),.rst(rst),.din(u),.dout(u_q3));\n   ^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/410272426/hardware_code_radix-4,data/full_repos/permissive/410272426/shift_3\n             data/full_repos/permissive/410272426/hardware_code_radix-4,data/full_repos/permissive/410272426/shift_3.v\n             data/full_repos/permissive/410272426/hardware_code_radix-4,data/full_repos/permissive/410272426/shift_3.sv\n             shift_3\n             shift_3.v\n             shift_3.sv\n             obj_dir/shift_3\n             obj_dir/shift_3.v\n             obj_dir/shift_3.sv\n%Error: data/full_repos/permissive/410272426/hardware_code_radix-4/PE1.v:38: Cannot find file containing module: 'shift_3'\n   shift_3 #(.data_width(14)) shf_v (.clk(clk),.rst(rst),.din(v),.dout(v_q3));\n   ^~~~~~~\n%Error: data/full_repos/permissive/410272426/hardware_code_radix-4/PE1.v:41: Cannot find file containing module: 'modular_substraction'\n   modular_substraction #(.data_width(14)) sub(.x_sub(sub_op1),.y_sub(sub_op2),.z_sub(sub_out));\n   ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/410272426/hardware_code_radix-4/PE1.v:42: Cannot find file containing module: 'modular_add'\n   modular_add #(.data_width(14)) add(.x_add(u_q3),.y_add(v_q3),.z_add(add_out));\n   ^~~~~~~~~~~\n%Error: data/full_repos/permissive/410272426/hardware_code_radix-4/PE1.v:43: Cannot find file containing module: 'shift_3'\n   shift_3 #(.data_width(14)) shf_add (.clk(clk),.rst(rst),.din(add_out),.dout(add_out_q3));\n   ^~~~~~~\n%Error: data/full_repos/permissive/410272426/hardware_code_radix-4/PE1.v:44: Cannot find file containing module: 'shift_3'\n   shift_3 #(.data_width(14)) shf_sub (.clk(clk),.rst(rst),.din(sub_out),.dout(sub_out_q3));\n   ^~~~~~~\n%Error: data/full_repos/permissive/410272426/hardware_code_radix-4/PE1.v:46: Cannot find file containing module: 'modular_half'\n    modular_half #(.data_width(14)) half1 (.x_half(add_out_q3),.y_half(half_out1));\n    ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/410272426/hardware_code_radix-4/PE1.v:47: Cannot find file containing module: 'modular_half'\n    modular_half #(.data_width(14)) half2 (.x_half(sub_out_q3),.y_half(half_out2));\n    ^~~~~~~~~~~~\n%Error: Exiting due to 8 error(s)\n"
module PE1 #(parameter data_width = 14)(
    input clk,rst,
    input sel,
    input [data_width-1:0] u,v,
    output [data_width-1:0] bf_upper,bf_lower
    );
    
   wire [data_width-1:0] u_q3;
   wire [data_width-1:0] v_q3;
   wire [data_width-1:0] add_out;
   wire [data_width-1:0] sub_out,sub_op1,sub_op2;
   wire [data_width-1:0] add_out_q3,sub_out_q3;
   wire [data_width-1:0] half_out1,half_out2;
    
   shift_3 #(.data_width(14)) shf_u (.clk(clk),.rst(rst),.din(u),.dout(u_q3));
   shift_3 #(.data_width(14)) shf_v (.clk(clk),.rst(rst),.din(v),.dout(v_q3));
   assign sub_op1 = sel == 1'b0 ? u_q3 : v_q3;
   assign sub_op2 = sel == 1'b0 ? v_q3 : u_q3;
   modular_substraction #(.data_width(14)) sub(.x_sub(sub_op1),.y_sub(sub_op2),.z_sub(sub_out));
   modular_add #(.data_width(14)) add(.x_add(u_q3),.y_add(v_q3),.z_add(add_out));
   shift_3 #(.data_width(14)) shf_add (.clk(clk),.rst(rst),.din(add_out),.dout(add_out_q3));
   shift_3 #(.data_width(14)) shf_sub (.clk(clk),.rst(rst),.din(sub_out),.dout(sub_out_q3));
   
    modular_half #(.data_width(14)) half1 (.x_half(add_out_q3),.y_half(half_out1));
    modular_half #(.data_width(14)) half2 (.x_half(sub_out_q3),.y_half(half_out2));
    assign bf_lower = sel == 0 ? add_out_q3 : half_out1;
    assign bf_upper = sel == 0 ? sub_out_q3 : half_out2;  

endmodule
module PE1 #(parameter data_width = 14)(
    input clk,rst,
    input sel,
    input [data_width-1:0] u,v,
    output [data_width-1:0] bf_upper,bf_lower
    );

    
   wire [data_width-1:0] u_q3;
   wire [data_width-1:0] v_q3;
   wire [data_width-1:0] add_out;
   wire [data_width-1:0] sub_out,sub_op1,sub_op2;
   wire [data_width-1:0] add_out_q3,sub_out_q3;
   wire [data_width-1:0] half_out1,half_out2;
    
   shift_3 #(.data_width(14)) shf_u (.clk(clk),.rst(rst),.din(u),.dout(u_q3));
   shift_3 #(.data_width(14)) shf_v (.clk(clk),.rst(rst),.din(v),.dout(v_q3));
   assign sub_op1 = sel == 1'b0 ? u_q3 : v_q3;
   assign sub_op2 = sel == 1'b0 ? v_q3 : u_q3;
   modular_substraction #(.data_width(14)) sub(.x_sub(sub_op1),.y_sub(sub_op2),.z_sub(sub_out));
   modular_add #(.data_width(14)) add(.x_add(u_q3),.y_add(v_q3),.z_add(add_out));
   shift_3 #(.data_width(14)) shf_add (.clk(clk),.rst(rst),.din(add_out),.dout(add_out_q3));
   shift_3 #(.data_width(14)) shf_sub (.clk(clk),.rst(rst),.din(sub_out),.dout(sub_out_q3));
   
    modular_half #(.data_width(14)) half1 (.x_half(add_out_q3),.y_half(half_out1));
    modular_half #(.data_width(14)) half2 (.x_half(sub_out_q3),.y_half(half_out2));
    assign bf_lower = sel == 0 ? add_out_q3 : half_out1;
    assign bf_upper = sel == 0 ? sub_out_q3 : half_out2;  

endmodule