data/full_repos/permissive/413230008/Binary-to-BCD/Code/Sources/adder_subtractor_4bit.v
1: b"%Error: data/full_repos/permissive/413230008/Binary-to-BCD/Code/Sources/adder_subtractor_4bit.v:36: Cannot find file containing module: 'rca_nbit'\n    rca_nbit A0 (\n    ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/413230008/Binary-to-BCD/Code/Sources,data/full_repos/permissive/413230008/rca_nbit\n             data/full_repos/permissive/413230008/Binary-to-BCD/Code/Sources,data/full_repos/permissive/413230008/rca_nbit.v\n             data/full_repos/permissive/413230008/Binary-to-BCD/Code/Sources,data/full_repos/permissive/413230008/rca_nbit.sv\n             rca_nbit\n             rca_nbit.v\n             rca_nbit.sv\n             obj_dir/rca_nbit\n             obj_dir/rca_nbit.v\n             obj_dir/rca_nbit.sv\n%Error: Exiting due to 1 error(s)\n"
module adder_subtractor_4bit(
    input [3:0] x,
    input [3:0] y,
    input add_n,
    output[3:0] s,
    output c_out
    );
    wire [3:0] xored_y;
    assign xored_y[0] = y[0] ^ add_n;
    assign xored_y[1] = y[1] ^ add_n;
    assign xored_y[2] = y[2] ^ add_n;
    assign xored_y[3] = y[3] ^ add_n;
    
    rca_nbit A0 (
    .x(x),
    .y(xored_y),
    .c_in(add_n),
    .s(s),
    .c_out(cout)
    );
    
    
    
    
endmodule
module adder_subtractor_4bit(
    input [3:0] x,
    input [3:0] y,
    input add_n,
    output[3:0] s,
    output c_out
    );

    wire [3:0] xored_y;
    assign xored_y[0] = y[0] ^ add_n;
    assign xored_y[1] = y[1] ^ add_n;
    assign xored_y[2] = y[2] ^ add_n;
    assign xored_y[3] = y[3] ^ add_n;
    
    rca_nbit A0 (
    .x(x),
    .y(xored_y),
    .c_in(add_n),
    .s(s),
    .c_out(cout)
    );
    
    
    
    
endmodule