data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v
1: b'%Error: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:180: Cannot find file containing module: \'jtframe_keyboard\'\njtframe_keyboard u_keyboard(\n^~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/517390617/modules/jtframe/target/zxdos,data/full_repos/permissive/517390617/jtframe_keyboard\n             data/full_repos/permissive/517390617/modules/jtframe/target/zxdos,data/full_repos/permissive/517390617/jtframe_keyboard.v\n             data/full_repos/permissive/517390617/modules/jtframe/target/zxdos,data/full_repos/permissive/517390617/jtframe_keyboard.sv\n             jtframe_keyboard\n             jtframe_keyboard.v\n             jtframe_keyboard.sv\n             obj_dir/jtframe_keyboard\n             obj_dir/jtframe_keyboard.v\n             obj_dir/jtframe_keyboard.sv\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:272: Operator OR expects 16 bits on the RHS, but RHS\'s VARREF \'key_joy1\' generates 10 bits.\n                                                                                                         : ... In instance jtframe_board\n        game_joystick1 <= apply_rotation(joy1_sync | key_joy1, rot_control, invert_inputs);\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/target/zxdos/jtgng_zxdos_board.v:272: Operator FUNCREF \'apply_rotation\' expects 10 bits on the Function Argument, but Function Argument\'s OR generates 16 bits.\n                                                                                                         : ... In instance jtframe_board\n        game_joystick1 <= apply_rotation(joy1_sync | key_joy1, rot_control, invert_inputs);\n                          ^~~~~~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:280: Operator OR expects 16 bits on the RHS, but RHS\'s VARREF \'key_joy2\' generates 10 bits.\n                                                                                                         : ... In instance jtframe_board\n        game_joystick2 <= apply_rotation(joy2_sync | key_joy2, rot_control, invert_inputs);\n                                                   ^\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:280: Operator FUNCREF \'apply_rotation\' expects 10 bits on the Function Argument, but Function Argument\'s OR generates 16 bits.\n                                                                                                         : ... In instance jtframe_board\n        game_joystick2 <= apply_rotation(joy2_sync | key_joy2, rot_control, invert_inputs);\n                          ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:301: Cannot find file containing module: \'jtframe_dip\'\njtframe_dip u_dip(\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:328: Cannot find file containing module: \'jtgng_sdram\'\njtgng_sdram u_sdram(\n^~~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:390: Operator ASSIGN expects 8 bits on the Assign RHS, but Assign RHS\'s REPLICATE generates 10 bits.\n                                                                                                         : ... In instance jtframe_board\n        3: extend8 = { a, a, a[2:1] };\n                   ^\n%Warning-SELRANGE: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:392: Selection index out of range: 4:2 outside 3:0\n                                                                                                            : ... In instance jtframe_board\n        5: extend8 = { a, a[4:2]    };\n                           ^\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:392: Operator ASSIGN expects 8 bits on the Assign RHS, but Assign RHS\'s REPLICATE generates 7 bits.\n                                                                                                         : ... In instance jtframe_board\n        5: extend8 = { a, a[4:2]    };\n                   ^\n%Warning-SELRANGE: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:393: Selection index out of range: 5:4 outside 3:0\n                                                                                                            : ... In instance jtframe_board\n        6: extend8 = { a, a[5:4]    };\n                           ^\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:393: Operator ASSIGN expects 8 bits on the Assign RHS, but Assign RHS\'s REPLICATE generates 6 bits.\n                                                                                                         : ... In instance jtframe_board\n        6: extend8 = { a, a[5:4]    };\n                   ^\n%Warning-SELRANGE: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:394: Selection index out of range: 6:6 outside 3:0\n                                                                                                            : ... In instance jtframe_board\n        7: extend8 = { a, a[6]      };\n                           ^\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:394: Operator ASSIGN expects 8 bits on the Assign RHS, but Assign RHS\'s REPLICATE generates 5 bits.\n                                                                                                         : ... In instance jtframe_board\n        7: extend8 = { a, a[6]      };\n                   ^\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:395: Operator ASSIGN expects 8 bits on the Assign RHS, but Assign RHS\'s VARREF \'a\' generates 4 bits.\n                                                                                                         : ... In instance jtframe_board\n        8: extend8 = a;\n                   ^\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:402: Operator ASSIGN expects 8 bits on the Assign RHS, but Assign RHS\'s REPLICATE generates 10 bits.\n                                                                                                         : ... In instance jtframe_board\n        3: extend8b = { a, a         };\n                    ^\n%Warning-SELRANGE: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:404: Selection index out of range: 5:4 outside 4:0\n                                                                                                            : ... In instance jtframe_board\n        5: extend8b = { a, a[5:4]    };\n                            ^\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:404: Operator ASSIGN expects 8 bits on the Assign RHS, but Assign RHS\'s REPLICATE generates 7 bits.\n                                                                                                         : ... In instance jtframe_board\n        5: extend8b = { a, a[5:4]    };\n                    ^\n%Warning-SELRANGE: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:405: Selection index out of range: 6:6 outside 4:0\n                                                                                                            : ... In instance jtframe_board\n        6: extend8b = { a, a[6]      };\n                            ^\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:405: Operator ASSIGN expects 8 bits on the Assign RHS, but Assign RHS\'s REPLICATE generates 6 bits.\n                                                                                                         : ... In instance jtframe_board\n        6: extend8b = { a, a[6]      };\n                    ^\n%Warning-WIDTH: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:406: Operator ASSIGN expects 8 bits on the Assign RHS, but Assign RHS\'s VARREF \'a\' generates 5 bits.\n                                                                                                         : ... In instance jtframe_board\n        7: extend8b = a;\n                    ^\n%Error: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:407: Extracting 8 bits from only 5 bit number\n                                                                                                 : ... In instance jtframe_board\n        8: extend8b = a[8:1];\n                       ^\n%Warning-SELRANGE: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:407: Selection index out of range: 8:1 outside 4:0\n                                                                                                            : ... In instance jtframe_board\n        8: extend8b = a[8:1];\n                       ^\n%Error: data/full_repos/permissive/517390617/modules/jtframe/target/zxdos/jtgng_zxdos_board.v:455: Cannot find file containing module: \'jtframe_scan2x\'\n            jtframe_scan2x #(.DW(COLORW*3), .HLEN(9\'d384)) u_scan2x(\n            ^~~~~~~~~~~~~~\n%Error: Exiting due to 5 error(s), 19 warning(s)\n'
function [7:0] extend8;
    input [COLORW-1:0] a;
    case( COLORW )
        3: extend8 = { a, a, a[2:1] };
        4: extend8 = { a, a         };
        5: extend8 = { a, a[4:2]    };
        6: extend8 = { a, a[5:4]    };
        7: extend8 = { a, a[6]      };
        8: extend8 = a;
    endcase
endfunction
function [7:0] extend8;

    input [COLORW-1:0] a;
    case( COLORW )
        3: extend8 = { a, a, a[2:1] };
        4: extend8 = { a, a         };
        5: extend8 = { a, a[4:2]    };
        6: extend8 = { a, a[5:4]    };
        7: extend8 = { a, a[6]      };
        8: extend8 = a;
    endcase
endfunction