data/full_repos/permissive/495988601/block_display.sv
1: b'%Warning-MULTITOP: data/full_repos/permissive/495988601/block_display.sv:203: Multiple top level modules\n                                                                            : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                            : ... Top module \'block_state\'\nmodule  block_state   ( input            Clk,                   \n        ^~~~~~~~~~~\n                                                                            : ... Top module \'block_display\'\nmodule block_display ( input            Clk,                 \n       ^~~~~~~~~~~~~\n                                                                            : ... Top module \'rank\'\nmodule rank(input              Clk,          \n       ^~~~\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:337: Operator ASSIGNDLY expects 3 bits on the Assign RHS, but Assign RHS\'s CONST \'2\'h1\' generates 2 bits.\n                                                                         : ... In instance block_display\n    block1 <= 2\'b001;\n           ^~\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:445: Operator AND expects 200 bits on the LHS, but LHS\'s SEL generates 10 bits.\n                                                                         : ... In instance block_display\n   if((current_block_in & current_base)|(current_block[19] & {10\'b1111111111}))\n                                                           ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:445: Operator AND expects 200 bits on the RHS, but RHS\'s REPLICATE generates 10 bits.\n                                                                         : ... In instance block_display\n   if((current_block_in & current_base)|(current_block[19] & {10\'b1111111111}))\n                                                           ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:445: Logical Operator IF expects 1 bit on the If, but If\'s OR generates 200 bits.\n                                                                         : ... In instance block_display\n   if((current_block_in & current_base)|(current_block[19] & {10\'b1111111111}))\n   ^~\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:466: Operator OR expects 200 bits on the RHS, but RHS\'s EQ generates 1 bits.\n                                                                         : ... In instance block_display\n   if((current_block_in & current_base)|(blockX == 0)|(blockX == 9)|(blockY == 19))\n                                       ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:466: Operator OR expects 200 bits on the RHS, but RHS\'s EQ generates 1 bits.\n                                                                         : ... In instance block_display\n   if((current_block_in & current_base)|(blockX == 0)|(blockX == 9)|(blockY == 19))\n                                                     ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:466: Operator OR expects 200 bits on the RHS, but RHS\'s EQ generates 1 bits.\n                                                                         : ... In instance block_display\n   if((current_block_in & current_base)|(blockX == 0)|(blockX == 9)|(blockY == 19))\n                                                                   ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:466: Logical Operator IF expects 1 bit on the If, but If\'s OR generates 200 bits.\n                                                                         : ... In instance block_display\n   if((current_block_in & current_base)|(blockX == 0)|(blockX == 9)|(blockY == 19))\n   ^~\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:480: Operator OR expects 200 bits on the RHS, but RHS\'s EQ generates 1 bits.\n                                                                         : ... In instance block_display\n  if((current_block_in & current_base)|(blockX == 1)|(blockX == 9)|(blockY == 19)|(blockX == 0))\n                                      ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:480: Operator OR expects 200 bits on the RHS, but RHS\'s EQ generates 1 bits.\n                                                                         : ... In instance block_display\n  if((current_block_in & current_base)|(blockX == 1)|(blockX == 9)|(blockY == 19)|(blockX == 0))\n                                                    ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:480: Operator OR expects 200 bits on the RHS, but RHS\'s EQ generates 1 bits.\n                                                                         : ... In instance block_display\n  if((current_block_in & current_base)|(blockX == 1)|(blockX == 9)|(blockY == 19)|(blockX == 0))\n                                                                  ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:480: Operator OR expects 200 bits on the RHS, but RHS\'s EQ generates 1 bits.\n                                                                         : ... In instance block_display\n  if((current_block_in & current_base)|(blockX == 1)|(blockX == 9)|(blockY == 19)|(blockX == 0))\n                                                                                 ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:480: Logical Operator IF expects 1 bit on the If, but If\'s OR generates 200 bits.\n                                                                         : ... In instance block_display\n  if((current_block_in & current_base)|(blockX == 1)|(blockX == 9)|(blockY == 19)|(blockX == 0))\n  ^~\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:490: Logical Operator IF expects 1 bit on the If, but If\'s OR generates 200 bits.\n                                                                         : ... In instance block_display\n   if((current_block_in & current_base)|(current_block & {20{10\'b1000000000}}))\n   ^~\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:500: Logical Operator IF expects 1 bit on the If, but If\'s OR generates 200 bits.\n                                                                         : ... In instance block_display\n   if((current_block_in  & current_base)|(current_block & {20{10\'b0000000001}}))\n   ^~\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:593: Operator ADD expects 11 bits on the RHS, but RHS\'s SEL generates 1 bits.\n                                                                         : ... In instance block_display\n    score_h = score + score_count[0] + score_count[1] + score_count[2]+ score_count[3]+ score_count[4]+ score_count[5]+ score_count[6]\n                    ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:593: Operator ADD expects 11 bits on the RHS, but RHS\'s SEL generates 1 bits.\n                                                                         : ... In instance block_display\n    score_h = score + score_count[0] + score_count[1] + score_count[2]+ score_count[3]+ score_count[4]+ score_count[5]+ score_count[6]\n                                     ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:593: Operator ADD expects 11 bits on the RHS, but RHS\'s SEL generates 1 bits.\n                                                                         : ... In instance block_display\n    score_h = score + score_count[0] + score_count[1] + score_count[2]+ score_count[3]+ score_count[4]+ score_count[5]+ score_count[6]\n                                                      ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:593: Operator ADD expects 11 bits on the RHS, but RHS\'s SEL generates 1 bits.\n                                                                         : ... In instance block_display\n    score_h = score + score_count[0] + score_count[1] + score_count[2]+ score_count[3]+ score_count[4]+ score_count[5]+ score_count[6]\n                                                                      ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:593: Operator ADD expects 11 bits on the RHS, but RHS\'s SEL generates 1 bits.\n                                                                         : ... In instance block_display\n    score_h = score + score_count[0] + score_count[1] + score_count[2]+ score_count[3]+ score_count[4]+ score_count[5]+ score_count[6]\n                                                                                      ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:593: Operator ADD expects 11 bits on the RHS, but RHS\'s SEL generates 1 bits.\n                                                                         : ... In instance block_display\n    score_h = score + score_count[0] + score_count[1] + score_count[2]+ score_count[3]+ score_count[4]+ score_count[5]+ score_count[6]\n                                                                                                      ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:593: Operator ADD expects 11 bits on the RHS, but RHS\'s SEL generates 1 bits.\n                                                                         : ... In instance block_display\n    score_h = score + score_count[0] + score_count[1] + score_count[2]+ score_count[3]+ score_count[4]+ score_count[5]+ score_count[6]\n                                                                                                                      ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:594: Operator ADD expects 11 bits on the RHS, but RHS\'s SEL generates 1 bits.\n                                                                         : ... In instance block_display\n    + score_count[7]+ score_count[8]+ score_count[9]+ score_count[10]+ score_count[11]+ score_count[12]+ score_count[13]+ score_count[14]\n    ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:594: Operator ADD expects 11 bits on the RHS, but RHS\'s SEL generates 1 bits.\n                                                                         : ... In instance block_display\n    + score_count[7]+ score_count[8]+ score_count[9]+ score_count[10]+ score_count[11]+ score_count[12]+ score_count[13]+ score_count[14]\n                    ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:594: Operator ADD expects 11 bits on the RHS, but RHS\'s SEL generates 1 bits.\n                                                                         : ... In instance block_display\n    + score_count[7]+ score_count[8]+ score_count[9]+ score_count[10]+ score_count[11]+ score_count[12]+ score_count[13]+ score_count[14]\n                                    ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:594: Operator ADD expects 11 bits on the RHS, but RHS\'s SEL generates 1 bits.\n                                                                         : ... In instance block_display\n    + score_count[7]+ score_count[8]+ score_count[9]+ score_count[10]+ score_count[11]+ score_count[12]+ score_count[13]+ score_count[14]\n                                                    ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:594: Operator ADD expects 11 bits on the RHS, but RHS\'s SEL generates 1 bits.\n                                                                         : ... In instance block_display\n    + score_count[7]+ score_count[8]+ score_count[9]+ score_count[10]+ score_count[11]+ score_count[12]+ score_count[13]+ score_count[14]\n                                                                     ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:594: Operator ADD expects 11 bits on the RHS, but RHS\'s SEL generates 1 bits.\n                                                                         : ... In instance block_display\n    + score_count[7]+ score_count[8]+ score_count[9]+ score_count[10]+ score_count[11]+ score_count[12]+ score_count[13]+ score_count[14]\n                                                                                      ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:594: Operator ADD expects 11 bits on the RHS, but RHS\'s SEL generates 1 bits.\n                                                                         : ... In instance block_display\n    + score_count[7]+ score_count[8]+ score_count[9]+ score_count[10]+ score_count[11]+ score_count[12]+ score_count[13]+ score_count[14]\n                                                                                                       ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:594: Operator ADD expects 11 bits on the RHS, but RHS\'s SEL generates 1 bits.\n                                                                         : ... In instance block_display\n    + score_count[7]+ score_count[8]+ score_count[9]+ score_count[10]+ score_count[11]+ score_count[12]+ score_count[13]+ score_count[14]\n                                                                                                                        ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:595: Operator ADD expects 11 bits on the RHS, but RHS\'s SEL generates 1 bits.\n                                                                         : ... In instance block_display\n    + score_count[15]+ score_count[16];\n    ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:595: Operator ADD expects 11 bits on the RHS, but RHS\'s SEL generates 1 bits.\n                                                                         : ... In instance block_display\n    + score_count[15]+ score_count[16];\n                     ^\n%Warning-WIDTH: data/full_repos/permissive/495988601/block_display.sv:597: Logical Operator IF expects 1 bit on the If, but If\'s AND generates 200 bits.\n                                                                         : ... In instance block_display\n    if(current_base_in & {160\'b0,10\'b1111111111,30\'b0})\n    ^~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:131: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'new_block\'\n                                                                             : ... In instance block_state\n  new_block = 1\'b0;\n  ^~~~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:132: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'go_down\'\n                                                                             : ... In instance block_state\n  go_down = 1\'b0;\n  ^~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:133: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'go_right\'\n                                                                             : ... In instance block_state\n  go_right=1\'b0;\n  ^~~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:134: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'go_left\'\n                                                                             : ... In instance block_state\n  go_left = 1\'b0;\n  ^~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:135: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'switch\'\n                                                                             : ... In instance block_state\n  switch = 1\'b0;\n  ^~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:136: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'clear\'\n                                                                             : ... In instance block_state\n  clear = 1\'b0;\n  ^~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:137: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'clearall\'\n                                                                             : ... In instance block_state\n  clearall = 1\'b0;\n  ^~~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:138: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'fast_down\'\n                                                                             : ... In instance block_state\n   fast_down = 1\'b0;\n   ^~~~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:145: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'new_block\'\n                                                                             : ... In instance block_state\n    new_block = 1\'b1;\n    ^~~~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:149: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'new_block\'\n                                                                             : ... In instance block_state\n    new_block = 1\'b0;\n    ^~~~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:150: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'go_down\'\n                                                                             : ... In instance block_state\n    go_down = 1\'b1;\n    ^~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:154: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'go_down\'\n                                                                             : ... In instance block_state\n    go_down = 1\'b0;\n    ^~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:155: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'switch\'\n                                                                             : ... In instance block_state\n    switch = 1\'b1;\n    ^~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:159: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'go_down\'\n                                                                             : ... In instance block_state\n    go_down = 1\'b1;\n    ^~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:160: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'switch\'\n                                                                             : ... In instance block_state\n    switch = 1\'b0;\n    ^~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:164: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'go_down\'\n                                                                             : ... In instance block_state\n    go_down = 1\'b1;\n    ^~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:165: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'fast_down\'\n                                                                             : ... In instance block_state\n    fast_down = 1\'b1;\n    ^~~~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:169: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'go_down\'\n                                                                             : ... In instance block_state\n    go_down = 1\'b0;\n    ^~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:170: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'go_right\'\n                                                                             : ... In instance block_state\n    go_right = 1\'b1;\n    ^~~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:174: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'go_right\'\n                                                                             : ... In instance block_state\n    go_right = 1\'b0;\n    ^~~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:175: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'go_down\'\n                                                                             : ... In instance block_state\n    go_down = 1\'b1;\n    ^~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:179: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'go_left\'\n                                                                             : ... In instance block_state\n    go_left = 1\'b1;\n    ^~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:180: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'go_down\'\n                                                                             : ... In instance block_state\n    go_down = 1\'b0;\n    ^~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:184: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'go_left\'\n                                                                             : ... In instance block_state\n    go_left = 1\'b0;\n    ^~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:185: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'go_down\'\n                                                                             : ... In instance block_state\n    go_down = 1\'b1;\n    ^~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:189: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'go_down\'\n                                                                             : ... In instance block_state\n    go_down = 1\'b0;\n    ^~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:190: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'clear\'\n                                                                             : ... In instance block_state\n    clear = 1\'b1;\n    ^~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:194: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'clearall\'\n                                                                             : ... In instance block_state\n    clearall = 1\'b1;\n    ^~~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:235: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'block_keep\'\n                                                                             : ... In instance block_display\n    block_keep = { 4\'b0000,\n    ^~~~~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:240: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'block_keep\'\n                                                                             : ... In instance block_display\n    block_keep = { 4\'b0100,\n    ^~~~~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:245: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'block_keep\'\n                                                                             : ... In instance block_display\n    block_keep = { 4\'b0000,\n    ^~~~~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:250: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'block_keep\'\n                                                                             : ... In instance block_display\n    block_keep = { 4\'b0010,\n    ^~~~~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:255: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'block_keep\'\n                                                                             : ... In instance block_display\n    block_keep = { 4\'b0100,\n    ^~~~~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:260: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'block_keep\'\n                                                                             : ... In instance block_display\n    block_keep = { 4\'b0100,\n    ^~~~~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:265: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'block_keep\'\n                                                                             : ... In instance block_display\n    block_keep = { 4\'b0100,\n    ^~~~~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:270: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'block_keep\'\n                                                                             : ... In instance block_display\n    block_keep = { 4\'b0000,\n    ^~~~~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:339: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'score\'\n                                                                             : ... In instance block_display\n    score <= 11\'b0;\n    ^~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:350: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'score\'\n                                                                             : ... In instance block_display\n    score <= score_h;\n    ^~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:367: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'touched\'\n                                                                             : ... In instance block_display\n touched = 1\'b0;\n ^~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:368: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'gg\'\n                                                                             : ... In instance block_display\n gg = 1\'b0;\n ^~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:369: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'go_next\'\n                                                                             : ... In instance block_display\n go_next = 1\'b0;\n ^~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:370: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'record\'\n                                                                             : ... In instance block_display\n record = 0;\n ^~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:447: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'touched\'\n                                                                             : ... In instance block_display\n    touched = 1\'b1;\n    ^~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:598: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'gg\'\n                                                                             : ... In instance block_display\n     gg = 1\'b1;\n     ^~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:600: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'go_next\'\n                                                                             : ... In instance block_display\n     go_next = 1\'b1;\n     ^~~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:605: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'record\'\n                                                                             : ... In instance block_display\n   record = 1;\n   ^~~~~~\n%Error-PROCASSWIRE: data/full_repos/permissive/495988601/block_display.sv:615: Procedural assignment to wire, perhaps intended var (IEEE 1800-2017 6.5): \'block_map\'\n                                                                             : ... In instance block_display\n block_map = current_base | current_block;\n ^~~~~~~~~\n%Error: Exiting due to 47 error(s), 34 warning(s)\n'
module block_display (	input          		Clk,
								
															Reset,
								input 					new_block,
															go_down,
															fast_down,
															go_right,
															go_left,
															switch,
															clear, 
															clearall,
								input [2:0]				randnum_b,
								output					gg,
															go_next,
															touched,
															record,
								output [3:0][3:0]		block_keep,
								output [19:0][9:0]   block_map,
								output [10:0]        score
);

