data/full_repos/permissive/423547971/Modules with Simulations/Binary to BCD Converter/byte2bcd.v
1: b'%Error: Cannot find file containing module: with\n        ... Looked in:\n             data/full_repos/permissive/423547971/Modules/with\n             data/full_repos/permissive/423547971/Modules/with.v\n             data/full_repos/permissive/423547971/Modules/with.sv\n             with\n             with.v\n             with.sv\n             obj_dir/with\n             obj_dir/with.v\n             obj_dir/with.sv\n%Error: Cannot find file containing module: Simulations/Binary\n%Error: Cannot find file containing module: to\n%Error: Cannot find file containing module: BCD\n%Error: Cannot find file containing module: Converter,data/full_repos/permissive/423547971\n%Error: Cannot find file containing module: data/full_repos/permissive/423547971/Modules\n%Error: Cannot find file containing module: Converter/byte2bcd.v\n%Error: Exiting due to 7 error(s)\n'
module byte2bcd(
    input [7:0] byte_in,
    output [11:0] bcd_out
    );
    
    reg [3:0] hundreds, tens, ones;
    reg [6:0] temp_reg;
    
    always @(*) begin
        hundreds = byte_in / 100;
        temp_reg = byte_in % 100;
        tens = temp_reg / 10;
        ones = temp_reg % 10;
    end
    
    assign bcd_out = {hundreds, tens, ones};
    
endmodule
module byte2bcd(
    input [7:0] byte_in,
    output [11:0] bcd_out
    );

    
    reg [3:0] hundreds, tens, ones;
    reg [6:0] temp_reg;
    
    always @(*) begin
        hundreds = byte_in / 100;
        temp_reg = byte_in % 100;
        tens = temp_reg / 10;
        ones = temp_reg % 10;
    end
    
    assign bcd_out = {hundreds, tens, ones};
    
endmodule