data/full_repos/permissive/186443491/view/gold_miner.v
 line:272: before: "."
1: b'%Warning-MULTITOP: data/full_repos/permissive/186443491/view/gold_miner.v:411: 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 \'gold_miner\'\nmodule gold_miner(\n       ^~~~~~~~~~\n                                                                             : ... Top module \'hex_decoder\'\nmodule hex_decoder(hex_digit, segments);\n       ^~~~~~~~~~~\n%Warning-IMPLICIT: data/full_repos/permissive/186443491/view/gold_miner.v:97: Signal definition not found, creating implicitly: \'plot\'\n   .plot(plot), \n         ^~~~\n%Warning-IMPLICIT: data/full_repos/permissive/186443491/view/gold_miner.v:99: Signal definition not found, creating implicitly: \'background\'\n   .background(background),\n               ^~~~~~~~~~\n%Error: data/full_repos/permissive/186443491/view/gold_miner.v:256: Cannot find file containing module: \'vga_adapter\'\n vga_adapter VGA(\n ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/186443491/view,data/full_repos/permissive/186443491/vga_adapter\n             data/full_repos/permissive/186443491/view,data/full_repos/permissive/186443491/vga_adapter.v\n             data/full_repos/permissive/186443491/view,data/full_repos/permissive/186443491/vga_adapter.sv\n             vga_adapter\n             vga_adapter.v\n             vga_adapter.sv\n             obj_dir/vga_adapter\n             obj_dir/vga_adapter.v\n             obj_dir/vga_adapter.sv\n%Error: data/full_repos/permissive/186443491/view/gold_miner.v:280: Cannot find file containing module: \'view\'\n view view(\n ^~~~\n%Error: data/full_repos/permissive/186443491/view/gold_miner.v:320: Cannot find file containing module: \'PS2_Controller\'\n PS2_Controller keyboard(\n ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/186443491/view/gold_miner.v:386: Cannot find file containing module: \'audio\'\n audio audio0(\n ^~~~~\n%Error: Exiting due to 4 error(s), 3 warning(s)\n'
module hex_decoder(hex_digit, segments);
    input [3:0] hex_digit;
    output reg [6:0] segments;
   
    always @(*)
        case (hex_digit)
            4'h0: segments = 7'b100_0000;
            4'h1: segments = 7'b111_1001;
            4'h2: segments = 7'b010_0100;
            4'h3: segments = 7'b011_0000;
            4'h4: segments = 7'b001_1001;
            4'h5: segments = 7'b001_0010;
            4'h6: segments = 7'b000_0010;
            4'h7: segments = 7'b111_1000;
            4'h8: segments = 7'b000_0000;
            4'h9: segments = 7'b001_1000;
            4'hA: segments = 7'b000_1000;
            4'hB: segments = 7'b000_0011;
            4'hC: segments = 7'b100_0110;
            4'hD: segments = 7'b010_0001;
            4'hE: segments = 7'b000_0110;
            4'hF: segments = 7'b000_1110;   
            default: segments = 7'h7f;
        endcase
endmodule
module hex_decoder(hex_digit, segments);

    input [3:0] hex_digit;
    output reg [6:0] segments;
   
    always @(*)
        case (hex_digit)
            4'h0: segments = 7'b100_0000;
            4'h1: segments = 7'b111_1001;
            4'h2: segments = 7'b010_0100;
            4'h3: segments = 7'b011_0000;
            4'h4: segments = 7'b001_1001;
            4'h5: segments = 7'b001_0010;
            4'h6: segments = 7'b000_0010;
            4'h7: segments = 7'b111_1000;
            4'h8: segments = 7'b000_0000;
            4'h9: segments = 7'b001_1000;
            4'hA: segments = 7'b000_1000;
            4'hB: segments = 7'b000_0011;
            4'hC: segments = 7'b100_0110;
            4'hD: segments = 7'b010_0001;
            4'hE: segments = 7'b000_0110;
            4'hF: segments = 7'b000_1110;   
            default: segments = 7'h7f;
        endcase
endmodule