reg [25:0] count_reg = 0;
reg clk1 = 0;
logic [25:0] count;
logic [2:0] block1,block1_h; 
logic [10:0] score_h;
logic [16:0] score_count;

always_comb 
begin
case (block1)
			3'b000 :	
				block_keep = { 4'b0000,
									4'b0110,
									4'b0110,
									4'b0000};
			3'b001 :
				block_keep = { 4'b0100,
									4'b0100,
									4'b0110,
									4'b0000};
			3'b010 :
				block_keep = { 4'b0000,
									4'b0110,
									4'b0010,
									4'b0010};
			3'b011 :
				block_keep = { 4'b0010,
									4'b0110,
									4'b0100,
									4'b0000};
			3'b100 :
				block_keep = { 4'b0100,
									4'b0110,
									4'b0010,
									4'b0000};
			3'b101 :
				block_keep = { 4'b0100,
									4'b0110,
									4'b0100,
									4'b0000};
			3'b110 :
				block_keep = { 4'b0100,
									4'b0100,
									4'b0100,
									4'b0100};
			default : 
				block_keep = { 4'b0000,
									4'b0110,
									4'b0110,
									4'b0000};
		endcase
end

always_comb 
begin
if(fast_down)
	count = 2999999;
else if(score[5])
	count = 4999999;
else if(score[4])
	count = 9999999;
else if(score[3])
	count = 19999999;
else if(score[2])
	count = 39999999;
else
	count = 49999999;
end

enum logic [2:0] { S_block,
						 L_block,
						 TL_block,
						 F_block,
						 TF_block,
						 T_block,
						 I_block
								}   block_type,block_type_in;

always @(posedge Clk or posedge Reset) begin
    if (Reset) begin
        count_reg <= 0;
        clk1 <= 0;
    end else begin
        clk1 <= 0;
        if (count_reg < count) begin
            count_reg <= count_reg + 1;
        end else begin
            count_reg <= 0;
            clk1 <= 1;
		  end
        end
end

logic clk1_delayed, clk1_rising_edge;
    always_ff @ (posedge Clk) begin
        clk1_delayed <= clk1;
        clk1_rising_edge <= (clk1 == 1'b1) && (clk1_delayed == 1'b0);
    end

logic [19:0][9:0] current_block;
logic [19:0][9:0] current_base;
logic [19:0][9:0] current_block_in;
logic [19:0][9:0] current_base_in;
int blockX,blockY,blockX_in,blockY_in;

always_ff @ (posedge Clk)
    begin
        if (Reset)
		  begin
				current_block <= {200'b0};
				current_base <= {200'b0};
				blockX <= 0;
				blockY <= 0;
				block1 <= 2'b001;
				block_type <= S_block;
				score <= 11'b0;
				score_count <= 0;
				
		  end
        else
		  begin
				current_base <= current_base_in;
				current_block <= current_block_in;
				blockX <= blockX_in;
				blockY <= blockY_in;
				block1 <= block1_h;
				score <= score_h;
				block_type <= block_type_in;
				
		  end
    end


	 
always_comb
	begin
	current_base_in = current_base;
	current_block_in = current_block;
	blockX_in = blockX;
	blockY_in = blockY;
	block1_h = block1;
	score_h = score;
	block_type_in = block_type;
	touched = 1'b0;
	gg = 1'b0;
	go_next = 1'b0;
	record = 0;
	score_count = 0;
	
		if(new_block)
		begin  
			case (block1)
			3'b000 :	
			begin
				current_block_in = {180'b0,10'b0000110000,
													10'b0000110000};
				block_type_in = S_block;
			end
			3'b001 :
			begin
				current_block_in = {170'b0,10'b0000100000,
													10'b0000100000,
													10'b0000110000};
				block_type_in = L_block;
			end
			3'b010 :
			begin
				current_block_in = {170'b0,10'b0001100000,
													10'b0000100000,
													10'b0000100000};
				block_type_in = TL_block;
			end
			3'b011 :
			begin
				current_block_in = {170'b0,10'b0000100000,
													10'b0001100000,
													10'b0001000000};
				block_type_in = F_block;
			end
			3'b100 :
			begin
				current_block_in = {170'b0,10'b0000100000,
													10'b0000110000,
													10'b0000010000};
				block_type_in = TF_block;
			end
			3'b101 :
			begin
				current_block_in = {170'b0,10'b0000100000,
													10'b0000110000,
													10'b0000100000};
				block_type_in = T_block;
			end
			3'b110 :
			begin
				current_block_in = {160'b0,10'b0000100000,
													10'b0000100000,
													10'b0000100000,
													10'b0000100000};
				block_type_in = I_block;
			end
			default : 
			begin
				current_block_in = {180'b0,10'b0000110000,
													10'b0000110000};
				block_type_in = S_block;
			end
		endcase
		begin
			blockX_in = 5;
			blockY_in = 1;
			block1_h = randnum_b;
		end
		end
		else if (go_down)
		begin
			if(clk1_rising_edge)
			begin
				current_block_in = current_block<<10;
				blockY_in = blockY + 1;
			end
			if((current_block_in & current_base)|(current_block[19] & {10'b1111111111}))
			begin
				touched = 1'b1;
				current_block_in = {200'b0};
				current_base_in = current_base | current_block;
			end
		end
		else if (switch)
		begin
		
		if((block_type == L_block) | (block_type == TL_block) | (block_type == F_block) | (block_type == TF_block) | (block_type == T_block) )
		begin
			current_block_in[(blockY + 1)][blockX] = current_block[blockY ][ blockX + 1];
			current_block_in[blockY][blockX - 1  ] = current_block[(blockY + 1)][blockX];
			current_block_in[(blockY - 1)][blockX] = current_block[blockY ][ blockX - 1];
			current_block_in[blockY][blockX + 1  ] = current_block[(blockY - 1)][blockX];
			
			current_block_in[(blockY + 1)][ blockX + 1] = current_block[(blockY - 1)][blockX + 1];
			current_block_in[(blockY - 1)][ blockX + 1] = current_block[(blockY - 1)][blockX - 1];
			current_block_in[(blockY - 1)][ blockX - 1] = current_block[(blockY + 1)][blockX - 1];
			current_block_in[(blockY + 1)][ blockX - 1] = current_block[(blockY + 1)][blockX + 1];
			if((current_block_in & current_base)|(blockX == 0)|(blockX == 9)|(blockY == 19))
			begin
				current_block_in = current_block;
			end
		end
		else if (block_type == I_block)
		begin
			current_block_in[blockY-1][blockX] = current_block[blockY][blockX+1];
			current_block_in[blockY+1][blockX] = current_block[blockY][blockX-1];
			current_block_in[blockY+2][blockX] = current_block[blockY][blockX-2];
			current_block_in[blockY][blockX+1] = current_block[blockY-1][blockX];
			current_block_in[blockY][blockX-1] = current_block[blockY+1][blockX];
			current_block_in[blockY][blockX-2] = current_block[blockY+2][blockX];
		
		if((current_block_in & current_base)|(blockX == 1)|(blockX == 9)|(blockY == 19)|(blockX == 0))
			begin
				current_block_in = current_block;
			end
		end
		end
		else if (go_right)
		begin
				current_block_in = current_block<<1;
				blockX_in = blockX + 1;
			if((current_block_in & current_base)|(current_block & {20{10'b1000000000}}))
			begin
				current_block_in = current_block;
				blockX_in = blockX;
			end
		end
		else if (go_left)
		begin
				current_block_in = current_block>>1;
				blockX_in = blockX - 1;
			if((current_block_in  & current_base)|(current_block & {20{10'b0000000001}}))
			begin
				current_block_in = current_block;
				blockX_in = blockX;
			end
		end
		else if(clear)
			begin
				if((current_base[3] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[3:0] = current_base_in[3:0] <<10;
					score_count[0] = 1;
				end
				if((current_base[4] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[4:0] = current_base_in[4:0] <<10;
					score_count[1] = 1;
				end
				if((current_base[5] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[5:0] = current_base_in[5:0] <<10;
					score_count[2] = 1;
				end
				if((current_base[6] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[6:0] = current_base_in[6:0] <<10;
					score_count[3] = 1;
				end
				if((current_base[7] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[7:0] = current_base_in[7:0] <<10;
					score_count[4] = 1;
				end
				if((current_base[8] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[8:0] = current_base_in[8:0] <<10;
					score_count[5] = 1;
				end
				if((current_base[9] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[9:0] = current_base_in[9:0] <<10;
					score_count[6] = 1;
				end
				if((current_base[10] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[10:0] = current_base_in[10:0] <<10;
					score_count[7] = 1;
				end
				if((current_base[11] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[11:0] = current_base_in[11:0] <<10;
					score_count[8] = 1;
				end
				if((current_base[12] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[12:0] = current_base_in[12:0] <<10;
					score_count[9] = 1;
				end
				if((current_base[13] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[13:0] = current_base_in[13:0] <<10;
					score_count[10] = 1;
				end
				if((current_base[14] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[14:0] = current_base_in[14:0] <<10;
					score_count[11] = 1;
				end
				if((current_base[15] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[15:0] = current_base_in[15:0] <<10;
					score_count[12] = 1;
				end
				if((current_base[16] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[16:0] = current_base_in[16:0] <<10;
					score_count[13] = 1;
				end
				if((current_base[17] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[17:0] = current_base_in[17:0] <<10;
					score_count[14] = 1;
				end
				if((current_base[18] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[18:0] = current_base_in[18:0] <<10;
					score_count[15] = 1;
				end
				if((current_base[19] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[19:0] = current_base_in[19:0] <<10;
					score_count[16] = 1;
				end
				score_h = score + score_count[0] + score_count[1] + score_count[2]+ score_count[3]+ score_count[4]+ score_count[5]+ score_count[6]
				+ score_count[7]+ score_count[8]+ score_count[9]+ score_count[10]+ score_count[11]+ score_count[12]+ score_count[13]+ score_count[14]
				+ score_count[15]+ score_count[16];
					
				if(current_base_in & {160'b0,10'b1111111111,30'b0})
					gg = 1'b1;
				else
					go_next = 1'b1;
			end
		else if(clearall)
		begin
			current_base_in = 0;
			record = 1;
			score_h = 0;
		end
			
			
	end

	
always_comb
begin
	block_map = current_base | current_block;
end

	 
endmodule
module block_display (	input          		Clk,
								
															Reset,
								input 					new_block,
															go_down,
															fast_down,
															go_right,
															go_left,
															switch,
															clear, 
															clearall,
								input [2:0]				randnum_b,
								output					gg,
															go_next,
															touched,
															record,
								output [3:0][3:0]		block_keep,
								output [19:0][9:0]   block_map,
								output [10:0]        score
);


reg [25:0] count_reg = 0;
reg clk1 = 0;
logic [25:0] count;
logic [2:0] block1,block1_h; 
logic [10:0] score_h;
logic [16:0] score_count;

always_comb 
begin
case (block1)
			3'b000 :	
				block_keep = { 4'b0000,
									4'b0110,
									4'b0110,
									4'b0000};
			3'b001 :
				block_keep = { 4'b0100,
									4'b0100,
									4'b0110,
									4'b0000};
			3'b010 :
				block_keep = { 4'b0000,
									4'b0110,
									4'b0010,
									4'b0010};
			3'b011 :
				block_keep = { 4'b0010,
									4'b0110,
									4'b0100,
									4'b0000};
			3'b100 :
				block_keep = { 4'b0100,
									4'b0110,
									4'b0010,
									4'b0000};
			3'b101 :
				block_keep = { 4'b0100,
									4'b0110,
									4'b0100,
									4'b0000};
			3'b110 :
				block_keep = { 4'b0100,
									4'b0100,
									4'b0100,
									4'b0100};
			default : 
				block_keep = { 4'b0000,
									4'b0110,
									4'b0110,
									4'b0000};
		endcase
end

always_comb 
begin
if(fast_down)
	count = 2999999;
else if(score[5])
	count = 4999999;
else if(score[4])
	count = 9999999;
else if(score[3])
	count = 19999999;
else if(score[2])
	count = 39999999;
else
	count = 49999999;
end

enum logic [2:0] { S_block,
						 L_block,
						 TL_block,
						 F_block,
						 TF_block,
						 T_block,
						 I_block
								}   block_type,block_type_in;

always @(posedge Clk or posedge Reset) begin
    if (Reset) begin
        count_reg <= 0;
        clk1 <= 0;
    end else begin
        clk1 <= 0;
        if (count_reg < count) begin
            count_reg <= count_reg + 1;
        end else begin
            count_reg <= 0;
            clk1 <= 1;
		  end
        end
end

logic clk1_delayed, clk1_rising_edge;
    always_ff @ (posedge Clk) begin
        clk1_delayed <= clk1;
        clk1_rising_edge <= (clk1 == 1'b1) && (clk1_delayed == 1'b0);
    end

logic [19:0][9:0] current_block;
logic [19:0][9:0] current_base;
logic [19:0][9:0] current_block_in;
logic [19:0][9:0] current_base_in;
int blockX,blockY,blockX_in,blockY_in;

always_ff @ (posedge Clk)
    begin
        if (Reset)
		  begin
				current_block <= {200'b0};
				current_base <= {200'b0};
				blockX <= 0;
				blockY <= 0;
				block1 <= 2'b001;
				block_type <= S_block;
				score <= 11'b0;
				score_count <= 0;
				
		  end
        else
		  begin
				current_base <= current_base_in;
				current_block <= current_block_in;
				blockX <= blockX_in;
				blockY <= blockY_in;
				block1 <= block1_h;
				score <= score_h;
				block_type <= block_type_in;
				
		  end
    end


	 
always_comb
	begin
	current_base_in = current_base;
	current_block_in = current_block;
	blockX_in = blockX;
	blockY_in = blockY;
	block1_h = block1;
	score_h = score;
	block_type_in = block_type;
	touched = 1'b0;
	gg = 1'b0;
	go_next = 1'b0;
	record = 0;
	score_count = 0;
	
		if(new_block)
		begin  
			case (block1)
			3'b000 :	
			begin
				current_block_in = {180'b0,10'b0000110000,
													10'b0000110000};
				block_type_in = S_block;
			end
			3'b001 :
			begin
				current_block_in = {170'b0,10'b0000100000,
													10'b0000100000,
													10'b0000110000};
				block_type_in = L_block;
			end
			3'b010 :
			begin
				current_block_in = {170'b0,10'b0001100000,
													10'b0000100000,
													10'b0000100000};
				block_type_in = TL_block;
			end
			3'b011 :
			begin
				current_block_in = {170'b0,10'b0000100000,
													10'b0001100000,
													10'b0001000000};
				block_type_in = F_block;
			end
			3'b100 :
			begin
				current_block_in = {170'b0,10'b0000100000,
													10'b0000110000,
													10'b0000010000};
				block_type_in = TF_block;
			end
			3'b101 :
			begin
				current_block_in = {170'b0,10'b0000100000,
													10'b0000110000,
													10'b0000100000};
				block_type_in = T_block;
			end
			3'b110 :
			begin
				current_block_in = {160'b0,10'b0000100000,
													10'b0000100000,
													10'b0000100000,
													10'b0000100000};
				block_type_in = I_block;
			end
			default : 
			begin
				current_block_in = {180'b0,10'b0000110000,
													10'b0000110000};
				block_type_in = S_block;
			end
		endcase
		begin
			blockX_in = 5;
			blockY_in = 1;
			block1_h = randnum_b;
		end
		end
		else if (go_down)
		begin
			if(clk1_rising_edge)
			begin
				current_block_in = current_block<<10;
				blockY_in = blockY + 1;
			end
			if((current_block_in & current_base)|(current_block[19] & {10'b1111111111}))
			begin
				touched = 1'b1;
				current_block_in = {200'b0};
				current_base_in = current_base | current_block;
			end
		end
		else if (switch)
		begin
		
		if((block_type == L_block) | (block_type == TL_block) | (block_type == F_block) | (block_type == TF_block) | (block_type == T_block) )
		begin
			current_block_in[(blockY + 1)][blockX] = current_block[blockY ][ blockX + 1];
			current_block_in[blockY][blockX - 1  ] = current_block[(blockY + 1)][blockX];
			current_block_in[(blockY - 1)][blockX] = current_block[blockY ][ blockX - 1];
			current_block_in[blockY][blockX + 1  ] = current_block[(blockY - 1)][blockX];
			
			current_block_in[(blockY + 1)][ blockX + 1] = current_block[(blockY - 1)][blockX + 1];
			current_block_in[(blockY - 1)][ blockX + 1] = current_block[(blockY - 1)][blockX - 1];
			current_block_in[(blockY - 1)][ blockX - 1] = current_block[(blockY + 1)][blockX - 1];
			current_block_in[(blockY + 1)][ blockX - 1] = current_block[(blockY + 1)][blockX + 1];
			if((current_block_in & current_base)|(blockX == 0)|(blockX == 9)|(blockY == 19))
			begin
				current_block_in = current_block;
			end
		end
		else if (block_type == I_block)
		begin
			current_block_in[blockY-1][blockX] = current_block[blockY][blockX+1];
			current_block_in[blockY+1][blockX] = current_block[blockY][blockX-1];
			current_block_in[blockY+2][blockX] = current_block[blockY][blockX-2];
			current_block_in[blockY][blockX+1] = current_block[blockY-1][blockX];
			current_block_in[blockY][blockX-1] = current_block[blockY+1][blockX];
			current_block_in[blockY][blockX-2] = current_block[blockY+2][blockX];
		
		if((current_block_in & current_base)|(blockX == 1)|(blockX == 9)|(blockY == 19)|(blockX == 0))
			begin
				current_block_in = current_block;
			end
		end
		end
		else if (go_right)
		begin
				current_block_in = current_block<<1;
				blockX_in = blockX + 1;
			if((current_block_in & current_base)|(current_block & {20{10'b1000000000}}))
			begin
				current_block_in = current_block;
				blockX_in = blockX;
			end
		end
		else if (go_left)
		begin
				current_block_in = current_block>>1;
				blockX_in = blockX - 1;
			if((current_block_in  & current_base)|(current_block & {20{10'b0000000001}}))
			begin
				current_block_in = current_block;
				blockX_in = blockX;
			end
		end
		else if(clear)
			begin
				if((current_base[3] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[3:0] = current_base_in[3:0] <<10;
					score_count[0] = 1;
				end
				if((current_base[4] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[4:0] = current_base_in[4:0] <<10;
					score_count[1] = 1;
				end
				if((current_base[5] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[5:0] = current_base_in[5:0] <<10;
					score_count[2] = 1;
				end
				if((current_base[6] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[6:0] = current_base_in[6:0] <<10;
					score_count[3] = 1;
				end
				if((current_base[7] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[7:0] = current_base_in[7:0] <<10;
					score_count[4] = 1;
				end
				if((current_base[8] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[8:0] = current_base_in[8:0] <<10;
					score_count[5] = 1;
				end
				if((current_base[9] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[9:0] = current_base_in[9:0] <<10;
					score_count[6] = 1;
				end
				if((current_base[10] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[10:0] = current_base_in[10:0] <<10;
					score_count[7] = 1;
				end
				if((current_base[11] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[11:0] = current_base_in[11:0] <<10;
					score_count[8] = 1;
				end
				if((current_base[12] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[12:0] = current_base_in[12:0] <<10;
					score_count[9] = 1;
				end
				if((current_base[13] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[13:0] = current_base_in[13:0] <<10;
					score_count[10] = 1;
				end
				if((current_base[14] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[14:0] = current_base_in[14:0] <<10;
					score_count[11] = 1;
				end
				if((current_base[15] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[15:0] = current_base_in[15:0] <<10;
					score_count[12] = 1;
				end
				if((current_base[16] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[16:0] = current_base_in[16:0] <<10;
					score_count[13] = 1;
				end
				if((current_base[17] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[17:0] = current_base_in[17:0] <<10;
					score_count[14] = 1;
				end
				if((current_base[18] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[18:0] = current_base_in[18:0] <<10;
					score_count[15] = 1;
				end
				if((current_base[19] & {10'b1111111111} )== {10'b1111111111})
				begin
					current_base_in[19:0] = current_base_in[19:0] <<10;
					score_count[16] = 1;
				end
				score_h = score + score_count[0] + score_count[1] + score_count[2]+ score_count[3]+ score_count[4]+ score_count[5]+ score_count[6]
				+ score_count[7]+ score_count[8]+ score_count[9]+ score_count[10]+ score_count[11]+ score_count[12]+ score_count[13]+ score_count[14]
				+ score_count[15]+ score_count[16];
					
				if(current_base_in & {160'b0,10'b1111111111,30'b0})
					gg = 1'b1;
				else
					go_next = 1'b1;
			end
		else if(clearall)
		begin
			current_base_in = 0;
			record = 1;
			score_h = 0;
		end
			
			
	end

	
always_comb
begin
	block_map = current_base | current_block;
end

	 
endmodule