data/full_repos/permissive/517390617/modules/jtframe/hdl/keyboard/jtframe_inputs.v
1: b'%Error: data/full_repos/permissive/517390617/modules/jtframe/hdl/keyboard/jtframe_inputs.v:95: Cannot find file containing module: \'jtframe_4wayjoy\'\njtframe_4wayjoy u_4way_1p(\n^~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/517390617/modules/jtframe/hdl/keyboard,data/full_repos/permissive/517390617/jtframe_4wayjoy\n             data/full_repos/permissive/517390617/modules/jtframe/hdl/keyboard,data/full_repos/permissive/517390617/jtframe_4wayjoy.v\n             data/full_repos/permissive/517390617/modules/jtframe/hdl/keyboard,data/full_repos/permissive/517390617/jtframe_4wayjoy.sv\n             jtframe_4wayjoy\n             jtframe_4wayjoy.v\n             jtframe_4wayjoy.sv\n             obj_dir/jtframe_4wayjoy\n             obj_dir/jtframe_4wayjoy.v\n             obj_dir/jtframe_4wayjoy.sv\n%Error: data/full_repos/permissive/517390617/modules/jtframe/hdl/keyboard/jtframe_inputs.v:103: Cannot find file containing module: \'jtframe_4wayjoy\'\njtframe_4wayjoy u_4way_2p(\n^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/517390617/modules/jtframe/hdl/keyboard/jtframe_inputs.v:111: Cannot find file containing module: \'jtframe_4wayjoy\'\njtframe_4wayjoy u_4way_3p(\n^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/517390617/modules/jtframe/hdl/keyboard/jtframe_inputs.v:119: Cannot find file containing module: \'jtframe_4wayjoy\'\njtframe_4wayjoy u_4way_4p(\n^~~~~~~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/hdl/keyboard/jtframe_inputs.v:206: Operator OR expects 16 bits on the RHS, but RHS\'s VARREF \'key_joy1\' generates 10 bits.\n                                                                                                      : ... In instance jtframe_inputs\n        game_joy1 <= apply_rotation( joy1_sync | key_joy1 | { mouse_but_1p, 4\'d0}, rot_control, ~dip_flip, autofire );\n                                               ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/hdl/keyboard/jtframe_inputs.v:206: Operator OR expects 16 bits on the RHS, but RHS\'s REPLICATE generates 7 bits.\n                                                                                                      : ... In instance jtframe_inputs\n        game_joy1 <= apply_rotation( joy1_sync | key_joy1 | { mouse_but_1p, 4\'d0}, rot_control, ~dip_flip, autofire );\n                                                          ^\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/hdl/keyboard/jtframe_inputs.v:206: Operator FUNCREF \'apply_rotation\' expects 10 bits on the Function Argument, but Function Argument\'s OR generates 16 bits.\n                                                                                                      : ... In instance jtframe_inputs\n        game_joy1 <= apply_rotation( joy1_sync | key_joy1 | { mouse_but_1p, 4\'d0}, rot_control, ~dip_flip, autofire );\n                     ^~~~~~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/hdl/keyboard/jtframe_inputs.v:215: Operator OR expects 16 bits on the RHS, but RHS\'s VARREF \'key_joy2\' generates 10 bits.\n                                                                                                      : ... In instance jtframe_inputs\n        game_joy2 <= apply_rotation(joy2_sync | key_joy2 | { mouse_but_2p, 4\'d0}, rot_control, ~dip_flip, autofire );\n                                              ^\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/hdl/keyboard/jtframe_inputs.v:215: Operator OR expects 16 bits on the RHS, but RHS\'s REPLICATE generates 7 bits.\n                                                                                                      : ... In instance jtframe_inputs\n        game_joy2 <= apply_rotation(joy2_sync | key_joy2 | { mouse_but_2p, 4\'d0}, rot_control, ~dip_flip, autofire );\n                                                         ^\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/hdl/keyboard/jtframe_inputs.v:215: Operator FUNCREF \'apply_rotation\' expects 10 bits on the Function Argument, but Function Argument\'s OR generates 16 bits.\n                                                                                                      : ... In instance jtframe_inputs\n        game_joy2 <= apply_rotation(joy2_sync | key_joy2 | { mouse_but_2p, 4\'d0}, rot_control, ~dip_flip, autofire );\n                     ^~~~~~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/hdl/keyboard/jtframe_inputs.v:216: Operator OR expects 16 bits on the RHS, but RHS\'s VARREF \'key_joy3\' generates 10 bits.\n                                                                                                      : ... In instance jtframe_inputs\n        game_joy3 <= apply_rotation(joy3_sync | key_joy3, rot_control, ~dip_flip, autofire );\n                                              ^\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/hdl/keyboard/jtframe_inputs.v:216: Operator FUNCREF \'apply_rotation\' expects 10 bits on the Function Argument, but Function Argument\'s OR generates 16 bits.\n                                                                                                      : ... In instance jtframe_inputs\n        game_joy3 <= apply_rotation(joy3_sync | key_joy3, rot_control, ~dip_flip, autofire );\n                     ^~~~~~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/hdl/keyboard/jtframe_inputs.v:217: Operator FUNCREF \'apply_rotation\' expects 10 bits on the Function Argument, but Function Argument\'s VARREF \'joy4_sync\' generates 16 bits.\n                                                                                                      : ... In instance jtframe_inputs\n        game_joy4 <= apply_rotation(joy4_sync           , rot_control, ~dip_flip, autofire );\n                     ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/517390617/modules/jtframe/hdl/keyboard/jtframe_inputs.v:259: Cannot find file containing module: \'jtframe_paddle\'\njtframe_paddle u_paddle(\n^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/517390617/modules/jtframe/hdl/keyboard/jtframe_inputs.v:267: Cannot find file containing module: \'jtframe_mouse\'\njtframe_mouse u_mouse(\n^~~~~~~~~~~~~\n%Error: Exiting due to 6 error(s), 9 warning(s)\n'
function [9:0] apply_rotation;
    input [9:0] joy_in;
    input       rot;
    input       flip;
    input       autofire;
    begin
    apply_rotation = {10{ACTIVE_LOW[0]}} ^
        (!rot ? joy_in & { 5'h1f, autofire, 4'hf } :
        flip ?
         { joy_in[9:5],joy_in[4]&autofire, joy_in[1], joy_in[0], joy_in[2], joy_in[3] } :
         { joy_in[9:5],joy_in[4]&autofire, joy_in[0], joy_in[1], joy_in[3], joy_in[2] });
    end
endfunction
function [9:0] apply_rotation;

    input [9:0] joy_in;
    input       rot;
    input       flip;
    input       autofire;
    begin
    apply_rotation = {10{ACTIVE_LOW[0]}} ^
        (!rot ? joy_in & { 5'h1f, autofire, 4'hf } :
        flip ?
         { joy_in[9:5],joy_in[4]&autofire, joy_in[1], joy_in[0], joy_in[2], joy_in[3] } :
         { joy_in[9:5],joy_in[4]&autofire, joy_in[0], joy_in[1], joy_in[3], joy_in[2] });
    end
endfunction