data/full_repos/permissive/517239653/print.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/517239653/print.v:115: Multiple top level modules\n                                                                   : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                   : ... Top module \'hex_printer\'\nmodule hex_printer(chars_out, number_in);\n       ^~~~~~~~~~~\n                                                                   : ... Top module \'binary_printer\'\nmodule binary_printer(chars_out, binary_in);\n       ^~~~~~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/517239653/print.v:48: Operator ADD expects 32 or 8 bits on the LHS, but LHS\'s VARREF \'binary\' generates 4 bits.\n                                                               : ... In instance hex_printer.genloop[7].BIN_TO_CHAR\n        ascii_reg <= binary + 55;\n                            ^\n%Warning-WIDTH: data/full_repos/permissive/517239653/print.v:50: Operator ADD expects 32 or 8 bits on the LHS, but LHS\'s VARREF \'binary\' generates 4 bits.\n                                                               : ... In instance hex_printer.genloop[7].BIN_TO_CHAR\n        ascii_reg <= binary + 48;\n                            ^\n%Error: Exiting due to 3 warning(s)\n'
module binary_to_ascii_hex(ascii, binary);

output [7:0] ascii;
input [3:0] binary;

reg [7:0] ascii_reg;

assign ascii = ascii_reg;

always @(*) begin
    if(binary > 9) begin
        ascii_reg <= binary + 55;
    end else begin
        ascii_reg <= binary + 48;
    end
end
endmodule
module binary_to_ascii_hex(ascii, binary);


output [7:0] ascii;
input [3:0] binary;

reg [7:0] ascii_reg;

assign ascii = ascii_reg;

always @(*) begin
    if(binary > 9) begin
        ascii_reg <= binary + 55;
    end else begin
        ascii_reg <= binary + 48;
    end
end
endmodule