{"id":324796,"date":"2021-06-11T15:00:57","date_gmt":"2021-06-11T15:00:57","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=324796"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=324796","title":{"rendered":"\u041f\u0440\u043e\u0435\u043a\u0442 VG64: \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440 \u043a Commodore 64"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/78e\/0ad\/784\/78e0ad784be13516448361761ba2252f.jpg\"><\/div>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u0434\u0435\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u043a Commodore 64 \u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442. \u0412\u0441\u0435 \u00ab\u0436\u0435\u043b\u0435\u0437\u043e\u00bb \u0443\u043c\u0435\u0441\u0442\u0438\u043b\u043e\u0441\u044c \u0432 \u043a\u0430\u0440\u0442\u0440\u0438\u0434\u0436 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 (\u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440\u043e\u043c DE-15). \u0412\u0438\u0434\u0435\u043e\u0432\u044b\u0445\u043e\u0434 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c \u0441 VGA (31 \u043a\u0413\u0446).<\/p>\n<p>  \u0412\u043d\u0443\u0442\u0440\u0438 \u043a\u0430\u0440\u0442\u0440\u0438\u0434\u0436\u0430 \u2014 128 \u041a\u0411 SRAM \u0434\u043b\u044f \u043a\u0430\u0434\u0440\u043e\u0432\u043e\u0433\u043e \u0431\u0443\u0444\u0435\u0440\u0430 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 1-\u0431\u0438\u0442\u043d\u044b\u0439 \u0426\u0410\u041f. <br \/>  <a name=\"habracut\"><\/a><br \/>  <font color=\"#EB4247\"><\/p>\n<h3>TL;DR<\/h3>\n<p><\/font><br \/>  \u0412\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u043b\u0430\u0442\u0430, \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u043d\u0430\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u0430\u0440\u0442\u0440\u0438\u0434\u0436\u0430. \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a <a href=\"https:\/\/github.com\/rkbrooks\/vg64\">\u043c\u043e\u0436\u043d\u043e \u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/614\/b67\/ec5\/614b67ec5947197884efc905f46ef553.jpg\"><\/div>\n<p>  <font color=\"#EB4247\"><\/p>\n<h3>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 <\/h3>\n<p><\/font><br \/>  \u041a\u0430\u0440\u0442\u0440\u0438\u0434\u0436 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 \u043b\u044e\u0431\u0443\u044e \u0447\u0430\u0441\u0442\u044c 64 \u041a\u0411 \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430, \u0432\u043a\u043b\u044e\u0447\u0430\u044f I\/O1 \u0438\u043b\u0438 I\/O2. \u0415\u0441\u0442\u044c Verilog \u043a\u043e\u0434 \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043b\u0438\u0431\u043e \u0432 \u043e\u043a\u043d\u0435 \u0432 \u0431\u0443\u0444\u0435\u0440\u0435 \u043a\u0430\u0434\u0440\u0430 @EXPROM, \u0447\u0442\u043e \u0437\u0430\u0431\u0435\u0440\u0435\u0442 8 \u041a\u0411 \u043f\u0430\u043c\u044f\u0442\u0438 Basic, \u043b\u0438\u0431\u043e \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0445 \u043f\u043e\u0434\u0445\u043e\u0434, \u044d\u043a\u043e\u043d\u043e\u043c\u044f\u0449\u0438\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u0443\u044e \u043f\u0430\u043c\u044f\u0442\u044c. <\/p>\n<p>  \u0412 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u0434\u043b\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f I\/O1 \u043d\u0430 $DE00. \u0423 \u0432\u0430\u0441 \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442 \u0441 \u043a\u0430\u043a\u0438\u043c \u043b\u0438\u0431\u043e \u0434\u0440\u0443\u0433\u0438\u043c \u044d\u0434\u0434\u043e\u043d\u043e\u043c (\u0432\u0442\u043e\u0440\u043e\u0439 SID-\u0447\u0438\u043f \u0438 \u0442.\u043f.). \u0412 \u0446\u0435\u043b\u043e\u043c, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432, \u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u043d\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u041f\u041e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u044d\u0442\u0438 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442. <\/p>\n<p>  <b>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u044b<\/b><\/p>\n<p>  IOBASE = token<br \/>  IOBASE+1 = lsb address<br \/>  IOBASE+2 = msb address<br \/>  IOBASE+3 = data<\/p>\n<p>  \u041a\u0430\u0434\u0440\u043e\u0432\u044b\u0439 \u0431\u0443\u0444\u0435\u0440 \u2014 \u043b\u0438\u043d\u0435\u0439\u043d\u044b\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e, \u043f\u043e\u0434\u043e\u0431\u043d\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0440\u0435\u0436\u0438\u043c\u0430\u043c C64 \u0441 \u0440\u0430\u0441\u0442\u0440\u043e\u0432\u044b\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043c. \u0412 SRAM \u0435\u0433\u043e \u043d\u0430\u0447\u0430\u043b\u043e \u2014 $00000.<\/p>\n<p>  <font color=\"#EB4247\"><\/p>\n<h3>\u0412\u044b\u0432\u043e\u0434 \u0432\u0438\u0434\u0435\u043e<\/h3>\n<p><\/font><br \/>  \u0412\u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430 \u0432\u0438\u0434\u0435\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441 pixel rate \u0432 25 \u041c\u0413\u0446 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u043c\u0443 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0443 100 \u041c\u0413\u0446. \u042d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0431\u043b\u0438\u0437\u043e\u043a \u043a \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0443 \u0432 25,175 \u041c\u0413\u0446 \u0434\u043b\u044f \u044d\u043a\u0440\u0430\u043d\u0430 \u0441 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c 640&#215;480 \u043f\u0440\u0438 FPS 60 \u0413\u0446. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043b\u044e\u0431\u043e\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u0439 \u043c\u043d\u043e\u044e \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0438 \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0438 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0433\u0430\u0448\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u043d\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0443\u044e \u043f\u043e\u043b\u044f\u0440\u043d\u043e\u0441\u0442\u044c \u0438 \u0434\u043b\u0438\u043d\u0443 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u044d\u0442\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b \u0434\u0432\u0435 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u0430\u0434\u0440\u043e\u0432\u043e\u0433\u043e \u0431\u0443\u0444\u0435\u0440\u0430: \u0440\u0435\u0436\u0438\u043c \u0432\u044b\u0441\u043e\u043a\u043e\u0433\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f 640&#215;480 1 \u0431\u0438\u0442 \u043d\u0430 \u043f\u0438\u043a\u0441\u0435\u043b\u044c \u0438 \u043c\u043d\u043e\u0433\u043e\u0446\u0432\u0435\u0442\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u043d\u0438\u0437\u043a\u043e\u0433\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f 320&#215;480. \u041e\u0431\u0430 \u0440\u0435\u0436\u0438\u043c\u0430 \u2014 palette direct.<\/p>\n<p>  <font color=\"#EB4247\"><\/p>\n<h3>\u0416\u0435\u043b\u0435\u0437\u043e<\/h3>\n<p><\/font><br \/>  \u0410\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0435: \u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440 3,3 \u0412, CPLD, \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0438 SRAM. SRAM \u0442\u0440\u0430\u0442\u0438\u0442 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u0441\u0432\u043e\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u043e\u0442\u0432\u0435\u0442\u044b \u0445\u043e\u0441\u0442\u0443, \u0438 \u0435\u0449\u0435 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u2014 \u043d\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043f\u0438\u043a\u0441\u0435\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0437\u0434\u0435\u0441\u044c CPLD, Xilinx 95144XL, \u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432 \u043a 5 \u0412, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043d \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043d\u0430 \u0448\u0438\u043d\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f C64, \u0445\u043e\u0442\u044f \u0438 \u0437\u0430\u043f\u0438\u0442\u0430\u043d \u043e\u0442 \u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440\u0430 3,3 \u0412 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435\u043c.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/f45\/c90\/885\/f45c908852cfe79aa0a27bc6a48ba296.png\"><\/div>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b CPLD. \u042f \u043d\u0430\u0434\u0435\u044f\u043b\u0441\u044f \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043e\u0434\u0438\u043d \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0439 \u0441\u043f\u0440\u0430\u0439\u0442 \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f, \u043d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043c\u0435\u0441\u0442\u0430. <\/p>\n<p>  \u0414\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u043a\u0443\u043b\u0435\u0440\u044b, \u0432 \u043c\u043e\u0434\u0435\u043b\u0438 STL \u0435\u0441\u0442\u044c \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435, \u043f\u0440\u0438\u0447\u0435\u043c \u0432 \u0441\u0442\u0438\u043b\u0435 C64. <\/p>\n<p>  \u0412\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u2014 \u0432\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440 JTAG \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0431\u0438\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u0442\u043e\u043a\u0430 \u0432 CPLD.<\/p>\n<p>  \u0418 \u0435\u0449\u0435 \u2014 \u043a\u0430\u0440\u0442\u0440\u0438\u0434\u0436 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u043f\u043b\u0430\u0442\u043e\u0439 Ultimate 64. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043a\u0430\u0440\u0442\u0440\u0438\u0434\u0436\u0430 \u043d\u0430 \u044d\u0442\u0443 \u043f\u043b\u0430\u0442\u0443 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u043a\u0430\u0440\u0442\u0440\u0438\u0434\u0436\u0430. \u0417\u0430\u0442\u043e \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438 \u043f\u043b\u0430\u0442 C64, C128 \u0438 C64 Reloaded. \u0422\u043e\u0447\u043d\u043e \u043d\u0435 \u0437\u043d\u0430\u044e, \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c \u043b\u0438 \u043a\u0430\u0440\u0442\u0440\u0438\u0434\u0436 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438 C64 \u0438\u043b\u0438 C128, \u0432\u044b\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u043c\u0438 Commodore, \u043d\u043e \u044f \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043d\u0435 \u0432\u0438\u0436\u0443. <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/c50\/8a4\/32d\/c508a432d159fa06c282952ab7d4f33a.jpg\"><\/div>\n<p>  <font color=\"#EB4247\"><\/p>\n<h3>\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438<\/h3>\n<p><\/font>  <\/p>\n<ul>\n<li>4-\u0445 \u0441\u043b\u043e\u0439\u043d\u0430\u044f \u043f\u0435\u0447\u0430\u0442\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430. \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u0444\u0430\u0439\u043b\u044b Gerber. \u0421\u043a\u043e\u0441 \u043d\u0430 \u043a\u0440\u0430\u044e \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u0448\u043b\u0438\u0444\u0443\u0439\u0442\u0435 \u0435\u0433\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u044d\u0442\u043e, \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0432\u0440\u0435\u0434\u0438\u0442\u044c female-\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u044b).<\/li>\n<li>\u041a\u043e\u0440\u043f\u0443\u0441 \u043a\u0430\u0440\u0442\u0440\u0438\u0434\u0436\u0430 \u0441\u0432\u0435\u0440\u0445\u0443 \u0438 \u0441\u043d\u0438\u0437\u0443. \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u0444\u0430\u0439\u043b\u044b STL.<\/li>\n<li>\u0410\u043b\u044e\u043c\u0438\u043d\u0438\u0435\u0432\u044b\u0439 \u043f\u043e\u043b\u044f\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440, 22 \u043c\u043a\u0424, 6,6 \u043c\u043c<\/li>\n<li>\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 pn 430156043726, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0430 reset \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430.<\/li>\n<li>\u041a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440\u044b .1&quot; <\/li>\n<li>\u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440\u044b 0603: 2 499R, 3 300R, 2 30R<\/li>\n<li>\u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440\u044b 0603: 10 0,1 \u043c\u043a\u0424, 7 0,01 \u043c\u043a\u0424<\/li>\n<li>2 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u0430 3,2&#215;1,6 (\u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438, \u043d\u043e \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e)<\/li>\n<li>XC95144XL-5TQ100C CPLD (\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043d\u0435 \u0432\u0430\u0436\u043d\u0430)<\/li>\n<li>JEDEC 128kx8 SO Async SRAM a la AS6C1008-55PCN (\u043d\u0435 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435)<\/li>\n<li>\u041f\u0440\u044f\u043c\u043e\u0439 \u0443\u0433\u043b\u043e\u0432\u043e\u0439 \u0440\u0430\u0437\u044a\u0435\u043c VGA \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u0441 \u043e\u0442\u0432\u0435\u0440\u0441\u0442\u0438\u044f\u043c\u0438, \u0433\u043d\u0435\u0437\u0434\u043e\u0432\u043e\u0439 \u0440\u0430\u0437\u044a\u0435\u043c DE15<\/li>\n<\/ul>\n<p>  <font color=\"#EB4247\"><\/p>\n<h3>Verilog<\/h3>\n<p><\/font><br \/>  \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b Xilinx ISE 14.5, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u044d\u0442\u0438\u0445 CPLD. \u0415\u0441\u043b\u0438 \u0443 \u043a\u043e\u0433\u043e-\u0442\u043e \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f, \u0442\u043e \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c. <\/p>\n<p>  <font color=\"#EB4247\"><\/p>\n<h3>\u0423\u043f\u0430\u043a\u043e\u0432\u043a\u0430 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439<\/h3>\n<p><\/font><br \/>  \u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0432\u044b\u0441\u043e\u043a\u043e\u0433\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0431\u0438\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0434\u043d\u043e\u043c\u0443 \u043f\u0438\u043a\u0441\u0435\u043b\u044e. 1 = \u0431\u0435\u043b\u044b\u0439, 0 = \u0447\u0435\u0440\u043d\u044b\u0439. \u0410\u0434\u0440\u0435\u0441\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u044e\u0442\u0441\u044f \u043e\u0442 (0,0) \u0432 \u0432\u0435\u0440\u0445\u043d\u0435\u043c \u043b\u0435\u0432\u043e\u043c \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0432\u0438\u0434\u0438\u043c\u043e\u043c \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043a \u043d\u0438\u0436\u043d\u0435\u043c\u0443 \u043f\u0440\u0430\u0432\u043e\u043c\u0443 (639 479), \u043f\u043e \u0441\u0442\u043e\u043b\u0431\u0446\u0443, \u0437\u0430\u0442\u0435\u043c \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u0435. \u0411\u0438\u0442 7 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0431\u0430\u0439\u0442\u0435 \u2014 \u044d\u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0438\u043a\u0441\u0435\u043b\u044c.<br \/>  \u0412 \u043c\u043d\u043e\u0433\u043e\u0446\u0432\u0435\u0442\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u043f\u0438\u043a\u0441\u0435\u043b\u0438 \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0441 \u0442\u043e\u0439 \u0436\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e, \u0447\u0442\u043e \u0438 \u0432 \u043c\u043e\u043d\u043e\u0445\u0440\u043e\u043c\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435, \u043d\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0446\u0432\u0435\u0442\u043e\u0432\u043e\u0439 \u043a\u0430\u043d\u0430\u043b \u0438\u043c\u0435\u0435\u0442 \u0440\u0430\u0437\u043d\u043e\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435. \u0417\u0435\u043b\u0435\u043d\u044b\u0439 \u2014 \u044d\u0442\u043e 1\/2 pixel rate, \u0430 \u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u0438 \u0441\u0438\u043d\u0438\u0439 \u2014 1\/4 pixel rate. \u0421\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0431\u0438\u0442\u043e\u0432\u043e\u0433\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0441 \u0446\u0432\u0435\u0442\u043e\u0432\u044b\u043c \u043a\u0430\u043d\u0430\u043b\u043e\u043c \u043f\u043e\u0431\u0430\u0439\u0442\u043d\u043e (\u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u043e) \u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442:<\/p>\n<p>  G0 G1 G2 G3 R0 R1 B0 B1<\/p>\n<p>  \u0412 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u044d\u043a\u0440\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0431\u0430\u0439\u0442\u0430 \u0431\u0443\u0444\u0435\u0440\u0430 \u043a\u0430\u0434\u0440\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<p>  R0 R0 R0 R0 R1 R1 R1 R1<br \/>  G0 G0 G1 G1 G2 G2 G3 G3<br \/>  B0 B0 B0 B0 B1 B1 B1 B1<\/p>\n<p>  \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e ImageMagick, \u043c\u043e\u043d\u043e\u0445\u0440\u043e\u043c\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c:<\/p>\n<p>  convert input.tiff -resize 640&#215;480 -colors 2 -depth 1 output.mono<\/p>\n<p>  \u0426\u0432\u0435\u0442\u043d\u043e\u0439 \u0440\u0435\u0436\u0438\u043c:<\/p>\n<p>  convert input.tiff +dither -posterize 2 -resize 640&#215;480 output.tiff<br \/>  convert output.tiff -separate channel%d.png<\/p>\n<p>  \u041a\u043e\u0434 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 Python \u2014 \u043c\u043d\u0435 \u044d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0441\u0430\u043c\u044b\u043c \u043f\u0440\u043e\u0441\u0442\u044b\u043c:<\/p>\n<pre><code class=\"python\">from PIL import Image from array import * import numpy as np  ir = Image.open(&quot;channel0.png&quot;) ig = Image.open(&quot;channel1.png&quot;) ib = Image.open(&quot;channel2.png&quot;)  ir = ir.resize((640,480)) ig = ig.resize((640,480)) ib = ib.resize((640,480))  r = ir.load() g = ig.load() b = ib.load()  arr=np.zeros((480,80,8)) out=np.zeros((480,640))  for y in range(0,480):         for x in range(0,80):                  # 0 1 2 3 is green level                 # 4 5 is red level                 # 6 7 is blue level                  # GREEN                          arr[y][x][0]=(g[x*8+0,y]+g[x*8+1,y])\/2                 arr[y][x][1]=(g[x*8+2,y]+g[x*8+3,y])\/2                 arr[y][x][2]=(g[x*8+4,y]+g[x*8+5,y])\/2                 arr[y][x][3]=(g[x*8+6,y]+g[x*8+7,y])\/2                  # RED                  arr[y][x][4]=(r[x*8+0,y]+r[x*8+1,y]+r[x*8+2,y]+r[x*8+3,y])\/4                 arr[y][x][5]=(r[x*8+4,y]+r[x*8+5,y]+r[x*8+6,y]+r[x*8+7,y])\/4                  #BLUE                  arr[y][x][6]=(b[x*8+0,y]+b[x*8+1,y]+b[x*8+2,y]+b[x*8+3,y])\/4                 arr[y][x][7]=(b[x*8+4,y]+b[x*8+5,y]+b[x*8+6,y]+b[x*8+7,y])\/4  for y in range(0,480):         for x in range(0,80):                 for bit in range(0,8):                          arr[y][x][bit] = int(round(round(arr[y][x][bit])\/255))  newfile=open(&quot;output.bin&quot;,&quot;wb&quot;)  for y in range(0,480):         for x in range(0,80):                  out[y][x] = int(arr[y][x][0] + arr[y][x][1]*2 + arr[y][x][2]*4 + arr[y][x][3]*8  + arr[y][x][4]*16 + arr[y][x][5]*32 + arr[y][x][6]*64 + arr[y][x][7]*128)                  newfile.write(out[y][x].astype(np.ubyte))  newfile.close()<\/code><\/pre>\n<p>  \u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u0432\u0438\u0434\u0435\u043e:<\/p>\n<div class=\"oembed\"><iframe allowfullscreen id=\"60c32f15dc7e91a24fcac381\" src=\"https:\/\/embedd.srv.habr.com\/iframe\/60c32f15dc7e91a24fcac381\"><\/iframe><\/div>\n<p>  \u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0438 \u043f\u0440\u0438\u043f\u0430\u0438\u0432\u0430\u0435\u043c:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/e54\/7b2\/4d2\/e547b24d24b291eed42cee4572844a89.jpg\"><\/div>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/864\/767\/4ee\/8647674ee90db51034ff46b2b7abf892.jpg\"><\/div>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/a33\/149\/7ba\/a331497bad38fae832d379105f8ecbb1.jpg\"><\/div>\n<p>  <a href=\"https:\/\/github.com\/rkbrooks\/vg64\">\u041f\u043e \u044d\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c<\/a> \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0444\u0430\u0439\u043b\u044b. <\/p>\n<p>  <a href=\"https:\/\/slc.tl\/RIA1E\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/pe\/ay\/zf\/peayzfh745-twugmjk-r2zg-plc.png\"><\/a><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/selectel\/blog\/562176\/\"> https:\/\/habr.com\/ru\/company\/selectel\/blog\/562176\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/78e\/0ad\/784\/78e0ad784be13516448361761ba2252f.jpg\"><\/div>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u0434\u0435\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u043a Commodore 64 \u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442. \u0412\u0441\u0435 \u00ab\u0436\u0435\u043b\u0435\u0437\u043e\u00bb \u0443\u043c\u0435\u0441\u0442\u0438\u043b\u043e\u0441\u044c \u0432 \u043a\u0430\u0440\u0442\u0440\u0438\u0434\u0436 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 (\u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440\u043e\u043c DE-15). \u0412\u0438\u0434\u0435\u043e\u0432\u044b\u0445\u043e\u0434 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c \u0441 VGA (31 \u043a\u0413\u0446).<\/p>\n<p>  \u0412\u043d\u0443\u0442\u0440\u0438 \u043a\u0430\u0440\u0442\u0440\u0438\u0434\u0436\u0430 \u2014 128 \u041a\u0411 SRAM \u0434\u043b\u044f \u043a\u0430\u0434\u0440\u043e\u0432\u043e\u0433\u043e \u0431\u0443\u0444\u0435\u0440\u0430 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 1-\u0431\u0438\u0442\u043d\u044b\u0439 \u0426\u0410\u041f.   <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-324796","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/324796","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=324796"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/324796\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=324796"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=324796"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=324796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}