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 [7:0] MakeStatusOutput;
        input[1:0] StatusCode;
        


        case(StatusCode)
            CHANNEL_OFF:    MakeStatusOutput = 8'b00000000;
            CHANNEL_ON:     MakeStatusOutput = 8'b11111111;
            SET_TO_WAVE:    MakeStatusOutput = 8'b00000000;
            SET_TO_NOISE:   MakeStatusOutput = 8'b11111111;
        endcase
    endfunction
function [7:0] MakeStatusOutput;

        input[1:0] StatusCode;
        


        case(StatusCode)
            CHANNEL_OFF:    MakeStatusOutput = 8'b00000000;
            CHANNEL_ON:     MakeStatusOutput = 8'b11111111;
            SET_TO_WAVE:    MakeStatusOutput = 8'b00000000;
            SET_TO_NOISE:   MakeStatusOutput = 8'b11111111;
        endcase
    endfunction