data/full_repos/permissive/125742950/ControlUnit.v
1: b'%Warning-WIDTH: data/full_repos/permissive/125742950/ControlUnit.v:82: Operator CASE expects 4 bits on the Case expression, but Case expression\'s VARREF \'StatusCode\' generates 2 bits.\n                                                                     : ... In instance ControlUnit\n        case(StatusCode)\n        ^~~~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/125742950/ControlUnit.v:98: Operator CASE expects 4 bits on the Case expression, but Case expression\'s VARREF \'StatusCode\' generates 2 bits.\n                                                                     : ... In instance ControlUnit\n        case(StatusCode)\n        ^~~~\n%Error: Exiting due to 2 warning(s)\n'
function [3:0] MakeToneWE;
        input[1:0] ToneRegSelect;
        case(ToneRegSelect)
            2'b00: MakeToneWE = 4'b0001;
            2'b01: MakeToneWE = 4'b0010;
            2'b10: MakeToneWE = 4'b0100;
            2'b11: MakeToneWE = 4'b1000;
        endcase
    endfunction
function [3:0] MakeToneWE;

        input[1:0] ToneRegSelect;
        case(ToneRegSelect)
            2'b00: MakeToneWE = 4'b0001;
            2'b01: MakeToneWE = 4'b0010;
            2'b10: MakeToneWE = 4'b0100;
            2'b11: MakeToneWE = 4'b1000;
        endcase
    endfunction