data/full_repos/permissive/456436315/workshop/chap1-dynamic/board/rev1_tangnano4k/src/main.sv
1: b'%Warning-WIDTH: data/full_repos/permissive/456436315/workshop/chap1-dynamic/board/rev1_tangnano4k/src/main.sv:19: Operator SHIFTL expects 9 bits on the LHS, but LHS\'s FUNCREF \'led_on\' generates 1 bits.\n                                                                                                                : ... In instance main\nassign led_row = led_on(counter) << row_index;\n                                 ^~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 warning(s)\n'
function [7:0] led_pattern(input [2:0] row_index);
  case (row_index)
    3'd0:    led_pattern = 8'b10101010;
    3'd1:    led_pattern = 8'b01010101;
    3'd2:    led_pattern = 8'b11110000;
    3'd3:    led_pattern = 8'b00001111;
    3'd4:    led_pattern = 8'b11001100;
    3'd5:    led_pattern = 8'b00110011;
    3'd6:    led_pattern = 8'b11100111;
    3'd7:    led_pattern = 8'b00011000;
    default: led_pattern = 8'b00000000;
  endcase
endfunction
function [7:0] led_pattern(input [2:0] row_index);

  case (row_index)
    3'd0:    led_pattern = 8'b10101010;
    3'd1:    led_pattern = 8'b01010101;
    3'd2:    led_pattern = 8'b11110000;
    3'd3:    led_pattern = 8'b00001111;
    3'd4:    led_pattern = 8'b11001100;
    3'd5:    led_pattern = 8'b00110011;
    3'd6:    led_pattern = 8'b11100111;
    3'd7:    led_pattern = 8'b00011000;
    default: led_pattern = 8'b00000000;
  endcase
endfunction