data/full_repos/permissive/413230008/Binary-to-BCD/Code/Sources/simple_calc.v
1: b"%Error: data/full_repos/permissive/413230008/Binary-to-BCD/Code/Sources/simple_calc.v:35: Cannot find file containing module: 'adder_subtractor_nbit'\n    adder_subtractor_nbit AS (x, y, c, as, carry_out, overflow, negative);\n    ^~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/413230008/Binary-to-BCD/Code/Sources,data/full_repos/permissive/413230008/adder_subtractor_nbit\n             data/full_repos/permissive/413230008/Binary-to-BCD/Code/Sources,data/full_repos/permissive/413230008/adder_subtractor_nbit.v\n             data/full_repos/permissive/413230008/Binary-to-BCD/Code/Sources,data/full_repos/permissive/413230008/adder_subtractor_nbit.sv\n             adder_subtractor_nbit\n             adder_subtractor_nbit.v\n             adder_subtractor_nbit.sv\n             obj_dir/adder_subtractor_nbit\n             obj_dir/adder_subtractor_nbit.v\n             obj_dir/adder_subtractor_nbit.sv\n%Error: data/full_repos/permissive/413230008/Binary-to-BCD/Code/Sources/simple_calc.v:37: Cannot find file containing module: 'csa_multiplier'\n    csa_multiplier Mult (x, y, mu);\n    ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/413230008/Binary-to-BCD/Code/Sources/simple_calc.v:39: Cannot find file containing module: 'mux_2x1_8bit'\n    mux_2x1_8bit DE (as, mu, op_sel[1], results);\n    ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/413230008/Binary-to-BCD/Code/Sources/simple_calc.v:45: Cannot find file containing module: 'bin2bcd'\n    bin2bcd BINBCD (\n    ^~~~~~~\n%Error: Exiting due to 4 error(s)\n"
module simple_calc(
input [3:0] x, y, 
input [1:0] op_sel,
output [11:0] result,
output overflow, carry_out, negative
    );
    
    wire c;
    wire [7:0] as, mu;
    wire [7:0] results;
    
    
    adder_subtractor_nbit AS (x, y, c, as, carry_out, overflow, negative);
    
    csa_multiplier Mult (x, y, mu);
    
    mux_2x1_8bit DE (as, mu, op_sel[1], results);
    
    assign c = op_sel[0];
    
    
    
    bin2bcd BINBCD (
        .bin(results),
        .bcd(result)
    );
    
    
endmodule
module simple_calc(
input [3:0] x, y, 
input [1:0] op_sel,
output [11:0] result,
output overflow, carry_out, negative
    );

    
    wire c;
    wire [7:0] as, mu;
    wire [7:0] results;
    
    
    adder_subtractor_nbit AS (x, y, c, as, carry_out, overflow, negative);
    
    csa_multiplier Mult (x, y, mu);
    
    mux_2x1_8bit DE (as, mu, op_sel[1], results);
    
    assign c = op_sel[0];
    
    
    
    bin2bcd BINBCD (
        .bin(results),
        .bcd(result)
    );
    
    
endmodule