设为首页收藏本站帮助中心
查看: 64|回复: 0
收起左侧

Quartus Verilog HDL/FPGA 实现查表法查询并计算二十四节气 已知年月日求24节气的模块

[复制链接]
发表于 2023-12-21 18:50:23 | 显示全部楼层 |阅读模式
main.png
  1. module solar_terms(                //年月日查询二十四节气模块 年范围:2000~2079年
  2.         input [6:0] year,                //[7位宽] 年 范围:0~79 24表示2024年
  3.         input [3:0] month,        //[4位宽] 月 范围:1~12
  4.         input [4:0] day,                //[5位宽] 日 范围:1~31
  5.         output err,                        //年是否超查询范围 (0成功,1失败)
  6.         output [4:0] out        //[5位宽] 返回24节气序号
  7.         /*
  8.         0:查询失败或不是节气
  9.         1:立春                2:雨水                3:惊蛰                4:春分                5:清明                6:谷雨
  10.         7:立夏                8:小满                9:芒种                10:夏至        11:小暑        12:大暑
  11.         13:立秋        14:处暑        15:白露        16:秋分        17:寒露        18:霜降
  12.         19:立冬        20:小雪        21:大雪        22:冬至        23:小寒        24:大寒
  13.         */
  14. );
  15. assign err = (year > 7'd79) ? 1'b1 : 1'b0;
  16. reg [4:0] j;
  17. assign out = j;
  18. always @(*) begin
  19. case({year,month,day})                        //节气数据 严禁修改 数据来自易语言的《农历日期支持库
  20. 16'd68:j=5'd1;16'd83:j=5'd2;16'd101:j=5'd3;16'd116:j=5'd4;16'd132:j=5'd5;16'd148:j=5'd6;
  21. 16'd165:j=5'd7;16'd181:j=5'd8;16'd197:j=5'd9;16'd213:j=5'd10;16'd231:j=5'd11;16'd246:j=5'd12;
  22. 16'd263:j=5'd13;16'd279:j=5'd14;16'd295:j=5'd15;16'd311:j=5'd16;16'd328:j=5'd17;16'd343:j=5'd18;
  23. 16'd359:j=5'd19;16'd374:j=5'd20;16'd391:j=5'd21;16'd405:j=5'd22;16'd38:j=5'd23;16'd53:j=5'd24;
  24. 16'd580:j=5'd1;16'd594:j=5'd2;16'd613:j=5'd3;16'd628:j=5'd4;16'd645:j=5'd5;16'd660:j=5'd6;
  25. 16'd677:j=5'd7;16'd693:j=5'd8;16'd709:j=5'd9;16'd725:j=5'd10;16'd743:j=5'd11;16'd759:j=5'd12;
  26. 16'd775:j=5'd13;16'd791:j=5'd14;16'd807:j=5'd15;16'd823:j=5'd16;16'd840:j=5'd17;16'd855:j=5'd18;
  27. 16'd871:j=5'd19;16'd886:j=5'd20;16'd903:j=5'd21;16'd918:j=5'd22;16'd549:j=5'd23;16'd564:j=5'd24;
  28. 16'd1092:j=5'd1;16'd1107:j=5'd2;16'd1126:j=5'd3;16'd1141:j=5'd4;16'd1157:j=5'd5;16'd1172:j=5'd6;
  29. 16'd1190:j=5'd7;16'd1205:j=5'd8;16'd1222:j=5'd9;16'd1237:j=5'd10;16'd1255:j=5'd11;16'd1271:j=5'd12;
  30. 16'd1288:j=5'd13;16'd1303:j=5'd14;16'd1320:j=5'd15;16'd1335:j=5'd16;16'd1352:j=5'd17;16'd1367:j=5'd18;
  31. 16'd1383:j=5'd19;16'd1398:j=5'd20;16'd1415:j=5'd21;16'd1430:j=5'd22;16'd1061:j=5'd23;16'd1076:j=5'd24;
  32. 16'd1604:j=5'd1;16'd1619:j=5'd2;16'd1638:j=5'd3;16'd1653:j=5'd4;16'd1669:j=5'd5;16'd1684:j=5'd6;
  33. 16'd1702:j=5'd7;16'd1717:j=5'd8;16'd1734:j=5'd9;16'd1750:j=5'd10;16'd1767:j=5'd11;16'd1783:j=5'd12;
  34. 16'd1800:j=5'd13;16'd1815:j=5'd14;16'd1832:j=5'd15;16'd1847:j=5'd16;16'd1865:j=5'd17;16'd1880:j=5'd18;
  35. 16'd1896:j=5'd19;16'd1911:j=5'd20;16'd1927:j=5'd21;16'd1942:j=5'd22;16'd1574:j=5'd23;16'd1588:j=5'd24;
  36. 16'd2116:j=5'd1;16'd2131:j=5'd2;16'd2149:j=5'd3;16'd2164:j=5'd4;16'd2180:j=5'd5;16'd2196:j=5'd6;
  37. 16'd2213:j=5'd7;16'd2229:j=5'd8;16'd2245:j=5'd9;16'd2261:j=5'd10;16'd2279:j=5'd11;16'd2294:j=5'd12;
  38. 16'd2311:j=5'd13;16'd2327:j=5'd14;16'd2343:j=5'd15;16'd2359:j=5'd16;16'd2376:j=5'd17;16'd2391:j=5'd18;
  39. 16'd2407:j=5'd19;16'd2422:j=5'd20;16'd2439:j=5'd21;16'd2453:j=5'd22;16'd2086:j=5'd23;16'd2101:j=5'd24;
  40. 16'd2628:j=5'd1;16'd2642:j=5'd2;16'd2661:j=5'd3;16'd2676:j=5'd4;16'd2693:j=5'd5;16'd2708:j=5'd6;
  41. 16'd2725:j=5'd7;16'd2741:j=5'd8;16'd2757:j=5'd9;16'd2773:j=5'd10;16'd2791:j=5'd11;16'd2807:j=5'd12;
  42. 16'd2823:j=5'd13;16'd2839:j=5'd14;16'd2855:j=5'd15;16'd2871:j=5'd16;16'd2888:j=5'd17;16'd2903:j=5'd18;
  43. 16'd2919:j=5'd19;16'd2934:j=5'd20;16'd2951:j=5'd21;16'd2966:j=5'd22;16'd2597:j=5'd23;16'd2612:j=5'd24;
  44. 16'd3140:j=5'd1;16'd3155:j=5'd2;16'd3174:j=5'd3;16'd3189:j=5'd4;16'd3205:j=5'd5;16'd3220:j=5'd6;
  45. 16'd3237:j=5'd7;16'd3253:j=5'd8;16'd3270:j=5'd9;16'd3285:j=5'd10;16'd3303:j=5'd11;16'd3319:j=5'd12;
  46. 16'd3335:j=5'd13;16'd3351:j=5'd14;16'd3368:j=5'd15;16'd3383:j=5'd16;16'd3400:j=5'd17;16'd3415:j=5'd18;
  47. 16'd3431:j=5'd19;16'd3446:j=5'd20;16'd3463:j=5'd21;16'd3478:j=5'd22;16'd3109:j=5'd23;16'd3124:j=5'd24;
  48. 16'd3652:j=5'd1;16'd3667:j=5'd2;16'd3686:j=5'd3;16'd3701:j=5'd4;16'd3717:j=5'd5;16'd3732:j=5'd6;
  49. 16'd3750:j=5'd7;16'd3765:j=5'd8;16'd3782:j=5'd9;16'd3798:j=5'd10;16'd3815:j=5'd11;16'd3831:j=5'd12;
  50. 16'd3848:j=5'd13;16'd3863:j=5'd14;16'd3880:j=5'd15;16'd3895:j=5'd16;16'd3913:j=5'd17;16'd3928:j=5'd18;
  51. 16'd3944:j=5'd19;16'd3959:j=5'd20;16'd3975:j=5'd21;16'd3990:j=5'd22;16'd3622:j=5'd23;16'd3636:j=5'd24;
  52. 16'd4164:j=5'd1;16'd4179:j=5'd2;16'd4197:j=5'd3;16'd4212:j=5'd4;16'd4228:j=5'd5;16'd4244:j=5'd6;
  53. 16'd4261:j=5'd7;16'd4277:j=5'd8;16'd4293:j=5'd9;16'd4309:j=5'd10;16'd4327:j=5'd11;16'd4342:j=5'd12;
  54. 16'd4359:j=5'd13;16'd4375:j=5'd14;16'd4391:j=5'd15;16'd4406:j=5'd16;16'd4424:j=5'd17;16'd4439:j=5'd18;
  55. 16'd4455:j=5'd19;16'd4470:j=5'd20;16'd4487:j=5'd21;16'd4501:j=5'd22;16'd4134:j=5'd23;16'd4149:j=5'd24;
  56. 16'd4676:j=5'd1;16'd4690:j=5'd2;16'd4709:j=5'd3;16'd4724:j=5'd4;16'd4740:j=5'd5;16'd4756:j=5'd6;
  57. 16'd4773:j=5'd7;16'd4789:j=5'd8;16'd4805:j=5'd9;16'd4821:j=5'd10;16'd4839:j=5'd11;16'd4855:j=5'd12;
  58. 16'd4871:j=5'd13;16'd4887:j=5'd14;16'd4903:j=5'd15;16'd4919:j=5'd16;16'd4936:j=5'd17;16'd4951:j=5'd18;
  59. 16'd4967:j=5'd19;16'd4982:j=5'd20;16'd4999:j=5'd21;16'd5014:j=5'd22;16'd4645:j=5'd23;16'd4660:j=5'd24;
  60. 16'd5188:j=5'd1;16'd5203:j=5'd2;16'd5222:j=5'd3;16'd5237:j=5'd4;16'd5253:j=5'd5;16'd5268:j=5'd6;
  61. 16'd5285:j=5'd7;16'd5301:j=5'd8;16'd5318:j=5'd9;16'd5333:j=5'd10;16'd5351:j=5'd11;16'd5367:j=5'd12;
  62. 16'd5383:j=5'd13;16'd5399:j=5'd14;16'd5416:j=5'd15;16'd5431:j=5'd16;16'd5448:j=5'd17;16'd5463:j=5'd18;
  63. 16'd5479:j=5'd19;16'd5494:j=5'd20;16'd5511:j=5'd21;16'd5526:j=5'd22;16'd5157:j=5'd23;16'd5172:j=5'd24;
  64. 16'd5700:j=5'd1;16'd5715:j=5'd2;16'd5734:j=5'd3;16'd5749:j=5'd4;16'd5765:j=5'd5;16'd5780:j=5'd6;
  65. 16'd5798:j=5'd7;16'd5813:j=5'd8;16'd5830:j=5'd9;16'd5846:j=5'd10;16'd5863:j=5'd11;16'd5879:j=5'd12;
  66. 16'd5896:j=5'd13;16'd5911:j=5'd14;16'd5928:j=5'd15;16'd5943:j=5'd16;16'd5960:j=5'd17;16'd5976:j=5'd18;
  67. 16'd5992:j=5'd19;16'd6007:j=5'd20;16'd6023:j=5'd21;16'd6038:j=5'd22;16'd5670:j=5'd23;16'd5684:j=5'd24;
  68. 16'd6212:j=5'd1;16'd6227:j=5'd2;16'd6245:j=5'd3;16'd6260:j=5'd4;16'd6276:j=5'd5;16'd6292:j=5'd6;
  69. 16'd6309:j=5'd7;16'd6324:j=5'd8;16'd6341:j=5'd9;16'd6357:j=5'd10;16'd6375:j=5'd11;16'd6390:j=5'd12;
  70. 16'd6407:j=5'd13;16'd6423:j=5'd14;16'd6439:j=5'd15;16'd6454:j=5'd16;16'd6472:j=5'd17;16'd6487:j=5'd18;
  71. 16'd6503:j=5'd19;16'd6518:j=5'd20;16'd6535:j=5'd21;16'd6549:j=5'd22;16'd6182:j=5'd23;16'd6197:j=5'd24;
  72. 16'd6724:j=5'd1;16'd6738:j=5'd2;16'd6757:j=5'd3;16'd6772:j=5'd4;16'd6788:j=5'd5;16'd6804:j=5'd6;
  73. 16'd6821:j=5'd7;16'd6837:j=5'd8;16'd6853:j=5'd9;16'd6869:j=5'd10;16'd6887:j=5'd11;16'd6902:j=5'd12;
  74. 16'd6919:j=5'd13;16'd6935:j=5'd14;16'd6951:j=5'd15;16'd6967:j=5'd16;16'd6984:j=5'd17;16'd6999:j=5'd18;
  75. 16'd7015:j=5'd19;16'd7030:j=5'd20;16'd7047:j=5'd21;16'd7062:j=5'd22;16'd6693:j=5'd23;16'd6708:j=5'd24;
  76. 16'd7236:j=5'd1;16'd7251:j=5'd2;16'd7270:j=5'd3;16'd7285:j=5'd4;16'd7301:j=5'd5;16'd7316:j=5'd6;
  77. 16'd7333:j=5'd7;16'd7349:j=5'd8;16'd7366:j=5'd9;16'd7381:j=5'd10;16'd7399:j=5'd11;16'd7415:j=5'd12;
  78. 16'd7431:j=5'd13;16'd7447:j=5'd14;16'd7464:j=5'd15;16'd7479:j=5'd16;16'd7496:j=5'd17;16'd7511:j=5'd18;
  79. 16'd7527:j=5'd19;16'd7542:j=5'd20;16'd7559:j=5'd21;16'd7574:j=5'd22;16'd7205:j=5'd23;16'd7220:j=5'd24;
  80. 16'd7748:j=5'd1;16'd7763:j=5'd2;16'd7782:j=5'd3;16'd7797:j=5'd4;16'd7813:j=5'd5;16'd7828:j=5'd6;
  81. 16'd7846:j=5'd7;16'd7861:j=5'd8;16'd7878:j=5'd9;16'd7894:j=5'd10;16'd7911:j=5'd11;16'd7927:j=5'd12;
  82. 16'd7944:j=5'd13;16'd7959:j=5'd14;16'd7976:j=5'd15;16'd7991:j=5'd16;16'd8008:j=5'd17;16'd8024:j=5'd18;
  83. 16'd8040:j=5'd19;16'd8054:j=5'd20;16'd8071:j=5'd21;16'd8086:j=5'd22;16'd7718:j=5'd23;16'd7732:j=5'd24;
  84. 16'd8260:j=5'd1;16'd8275:j=5'd2;16'd8293:j=5'd3;16'd8308:j=5'd4;16'd8324:j=5'd5;16'd8339:j=5'd6;
  85. 16'd8357:j=5'd7;16'd8372:j=5'd8;16'd8389:j=5'd9;16'd8405:j=5'd10;16'd8423:j=5'd11;16'd8438:j=5'd12;
  86. 16'd8455:j=5'd13;16'd8471:j=5'd14;16'd8487:j=5'd15;16'd8502:j=5'd16;16'd8520:j=5'd17;16'd8535:j=5'd18;
  87. 16'd8551:j=5'd19;16'd8566:j=5'd20;16'd8583:j=5'd21;16'd8597:j=5'd22;16'd8230:j=5'd23;16'd8244:j=5'd24;
  88. 16'd8771:j=5'd1;16'd8786:j=5'd2;16'd8805:j=5'd3;16'd8820:j=5'd4;16'd8836:j=5'd5;16'd8852:j=5'd6;
  89. 16'd8869:j=5'd7;16'd8885:j=5'd8;16'd8901:j=5'd9;16'd8917:j=5'd10;16'd8935:j=5'd11;16'd8950:j=5'd12;
  90. 16'd8967:j=5'd13;16'd8983:j=5'd14;16'd8999:j=5'd15;16'd9015:j=5'd16;16'd9032:j=5'd17;16'd9047:j=5'd18;
  91. 16'd9063:j=5'd19;16'd9078:j=5'd20;16'd9095:j=5'd21;16'd9110:j=5'd22;16'd8741:j=5'd23;16'd8756:j=5'd24;
  92. 16'd9284:j=5'd1;16'd9299:j=5'd2;16'd9317:j=5'd3;16'd9333:j=5'd4;16'd9349:j=5'd5;16'd9364:j=5'd6;
  93. 16'd9381:j=5'd7;16'd9397:j=5'd8;16'd9414:j=5'd9;16'd9429:j=5'd10;16'd9447:j=5'd11;16'd9463:j=5'd12;
  94. 16'd9479:j=5'd13;16'd9495:j=5'd14;16'd9512:j=5'd15;16'd9527:j=5'd16;16'd9544:j=5'd17;16'd9559:j=5'd18;
  95. 16'd9575:j=5'd19;16'd9590:j=5'd20;16'd9607:j=5'd21;16'd9622:j=5'd22;16'd9253:j=5'd23;16'd9268:j=5'd24;
  96. 16'd9796:j=5'd1;16'd9811:j=5'd2;16'd9830:j=5'd3;16'd9845:j=5'd4;16'd9861:j=5'd5;16'd9876:j=5'd6;
  97. 16'd9894:j=5'd7;16'd9909:j=5'd8;16'd9926:j=5'd9;16'd9941:j=5'd10;16'd9959:j=5'd11;16'd9975:j=5'd12;
  98. 16'd9992:j=5'd13;16'd10007:j=5'd14;16'd10024:j=5'd15;16'd10039:j=5'd16;16'd10056:j=5'd17;16'd10072:j=5'd18;
  99. 16'd10088:j=5'd19;16'd10102:j=5'd20;16'd10119:j=5'd21;16'd10134:j=5'd22;16'd9765:j=5'd23;16'd9780:j=5'd24;
  100. 16'd10308:j=5'd1;16'd10323:j=5'd2;16'd10341:j=5'd3;16'd10356:j=5'd4;16'd10372:j=5'd5;16'd10387:j=5'd6;
  101. 16'd10405:j=5'd7;16'd10420:j=5'd8;16'd10437:j=5'd9;16'd10453:j=5'd10;16'd10470:j=5'd11;16'd10486:j=5'd12;
  102. 16'd10503:j=5'd13;16'd10518:j=5'd14;16'd10535:j=5'd15;16'd10550:j=5'd16;16'd10568:j=5'd17;16'd10583:j=5'd18;
  103. 16'd10599:j=5'd19;16'd10614:j=5'd20;16'd10631:j=5'd21;16'd10645:j=5'd22;16'd10278:j=5'd23;16'd10292:j=5'd24;
  104. 16'd10819:j=5'd1;16'd10834:j=5'd2;16'd10853:j=5'd3;16'd10868:j=5'd4;16'd10884:j=5'd5;16'd10900:j=5'd6;
  105. 16'd10917:j=5'd7;16'd10933:j=5'd8;16'd10949:j=5'd9;16'd10965:j=5'd10;16'd10983:j=5'd11;16'd10998:j=5'd12;
  106. 16'd11015:j=5'd13;16'd11031:j=5'd14;16'd11047:j=5'd15;16'd11063:j=5'd16;16'd11080:j=5'd17;16'd11095:j=5'd18;
  107. 16'd11111:j=5'd19;16'd11126:j=5'd20;16'd11143:j=5'd21;16'd11157:j=5'd22;16'd10789:j=5'd23;16'd10804:j=5'd24;
  108. 16'd11332:j=5'd1;16'd11347:j=5'd2;16'd11365:j=5'd3;16'd11380:j=5'd4;16'd11397:j=5'd5;16'd11412:j=5'd6;
  109. 16'd11429:j=5'd7;16'd11445:j=5'd8;16'd11462:j=5'd9;16'd11477:j=5'd10;16'd11495:j=5'd11;16'd11511:j=5'd12;
  110. 16'd11527:j=5'd13;16'd11543:j=5'd14;16'd11559:j=5'd15;16'd11575:j=5'd16;16'd11592:j=5'd17;16'd11607:j=5'd18;
  111. 16'd11623:j=5'd19;16'd11638:j=5'd20;16'd11655:j=5'd21;16'd11670:j=5'd22;16'd11301:j=5'd23;16'd11316:j=5'd24;
  112. 16'd11844:j=5'd1;16'd11859:j=5'd2;16'd11878:j=5'd3;16'd11893:j=5'd4;16'd11909:j=5'd5;16'd11924:j=5'd6;
  113. 16'd11942:j=5'd7;16'd11957:j=5'd8;16'd11974:j=5'd9;16'd11989:j=5'd10;16'd12007:j=5'd11;16'd12023:j=5'd12;
  114. 16'd12040:j=5'd13;16'd12055:j=5'd14;16'd12072:j=5'd15;16'd12087:j=5'd16;16'd12104:j=5'd17;16'd12120:j=5'd18;
  115. 16'd12136:j=5'd19;16'd12150:j=5'd20;16'd12167:j=5'd21;16'd12182:j=5'd22;16'd11813:j=5'd23;16'd11828:j=5'd24;
  116. 16'd12356:j=5'd1;16'd12371:j=5'd2;16'd12389:j=5'd3;16'd12404:j=5'd4;16'd12420:j=5'd5;16'd12435:j=5'd6;
  117. 16'd12453:j=5'd7;16'd12468:j=5'd8;16'd12485:j=5'd9;16'd12501:j=5'd10;16'd12518:j=5'd11;16'd12534:j=5'd12;
  118. 16'd12551:j=5'd13;16'd12566:j=5'd14;16'd12583:j=5'd15;16'd12598:j=5'd16;16'd12616:j=5'd17;16'd12631:j=5'd18;
  119. 16'd12647:j=5'd19;16'd12662:j=5'd20;16'd12678:j=5'd21;16'd12693:j=5'd22;16'd12326:j=5'd23;16'd12340:j=5'd24;
  120. 16'd12867:j=5'd1;16'd12882:j=5'd2;16'd12901:j=5'd3;16'd12916:j=5'd4;16'd12932:j=5'd5;16'd12948:j=5'd6;
  121. 16'd12965:j=5'd7;16'd12981:j=5'd8;16'd12997:j=5'd9;16'd13013:j=5'd10;16'd13031:j=5'd11;16'd13046:j=5'd12;
  122. 16'd13063:j=5'd13;16'd13079:j=5'd14;16'd13095:j=5'd15;16'd13111:j=5'd16;16'd13128:j=5'd17;16'd13143:j=5'd18;
  123. 16'd13159:j=5'd19;16'd13174:j=5'd20;16'd13191:j=5'd21;16'd13205:j=5'd22;16'd12837:j=5'd23;16'd12852:j=5'd24;
  124. 16'd13380:j=5'd1;16'd13394:j=5'd2;16'd13413:j=5'd3;16'd13428:j=5'd4;16'd13445:j=5'd5;16'd13460:j=5'd6;
  125. 16'd13477:j=5'd7;16'd13493:j=5'd8;16'd13509:j=5'd9;16'd13525:j=5'd10;16'd13543:j=5'd11;16'd13559:j=5'd12;
  126. 16'd13575:j=5'd13;16'd13591:j=5'd14;16'd13607:j=5'd15;16'd13623:j=5'd16;16'd13640:j=5'd17;16'd13655:j=5'd18;
  127. 16'd13671:j=5'd19;16'd13686:j=5'd20;16'd13703:j=5'd21;16'd13718:j=5'd22;16'd13349:j=5'd23;16'd13364:j=5'd24;
  128. 16'd13892:j=5'd1;16'd13907:j=5'd2;16'd13926:j=5'd3;16'd13941:j=5'd4;16'd13957:j=5'd5;16'd13972:j=5'd6;
  129. 16'd13990:j=5'd7;16'd14005:j=5'd8;16'd14022:j=5'd9;16'd14037:j=5'd10;16'd14055:j=5'd11;16'd14071:j=5'd12;
  130. 16'd14088:j=5'd13;16'd14103:j=5'd14;16'd14120:j=5'd15;16'd14135:j=5'd16;16'd14152:j=5'd17;16'd14167:j=5'd18;
  131. 16'd14183:j=5'd19;16'd14198:j=5'd20;16'd14215:j=5'd21;16'd14230:j=5'd22;16'd13861:j=5'd23;16'd13876:j=5'd24;
  132. 16'd14404:j=5'd1;16'd14419:j=5'd2;16'd14437:j=5'd3;16'd14452:j=5'd4;16'd14468:j=5'd5;16'd14483:j=5'd6;
  133. 16'd14501:j=5'd7;16'd14516:j=5'd8;16'd14533:j=5'd9;16'd14549:j=5'd10;16'd14566:j=5'd11;16'd14582:j=5'd12;
  134. 16'd14599:j=5'd13;16'd14614:j=5'd14;16'd14631:j=5'd15;16'd14646:j=5'd16;16'd14664:j=5'd17;16'd14679:j=5'd18;
  135. 16'd14695:j=5'd19;16'd14710:j=5'd20;16'd14726:j=5'd21;16'd14741:j=5'd22;16'd14374:j=5'd23;16'd14388:j=5'd24;
  136. 16'd14915:j=5'd1;16'd14930:j=5'd2;16'd14949:j=5'd3;16'd14964:j=5'd4;16'd14980:j=5'd5;16'd14996:j=5'd6;
  137. 16'd15013:j=5'd7;16'd15029:j=5'd8;16'd15045:j=5'd9;16'd15061:j=5'd10;16'd15079:j=5'd11;16'd15094:j=5'd12;
  138. 16'd15111:j=5'd13;16'd15127:j=5'd14;16'd15143:j=5'd15;16'd15159:j=5'd16;16'd15176:j=5'd17;16'd15191:j=5'd18;
  139. 16'd15207:j=5'd19;16'd15222:j=5'd20;16'd15239:j=5'd21;16'd15253:j=5'd22;16'd14885:j=5'd23;16'd14900:j=5'd24;
  140. 16'd15428:j=5'd1;16'd15442:j=5'd2;16'd15461:j=5'd3;16'd15476:j=5'd4;16'd15493:j=5'd5;16'd15508:j=5'd6;
  141. 16'd15525:j=5'd7;16'd15541:j=5'd8;16'd15557:j=5'd9;16'd15573:j=5'd10;16'd15591:j=5'd11;16'd15607:j=5'd12;
  142. 16'd15623:j=5'd13;16'd15639:j=5'd14;16'd15655:j=5'd15;16'd15671:j=5'd16;16'd15688:j=5'd17;16'd15703:j=5'd18;
  143. 16'd15719:j=5'd19;16'd15734:j=5'd20;16'd15751:j=5'd21;16'd15766:j=5'd22;16'd15397:j=5'd23;16'd15412:j=5'd24;
  144. 16'd15940:j=5'd1;16'd15955:j=5'd2;16'd15974:j=5'd3;16'd15989:j=5'd4;16'd16005:j=5'd5;16'd16020:j=5'd6;
  145. 16'd16038:j=5'd7;16'd16053:j=5'd8;16'd16070:j=5'd9;16'd16085:j=5'd10;16'd16103:j=5'd11;16'd16119:j=5'd12;
  146. 16'd16136:j=5'd13;16'd16151:j=5'd14;16'd16168:j=5'd15;16'd16183:j=5'd16;16'd16200:j=5'd17;16'd16215:j=5'd18;
  147. 16'd16231:j=5'd19;16'd16246:j=5'd20;16'd16263:j=5'd21;16'd16278:j=5'd22;16'd15909:j=5'd23;16'd15924:j=5'd24;
  148. 16'd16452:j=5'd1;16'd16467:j=5'd2;16'd16485:j=5'd3;16'd16500:j=5'd4;16'd16516:j=5'd5;16'd16531:j=5'd6;
  149. 16'd16549:j=5'd7;16'd16564:j=5'd8;16'd16581:j=5'd9;16'd16597:j=5'd10;16'd16614:j=5'd11;16'd16630:j=5'd12;
  150. 16'd16647:j=5'd13;16'd16662:j=5'd14;16'd16679:j=5'd15;16'd16694:j=5'd16;16'd16712:j=5'd17;16'd16727:j=5'd18;
  151. 16'd16743:j=5'd19;16'd16758:j=5'd20;16'd16774:j=5'd21;16'd16789:j=5'd22;16'd16422:j=5'd23;16'd16436:j=5'd24;
  152. 16'd16963:j=5'd1;16'd16978:j=5'd2;16'd16997:j=5'd3;16'd17012:j=5'd4;16'd17028:j=5'd5;16'd17044:j=5'd6;
  153. 16'd17061:j=5'd7;16'd17077:j=5'd8;16'd17093:j=5'd9;16'd17109:j=5'd10;16'd17127:j=5'd11;16'd17142:j=5'd12;
  154. 16'd17159:j=5'd13;16'd17175:j=5'd14;16'd17191:j=5'd15;16'd17207:j=5'd16;16'd17224:j=5'd17;16'd17239:j=5'd18;
  155. 16'd17255:j=5'd19;16'd17270:j=5'd20;16'd17287:j=5'd21;16'd17301:j=5'd22;16'd16933:j=5'd23;16'd16948:j=5'd24;
  156. 16'd17476:j=5'd1;16'd17490:j=5'd2;16'd17509:j=5'd3;16'd17524:j=5'd4;16'd17541:j=5'd5;16'd17556:j=5'd6;
  157. 16'd17573:j=5'd7;16'd17589:j=5'd8;16'd17605:j=5'd9;16'd17621:j=5'd10;16'd17639:j=5'd11;16'd17655:j=5'd12;
  158. 16'd17671:j=5'd13;16'd17687:j=5'd14;16'd17703:j=5'd15;16'd17719:j=5'd16;16'd17736:j=5'd17;16'd17751:j=5'd18;
  159. 16'd17767:j=5'd19;16'd17782:j=5'd20;16'd17799:j=5'd21;16'd17814:j=5'd22;16'd17445:j=5'd23;16'd17460:j=5'd24;
  160. 16'd17988:j=5'd1;16'd18003:j=5'd2;16'd18022:j=5'd3;16'd18037:j=5'd4;16'd18053:j=5'd5;16'd18068:j=5'd6;
  161. 16'd18085:j=5'd7;16'd18101:j=5'd8;16'd18118:j=5'd9;16'd18133:j=5'd10;16'd18151:j=5'd11;16'd18167:j=5'd12;
  162. 16'd18183:j=5'd13;16'd18199:j=5'd14;16'd18216:j=5'd15;16'd18231:j=5'd16;16'd18248:j=5'd17;16'd18263:j=5'd18;
  163. 16'd18279:j=5'd19;16'd18294:j=5'd20;16'd18311:j=5'd21;16'd18326:j=5'd22;16'd17957:j=5'd23;16'd17972:j=5'd24;
  164. 16'd18500:j=5'd1;16'd18515:j=5'd2;16'd18533:j=5'd3;16'd18548:j=5'd4;16'd18564:j=5'd5;16'd18579:j=5'd6;
  165. 16'd18597:j=5'd7;16'd18612:j=5'd8;16'd18629:j=5'd9;16'd18645:j=5'd10;16'd18662:j=5'd11;16'd18678:j=5'd12;
  166. 16'd18695:j=5'd13;16'd18710:j=5'd14;16'd18727:j=5'd15;16'd18742:j=5'd16;16'd18760:j=5'd17;16'd18775:j=5'd18;
  167. 16'd18791:j=5'd19;16'd18806:j=5'd20;16'd18822:j=5'd21;16'd18837:j=5'd22;16'd18470:j=5'd23;16'd18484:j=5'd24;
  168. 16'd19011:j=5'd1;16'd19026:j=5'd2;16'd19045:j=5'd3;16'd19060:j=5'd4;16'd19076:j=5'd5;16'd19092:j=5'd6;
  169. 16'd19109:j=5'd7;16'd19125:j=5'd8;16'd19141:j=5'd9;16'd19157:j=5'd10;16'd19175:j=5'd11;16'd19190:j=5'd12;
  170. 16'd19207:j=5'd13;16'd19223:j=5'd14;16'd19239:j=5'd15;16'd19255:j=5'd16;16'd19272:j=5'd17;16'd19287:j=5'd18;
  171. 16'd19303:j=5'd19;16'd19318:j=5'd20;16'd19335:j=5'd21;16'd19349:j=5'd22;16'd18981:j=5'd23;16'd18996:j=5'd24;
  172. 16'd19524:j=5'd1;16'd19538:j=5'd2;16'd19557:j=5'd3;16'd19572:j=5'd4;16'd19589:j=5'd5;16'd19604:j=5'd6;
  173. 16'd19621:j=5'd7;16'd19637:j=5'd8;16'd19653:j=5'd9;16'd19669:j=5'd10;16'd19687:j=5'd11;16'd19703:j=5'd12;
  174. 16'd19719:j=5'd13;16'd19735:j=5'd14;16'd19751:j=5'd15;16'd19767:j=5'd16;16'd19784:j=5'd17;16'd19799:j=5'd18;
  175. 16'd19815:j=5'd19;16'd19830:j=5'd20;16'd19847:j=5'd21;16'd19862:j=5'd22;16'd19493:j=5'd23;16'd19508:j=5'd24;
  176. 16'd20036:j=5'd1;16'd20051:j=5'd2;16'd20070:j=5'd3;16'd20085:j=5'd4;16'd20101:j=5'd5;16'd20116:j=5'd6;
  177. 16'd20133:j=5'd7;16'd20149:j=5'd8;16'd20166:j=5'd9;16'd20181:j=5'd10;16'd20199:j=5'd11;16'd20215:j=5'd12;
  178. 16'd20231:j=5'd13;16'd20247:j=5'd14;16'd20264:j=5'd15;16'd20279:j=5'd16;16'd20296:j=5'd17;16'd20311:j=5'd18;
  179. 16'd20327:j=5'd19;16'd20342:j=5'd20;16'd20359:j=5'd21;16'd20374:j=5'd22;16'd20005:j=5'd23;16'd20020:j=5'd24;
  180. 16'd20548:j=5'd1;16'd20563:j=5'd2;16'd20581:j=5'd3;16'd20596:j=5'd4;16'd20612:j=5'd5;16'd20627:j=5'd6;
  181. 16'd20645:j=5'd7;16'd20660:j=5'd8;16'd20677:j=5'd9;16'd20693:j=5'd10;16'd20710:j=5'd11;16'd20726:j=5'd12;
  182. 16'd20743:j=5'd13;16'd20758:j=5'd14;16'd20775:j=5'd15;16'd20790:j=5'd16;16'd20808:j=5'd17;16'd20823:j=5'd18;
  183. 16'd20839:j=5'd19;16'd20854:j=5'd20;16'd20870:j=5'd21;16'd20885:j=5'd22;16'd20518:j=5'd23;16'd20532:j=5'd24;
  184. 16'd21059:j=5'd1;16'd21074:j=5'd2;16'd21093:j=5'd3;16'd21108:j=5'd4;16'd21124:j=5'd5;16'd21140:j=5'd6;
  185. 16'd21157:j=5'd7;16'd21172:j=5'd8;16'd21189:j=5'd9;16'd21205:j=5'd10;16'd21223:j=5'd11;16'd21238:j=5'd12;
  186. 16'd21255:j=5'd13;16'd21271:j=5'd14;16'd21287:j=5'd15;16'd21302:j=5'd16;16'd21320:j=5'd17;16'd21335:j=5'd18;
  187. 16'd21351:j=5'd19;16'd21366:j=5'd20;16'd21383:j=5'd21;16'd21397:j=5'd22;16'd21029:j=5'd23;16'd21044:j=5'd24;
  188. 16'd21572:j=5'd1;16'd21586:j=5'd2;16'd21605:j=5'd3;16'd21620:j=5'd4;16'd21636:j=5'd5;16'd21652:j=5'd6;
  189. 16'd21669:j=5'd7;16'd21685:j=5'd8;16'd21701:j=5'd9;16'd21717:j=5'd10;16'd21735:j=5'd11;16'd21751:j=5'd12;
  190. 16'd21767:j=5'd13;16'd21783:j=5'd14;16'd21799:j=5'd15;16'd21815:j=5'd16;16'd21832:j=5'd17;16'd21847:j=5'd18;
  191. 16'd21863:j=5'd19;16'd21878:j=5'd20;16'd21895:j=5'd21;16'd21910:j=5'd22;16'd21541:j=5'd23;16'd21556:j=5'd24;
  192. 16'd22084:j=5'd1;16'd22099:j=5'd2;16'd22118:j=5'd3;16'd22133:j=5'd4;16'd22149:j=5'd5;16'd22164:j=5'd6;
  193. 16'd22181:j=5'd7;16'd22197:j=5'd8;16'd22214:j=5'd9;16'd22229:j=5'd10;16'd22247:j=5'd11;16'd22263:j=5'd12;
  194. 16'd22279:j=5'd13;16'd22295:j=5'd14;16'd22312:j=5'd15;16'd22327:j=5'd16;16'd22344:j=5'd17;16'd22359:j=5'd18;
  195. 16'd22375:j=5'd19;16'd22390:j=5'd20;16'd22407:j=5'd21;16'd22422:j=5'd22;16'd22053:j=5'd23;16'd22068:j=5'd24;
  196. 16'd22596:j=5'd1;16'd22611:j=5'd2;16'd22629:j=5'd3;16'd22644:j=5'd4;16'd22660:j=5'd5;16'd22675:j=5'd6;
  197. 16'd22693:j=5'd7;16'd22708:j=5'd8;16'd22725:j=5'd9;16'd22741:j=5'd10;16'd22758:j=5'd11;16'd22774:j=5'd12;
  198. 16'd22791:j=5'd13;16'd22806:j=5'd14;16'd22823:j=5'd15;16'd22838:j=5'd16;16'd22855:j=5'd17;16'd22871:j=5'd18;
  199. 16'd22887:j=5'd19;16'd22902:j=5'd20;16'd22918:j=5'd21;16'd22933:j=5'd22;16'd22566:j=5'd23;16'd22580:j=5'd24;
  200. 16'd23107:j=5'd1;16'd23122:j=5'd2;16'd23141:j=5'd3;16'd23156:j=5'd4;16'd23172:j=5'd5;16'd23187:j=5'd6;
  201. 16'd23205:j=5'd7;16'd23220:j=5'd8;16'd23237:j=5'd9;16'd23253:j=5'd10;16'd23271:j=5'd11;16'd23286:j=5'd12;
  202. 16'd23303:j=5'd13;16'd23319:j=5'd14;16'd23335:j=5'd15;16'd23350:j=5'd16;16'd23368:j=5'd17;16'd23383:j=5'd18;
  203. 16'd23399:j=5'd19;16'd23414:j=5'd20;16'd23431:j=5'd21;16'd23445:j=5'd22;16'd23077:j=5'd23;16'd23092:j=5'd24;
  204. 16'd23620:j=5'd1;16'd23634:j=5'd2;16'd23653:j=5'd3;16'd23668:j=5'd4;16'd23684:j=5'd5;16'd23700:j=5'd6;
  205. 16'd23717:j=5'd7;16'd23733:j=5'd8;16'd23749:j=5'd9;16'd23765:j=5'd10;16'd23783:j=5'd11;16'd23798:j=5'd12;
  206. 16'd23815:j=5'd13;16'd23831:j=5'd14;16'd23847:j=5'd15;16'd23863:j=5'd16;16'd23880:j=5'd17;16'd23895:j=5'd18;
  207. 16'd23911:j=5'd19;16'd23926:j=5'd20;16'd23943:j=5'd21;16'd23958:j=5'd22;16'd23589:j=5'd23;16'd23604:j=5'd24;
  208. 16'd24132:j=5'd1;16'd24147:j=5'd2;16'd24166:j=5'd3;16'd24181:j=5'd4;16'd24197:j=5'd5;16'd24212:j=5'd6;
  209. 16'd24229:j=5'd7;16'd24245:j=5'd8;16'd24262:j=5'd9;16'd24277:j=5'd10;16'd24295:j=5'd11;16'd24311:j=5'd12;
  210. 16'd24327:j=5'd13;16'd24343:j=5'd14;16'd24360:j=5'd15;16'd24375:j=5'd16;16'd24392:j=5'd17;16'd24407:j=5'd18;
  211. 16'd24423:j=5'd19;16'd24438:j=5'd20;16'd24455:j=5'd21;16'd24470:j=5'd22;16'd24101:j=5'd23;16'd24116:j=5'd24;
  212. 16'd24644:j=5'd1;16'd24659:j=5'd2;16'd24677:j=5'd3;16'd24692:j=5'd4;16'd24708:j=5'd5;16'd24723:j=5'd6;
  213. 16'd24741:j=5'd7;16'd24756:j=5'd8;16'd24773:j=5'd9;16'd24788:j=5'd10;16'd24806:j=5'd11;16'd24822:j=5'd12;
  214. 16'd24839:j=5'd13;16'd24854:j=5'd14;16'd24871:j=5'd15;16'd24886:j=5'd16;16'd24903:j=5'd17;16'd24919:j=5'd18;
  215. 16'd24935:j=5'd19;16'd24949:j=5'd20;16'd24966:j=5'd21;16'd24981:j=5'd22;16'd24614:j=5'd23;16'd24628:j=5'd24;
  216. 16'd25155:j=5'd1;16'd25170:j=5'd2;16'd25189:j=5'd3;16'd25204:j=5'd4;16'd25220:j=5'd5;16'd25235:j=5'd6;
  217. 16'd25253:j=5'd7;16'd25268:j=5'd8;16'd25285:j=5'd9;16'd25301:j=5'd10;16'd25318:j=5'd11;16'd25334:j=5'd12;
  218. 16'd25351:j=5'd13;16'd25366:j=5'd14;16'd25383:j=5'd15;16'd25398:j=5'd16;16'd25416:j=5'd17;16'd25431:j=5'd18;
  219. 16'd25447:j=5'd19;16'd25462:j=5'd20;16'd25479:j=5'd21;16'd25493:j=5'd22;16'd25125:j=5'd23;16'd25139:j=5'd24;
  220. 16'd25667:j=5'd1;16'd25682:j=5'd2;16'd25701:j=5'd3;16'd25716:j=5'd4;16'd25732:j=5'd5;16'd25748:j=5'd6;
  221. 16'd25765:j=5'd7;16'd25781:j=5'd8;16'd25797:j=5'd9;16'd25813:j=5'd10;16'd25831:j=5'd11;16'd25846:j=5'd12;
  222. 16'd25863:j=5'd13;16'd25879:j=5'd14;16'd25895:j=5'd15;16'd25911:j=5'd16;16'd25928:j=5'd17;16'd25943:j=5'd18;
  223. 16'd25959:j=5'd19;16'd25974:j=5'd20;16'd25991:j=5'd21;16'd26006:j=5'd22;16'd25637:j=5'd23;16'd25652:j=5'd24;
  224. 16'd26180:j=5'd1;16'd26195:j=5'd2;16'd26213:j=5'd3;16'd26228:j=5'd4;16'd26245:j=5'd5;16'd26260:j=5'd6;
  225. 16'd26277:j=5'd7;16'd26293:j=5'd8;16'd26310:j=5'd9;16'd26325:j=5'd10;16'd26343:j=5'd11;16'd26359:j=5'd12;
  226. 16'd26375:j=5'd13;16'd26391:j=5'd14;16'd26407:j=5'd15;16'd26423:j=5'd16;16'd26440:j=5'd17;16'd26455:j=5'd18;
  227. 16'd26471:j=5'd19;16'd26486:j=5'd20;16'd26503:j=5'd21;16'd26518:j=5'd22;16'd26149:j=5'd23;16'd26164:j=5'd24;
  228. 16'd26692:j=5'd1;16'd26707:j=5'd2;16'd26725:j=5'd3;16'd26740:j=5'd4;16'd26756:j=5'd5;16'd26771:j=5'd6;
  229. 16'd26789:j=5'd7;16'd26804:j=5'd8;16'd26821:j=5'd9;16'd26836:j=5'd10;16'd26854:j=5'd11;16'd26870:j=5'd12;
  230. 16'd26887:j=5'd13;16'd26902:j=5'd14;16'd26919:j=5'd15;16'd26934:j=5'd16;16'd26951:j=5'd17;16'd26967:j=5'd18;
  231. 16'd26983:j=5'd19;16'd26997:j=5'd20;16'd27014:j=5'd21;16'd27029:j=5'd22;16'd26661:j=5'd23;16'd26676:j=5'd24;
  232. 16'd27203:j=5'd1;16'd27218:j=5'd2;16'd27237:j=5'd3;16'd27252:j=5'd4;16'd27268:j=5'd5;16'd27283:j=5'd6;
  233. 16'd27301:j=5'd7;16'd27316:j=5'd8;16'd27333:j=5'd9;16'd27349:j=5'd10;16'd27366:j=5'd11;16'd27382:j=5'd12;
  234. 16'd27399:j=5'd13;16'd27414:j=5'd14;16'd27431:j=5'd15;16'd27446:j=5'd16;16'd27464:j=5'd17;16'd27479:j=5'd18;
  235. 16'd27495:j=5'd19;16'd27510:j=5'd20;16'd27527:j=5'd21;16'd27541:j=5'd22;16'd27173:j=5'd23;16'd27187:j=5'd24;
  236. 16'd27715:j=5'd1;16'd27730:j=5'd2;16'd27749:j=5'd3;16'd27764:j=5'd4;16'd27780:j=5'd5;16'd27796:j=5'd6;
  237. 16'd27813:j=5'd7;16'd27829:j=5'd8;16'd27845:j=5'd9;16'd27861:j=5'd10;16'd27879:j=5'd11;16'd27894:j=5'd12;
  238. 16'd27911:j=5'd13;16'd27927:j=5'd14;16'd27943:j=5'd15;16'd27959:j=5'd16;16'd27976:j=5'd17;16'd27991:j=5'd18;
  239. 16'd28007:j=5'd19;16'd28022:j=5'd20;16'd28039:j=5'd21;16'd28054:j=5'd22;16'd27685:j=5'd23;16'd27700:j=5'd24;
  240. 16'd28228:j=5'd1;16'd28243:j=5'd2;16'd28261:j=5'd3;16'd28276:j=5'd4;16'd28293:j=5'd5;16'd28308:j=5'd6;
  241. 16'd28325:j=5'd7;16'd28341:j=5'd8;16'd28357:j=5'd9;16'd28373:j=5'd10;16'd28391:j=5'd11;16'd28407:j=5'd12;
  242. 16'd28423:j=5'd13;16'd28439:j=5'd14;16'd28455:j=5'd15;16'd28471:j=5'd16;16'd28488:j=5'd17;16'd28503:j=5'd18;
  243. 16'd28519:j=5'd19;16'd28534:j=5'd20;16'd28551:j=5'd21;16'd28566:j=5'd22;16'd28197:j=5'd23;16'd28212:j=5'd24;
  244. 16'd28740:j=5'd1;16'd28755:j=5'd2;16'd28773:j=5'd3;16'd28788:j=5'd4;16'd28804:j=5'd5;16'd28819:j=5'd6;
  245. 16'd28837:j=5'd7;16'd28852:j=5'd8;16'd28869:j=5'd9;16'd28884:j=5'd10;16'd28902:j=5'd11;16'd28918:j=5'd12;
  246. 16'd28935:j=5'd13;16'd28950:j=5'd14;16'd28967:j=5'd15;16'd28982:j=5'd16;16'd28999:j=5'd17;16'd29015:j=5'd18;
  247. 16'd29031:j=5'd19;16'd29045:j=5'd20;16'd29062:j=5'd21;16'd29077:j=5'd22;16'd28709:j=5'd23;16'd28724:j=5'd24;
  248. 16'd29251:j=5'd1;16'd29266:j=5'd2;16'd29285:j=5'd3;16'd29300:j=5'd4;16'd29316:j=5'd5;16'd29331:j=5'd6;
  249. 16'd29349:j=5'd7;16'd29364:j=5'd8;16'd29381:j=5'd9;16'd29397:j=5'd10;16'd29414:j=5'd11;16'd29430:j=5'd12;
  250. 16'd29447:j=5'd13;16'd29462:j=5'd14;16'd29479:j=5'd15;16'd29494:j=5'd16;16'd29512:j=5'd17;16'd29527:j=5'd18;
  251. 16'd29543:j=5'd19;16'd29558:j=5'd20;16'd29574:j=5'd21;16'd29589:j=5'd22;16'd29221:j=5'd23;16'd29235:j=5'd24;
  252. 16'd29763:j=5'd1;16'd29778:j=5'd2;16'd29797:j=5'd3;16'd29812:j=5'd4;16'd29828:j=5'd5;16'd29844:j=5'd6;
  253. 16'd29861:j=5'd7;16'd29877:j=5'd8;16'd29893:j=5'd9;16'd29909:j=5'd10;16'd29927:j=5'd11;16'd29942:j=5'd12;
  254. 16'd29959:j=5'd13;16'd29975:j=5'd14;16'd29991:j=5'd15;16'd30007:j=5'd16;16'd30024:j=5'd17;16'd30039:j=5'd18;
  255. 16'd30055:j=5'd19;16'd30070:j=5'd20;16'd30087:j=5'd21;16'd30101:j=5'd22;16'd29733:j=5'd23;16'd29748:j=5'd24;
  256. 16'd30276:j=5'd1;16'd30291:j=5'd2;16'd30309:j=5'd3;16'd30324:j=5'd4;16'd30341:j=5'd5;16'd30356:j=5'd6;
  257. 16'd30373:j=5'd7;16'd30389:j=5'd8;16'd30405:j=5'd9;16'd30421:j=5'd10;16'd30439:j=5'd11;16'd30455:j=5'd12;
  258. 16'd30471:j=5'd13;16'd30487:j=5'd14;16'd30503:j=5'd15;16'd30519:j=5'd16;16'd30536:j=5'd17;16'd30551:j=5'd18;
  259. 16'd30567:j=5'd19;16'd30582:j=5'd20;16'd30599:j=5'd21;16'd30614:j=5'd22;16'd30245:j=5'd23;16'd30260:j=5'd24;
  260. 16'd30788:j=5'd1;16'd30803:j=5'd2;16'd30821:j=5'd3;16'd30836:j=5'd4;16'd30852:j=5'd5;16'd30867:j=5'd6;
  261. 16'd30885:j=5'd7;16'd30900:j=5'd8;16'd30917:j=5'd9;16'd30932:j=5'd10;16'd30950:j=5'd11;16'd30966:j=5'd12;
  262. 16'd30983:j=5'd13;16'd30998:j=5'd14;16'd31015:j=5'd15;16'd31030:j=5'd16;16'd31047:j=5'd17;16'd31062:j=5'd18;
  263. 16'd31078:j=5'd19;16'd31093:j=5'd20;16'd31110:j=5'd21;16'd31125:j=5'd22;16'd30757:j=5'd23;16'd30772:j=5'd24;
  264. 16'd31299:j=5'd1;16'd31314:j=5'd2;16'd31333:j=5'd3;16'd31348:j=5'd4;16'd31364:j=5'd5;16'd31379:j=5'd6;
  265. 16'd31397:j=5'd7;16'd31412:j=5'd8;16'd31429:j=5'd9;16'd31445:j=5'd10;16'd31462:j=5'd11;16'd31478:j=5'd12;
  266. 16'd31495:j=5'd13;16'd31510:j=5'd14;16'd31527:j=5'd15;16'd31542:j=5'd16;16'd31560:j=5'd17;16'd31575:j=5'd18;
  267. 16'd31591:j=5'd19;16'd31606:j=5'd20;16'd31622:j=5'd21;16'd31637:j=5'd22;16'd31269:j=5'd23;16'd31283:j=5'd24;
  268. 16'd31811:j=5'd1;16'd31826:j=5'd2;16'd31845:j=5'd3;16'd31860:j=5'd4;16'd31876:j=5'd5;16'd31892:j=5'd6;
  269. 16'd31909:j=5'd7;16'd31925:j=5'd8;16'd31941:j=5'd9;16'd31957:j=5'd10;16'd31975:j=5'd11;16'd31990:j=5'd12;
  270. 16'd32007:j=5'd13;16'd32023:j=5'd14;16'd32039:j=5'd15;16'd32055:j=5'd16;16'd32072:j=5'd17;16'd32087:j=5'd18;
  271. 16'd32103:j=5'd19;16'd32118:j=5'd20;16'd32135:j=5'd21;16'd32149:j=5'd22;16'd31781:j=5'd23;16'd31796:j=5'd24;
  272. 16'd32324:j=5'd1;16'd32338:j=5'd2;16'd32357:j=5'd3;16'd32372:j=5'd4;16'd32389:j=5'd5;16'd32404:j=5'd6;
  273. 16'd32421:j=5'd7;16'd32437:j=5'd8;16'd32453:j=5'd9;16'd32469:j=5'd10;16'd32487:j=5'd11;16'd32503:j=5'd12;
  274. 16'd32519:j=5'd13;16'd32535:j=5'd14;16'd32551:j=5'd15;16'd32567:j=5'd16;16'd32584:j=5'd17;16'd32599:j=5'd18;
  275. 16'd32615:j=5'd19;16'd32630:j=5'd20;16'd32647:j=5'd21;16'd32662:j=5'd22;16'd32293:j=5'd23;16'd32308:j=5'd24;
  276. 16'd32836:j=5'd1;16'd32851:j=5'd2;16'd32869:j=5'd3;16'd32884:j=5'd4;16'd32900:j=5'd5;16'd32915:j=5'd6;
  277. 16'd32933:j=5'd7;16'd32948:j=5'd8;16'd32965:j=5'd9;16'd32980:j=5'd10;16'd32998:j=5'd11;16'd33014:j=5'd12;
  278. 16'd33031:j=5'd13;16'd33046:j=5'd14;16'd33063:j=5'd15;16'd33078:j=5'd16;16'd33095:j=5'd17;16'd33110:j=5'd18;
  279. 16'd33126:j=5'd19;16'd33141:j=5'd20;16'd33158:j=5'd21;16'd33173:j=5'd22;16'd32805:j=5'd23;16'd32820:j=5'd24;
  280. 16'd33347:j=5'd1;16'd33362:j=5'd2;16'd33381:j=5'd3;16'd33396:j=5'd4;16'd33412:j=5'd5;16'd33427:j=5'd6;
  281. 16'd33445:j=5'd7;16'd33460:j=5'd8;16'd33477:j=5'd9;16'd33493:j=5'd10;16'd33510:j=5'd11;16'd33526:j=5'd12;
  282. 16'd33543:j=5'd13;16'd33558:j=5'd14;16'd33575:j=5'd15;16'd33590:j=5'd16;16'd33608:j=5'd17;16'd33623:j=5'd18;
  283. 16'd33639:j=5'd19;16'd33654:j=5'd20;16'd33670:j=5'd21;16'd33685:j=5'd22;16'd33317:j=5'd23;16'd33331:j=5'd24;
  284. 16'd33859:j=5'd1;16'd33874:j=5'd2;16'd33893:j=5'd3;16'd33908:j=5'd4;16'd33924:j=5'd5;16'd33940:j=5'd6;
  285. 16'd33957:j=5'd7;16'd33973:j=5'd8;16'd33989:j=5'd9;16'd34005:j=5'd10;16'd34023:j=5'd11;16'd34038:j=5'd12;
  286. 16'd34055:j=5'd13;16'd34071:j=5'd14;16'd34087:j=5'd15;16'd34103:j=5'd16;16'd34120:j=5'd17;16'd34135:j=5'd18;
  287. 16'd34151:j=5'd19;16'd34166:j=5'd20;16'd34183:j=5'd21;16'd34197:j=5'd22;16'd33829:j=5'd23;16'd33844:j=5'd24;
  288. 16'd34372:j=5'd1;16'd34386:j=5'd2;16'd34405:j=5'd3;16'd34420:j=5'd4;16'd34437:j=5'd5;16'd34452:j=5'd6;
  289. 16'd34469:j=5'd7;16'd34485:j=5'd8;16'd34501:j=5'd9;16'd34517:j=5'd10;16'd34535:j=5'd11;16'd34551:j=5'd12;
  290. 16'd34567:j=5'd13;16'd34583:j=5'd14;16'd34599:j=5'd15;16'd34615:j=5'd16;16'd34632:j=5'd17;16'd34647:j=5'd18;
  291. 16'd34663:j=5'd19;16'd34678:j=5'd20;16'd34695:j=5'd21;16'd34710:j=5'd22;16'd34341:j=5'd23;16'd34356:j=5'd24;
  292. 16'd34884:j=5'd1;16'd34899:j=5'd2;16'd34917:j=5'd3;16'd34932:j=5'd4;16'd34948:j=5'd5;16'd34963:j=5'd6;
  293. 16'd34980:j=5'd7;16'd34996:j=5'd8;16'd35013:j=5'd9;16'd35028:j=5'd10;16'd35046:j=5'd11;16'd35062:j=5'd12;
  294. 16'd35078:j=5'd13;16'd35094:j=5'd14;16'd35111:j=5'd15;16'd35126:j=5'd16;16'd35143:j=5'd17;16'd35158:j=5'd18;
  295. 16'd35174:j=5'd19;16'd35189:j=5'd20;16'd35206:j=5'd21;16'd35221:j=5'd22;16'd34853:j=5'd23;16'd34868:j=5'd24;
  296. 16'd35395:j=5'd1;16'd35410:j=5'd2;16'd35429:j=5'd3;16'd35444:j=5'd4;16'd35460:j=5'd5;16'd35475:j=5'd6;
  297. 16'd35493:j=5'd7;16'd35508:j=5'd8;16'd35525:j=5'd9;16'd35541:j=5'd10;16'd35558:j=5'd11;16'd35574:j=5'd12;
  298. 16'd35591:j=5'd13;16'd35606:j=5'd14;16'd35623:j=5'd15;16'd35638:j=5'd16;16'd35656:j=5'd17;16'd35671:j=5'd18;
  299. 16'd35687:j=5'd19;16'd35702:j=5'd20;16'd35718:j=5'd21;16'd35733:j=5'd22;16'd35365:j=5'd23;16'd35379:j=5'd24;
  300. 16'd35907:j=5'd1;16'd35922:j=5'd2;16'd35941:j=5'd3;16'd35956:j=5'd4;16'd35972:j=5'd5;16'd35988:j=5'd6;
  301. 16'd36005:j=5'd7;16'd36020:j=5'd8;16'd36037:j=5'd9;16'd36053:j=5'd10;16'd36071:j=5'd11;16'd36086:j=5'd12;
  302. 16'd36103:j=5'd13;16'd36119:j=5'd14;16'd36135:j=5'd15;16'd36150:j=5'd16;16'd36168:j=5'd17;16'd36183:j=5'd18;
  303. 16'd36199:j=5'd19;16'd36214:j=5'd20;16'd36231:j=5'd21;16'd36245:j=5'd22;16'd35877:j=5'd23;16'd35892:j=5'd24;
  304. 16'd36420:j=5'd1;16'd36434:j=5'd2;16'd36453:j=5'd3;16'd36468:j=5'd4;16'd36485:j=5'd5;16'd36500:j=5'd6;
  305. 16'd36517:j=5'd7;16'd36533:j=5'd8;16'd36549:j=5'd9;16'd36565:j=5'd10;16'd36583:j=5'd11;16'd36599:j=5'd12;
  306. 16'd36615:j=5'd13;16'd36631:j=5'd14;16'd36647:j=5'd15;16'd36663:j=5'd16;16'd36680:j=5'd17;16'd36695:j=5'd18;
  307. 16'd36711:j=5'd19;16'd36726:j=5'd20;16'd36743:j=5'd21;16'd36758:j=5'd22;16'd36389:j=5'd23;16'd36404:j=5'd24;
  308. 16'd36932:j=5'd1;16'd36947:j=5'd2;16'd36965:j=5'd3;16'd36980:j=5'd4;16'd36996:j=5'd5;16'd37011:j=5'd6;
  309. 16'd37028:j=5'd7;16'd37044:j=5'd8;16'd37061:j=5'd9;16'd37076:j=5'd10;16'd37094:j=5'd11;16'd37110:j=5'd12;
  310. 16'd37126:j=5'd13;16'd37142:j=5'd14;16'd37159:j=5'd15;16'd37174:j=5'd16;16'd37191:j=5'd17;16'd37206:j=5'd18;
  311. 16'd37222:j=5'd19;16'd37237:j=5'd20;16'd37254:j=5'd21;16'd37269:j=5'd22;16'd36901:j=5'd23;16'd36916:j=5'd24;
  312. 16'd37443:j=5'd1;16'd37458:j=5'd2;16'd37477:j=5'd3;16'd37492:j=5'd4;16'd37508:j=5'd5;16'd37523:j=5'd6;
  313. 16'd37541:j=5'd7;16'd37556:j=5'd8;16'd37573:j=5'd9;16'd37589:j=5'd10;16'd37606:j=5'd11;16'd37622:j=5'd12;
  314. 16'd37639:j=5'd13;16'd37654:j=5'd14;16'd37671:j=5'd15;16'd37686:j=5'd16;16'd37703:j=5'd17;16'd37719:j=5'd18;
  315. 16'd37735:j=5'd19;16'd37750:j=5'd20;16'd37766:j=5'd21;16'd37781:j=5'd22;16'd37413:j=5'd23;16'd37427:j=5'd24;
  316. 16'd37955:j=5'd1;16'd37970:j=5'd2;16'd37989:j=5'd3;16'd38004:j=5'd4;16'd38020:j=5'd5;16'd38036:j=5'd6;
  317. 16'd38053:j=5'd7;16'd38068:j=5'd8;16'd38085:j=5'd9;16'd38101:j=5'd10;16'd38119:j=5'd11;16'd38134:j=5'd12;
  318. 16'd38151:j=5'd13;16'd38167:j=5'd14;16'd38183:j=5'd15;16'd38198:j=5'd16;16'd38216:j=5'd17;16'd38231:j=5'd18;
  319. 16'd38247:j=5'd19;16'd38262:j=5'd20;16'd38279:j=5'd21;16'd38293:j=5'd22;16'd37925:j=5'd23;16'd37940:j=5'd24;
  320. 16'd38468:j=5'd1;16'd38482:j=5'd2;16'd38501:j=5'd3;16'd38516:j=5'd4;16'd38532:j=5'd5;16'd38548:j=5'd6;
  321. 16'd38565:j=5'd7;16'd38581:j=5'd8;16'd38597:j=5'd9;16'd38613:j=5'd10;16'd38631:j=5'd11;16'd38646:j=5'd12;
  322. 16'd38663:j=5'd13;16'd38679:j=5'd14;16'd38695:j=5'd15;16'd38711:j=5'd16;16'd38728:j=5'd17;16'd38743:j=5'd18;
  323. 16'd38759:j=5'd19;16'd38774:j=5'd20;16'd38791:j=5'd21;16'd38806:j=5'd22;16'd38437:j=5'd23;16'd38452:j=5'd24;
  324. 16'd38980:j=5'd1;16'd38995:j=5'd2;16'd39013:j=5'd3;16'd39028:j=5'd4;16'd39044:j=5'd5;16'd39059:j=5'd6;
  325. 16'd39076:j=5'd7;16'd39092:j=5'd8;16'd39109:j=5'd9;16'd39124:j=5'd10;16'd39142:j=5'd11;16'd39158:j=5'd12;
  326. 16'd39174:j=5'd13;16'd39190:j=5'd14;16'd39207:j=5'd15;16'd39222:j=5'd16;16'd39239:j=5'd17;16'd39254:j=5'd18;
  327. 16'd39270:j=5'd19;16'd39285:j=5'd20;16'd39302:j=5'd21;16'd39317:j=5'd22;16'd38949:j=5'd23;16'd38964:j=5'd24;
  328. 16'd39491:j=5'd1;16'd39506:j=5'd2;16'd39525:j=5'd3;16'd39540:j=5'd4;16'd39556:j=5'd5;16'd39571:j=5'd6;
  329. 16'd39589:j=5'd7;16'd39604:j=5'd8;16'd39621:j=5'd9;16'd39637:j=5'd10;16'd39654:j=5'd11;16'd39670:j=5'd12;
  330. 16'd39687:j=5'd13;16'd39702:j=5'd14;16'd39719:j=5'd15;16'd39734:j=5'd16;16'd39751:j=5'd17;16'd39767:j=5'd18;
  331. 16'd39783:j=5'd19;16'd39798:j=5'd20;16'd39814:j=5'd21;16'd39829:j=5'd22;16'd39461:j=5'd23;16'd39475:j=5'd24;
  332. 16'd40003:j=5'd1;16'd40018:j=5'd2;16'd40037:j=5'd3;16'd40052:j=5'd4;16'd40068:j=5'd5;16'd40083:j=5'd6;
  333. 16'd40101:j=5'd7;16'd40116:j=5'd8;16'd40133:j=5'd9;16'd40149:j=5'd10;16'd40166:j=5'd11;16'd40182:j=5'd12;
  334. 16'd40199:j=5'd13;16'd40215:j=5'd14;16'd40231:j=5'd15;16'd40246:j=5'd16;16'd40264:j=5'd17;16'd40279:j=5'd18;
  335. 16'd40295:j=5'd19;16'd40310:j=5'd20;16'd40327:j=5'd21;16'd40341:j=5'd22;16'd39973:j=5'd23;16'd39988:j=5'd24;
  336. 16'd40516:j=5'd1;16'd40530:j=5'd2;16'd40549:j=5'd3;16'd40564:j=5'd4;16'd40580:j=5'd5;16'd40596:j=5'd6;
  337. 16'd40613:j=5'd7;16'd40629:j=5'd8;16'd40645:j=5'd9;16'd40661:j=5'd10;16'd40679:j=5'd11;16'd40694:j=5'd12;
  338. 16'd40711:j=5'd13;16'd40727:j=5'd14;16'd40743:j=5'd15;16'd40759:j=5'd16;16'd40776:j=5'd17;16'd40791:j=5'd18;
  339. 16'd40807:j=5'd19;16'd40822:j=5'd20;16'd40839:j=5'd21;16'd40854:j=5'd22;16'd40485:j=5'd23;16'd40500:j=5'd24;
  340. default:j=5'd0;
  341. endcase
  342. end
  343. endmodule

  344. module main(
  345.         input clk,                        //时钟输入
  346.         output reg led                //低电平(计算正确)点亮
  347. );
  348. wire [4:0] q;                //节气序号

  349. solar_terms solar_terms(                //取2023年12月22日的节气
  350.         .year(7'd23),
  351.         .month(4'd12),
  352.         .day(5'd22),
  353.         .out(q)
  354. );

  355. always @(posedge clk) begin
  356.         if(q == 5'd22) begin                        //第22号节气:冬至
  357.                 led <= 1'b0;
  358.         end else begin
  359.                 led <= 1'b1;
  360.         end
  361. end
  362. endmodule
复制代码

相关帖子

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则