{"id":2200,"date":"2008-11-29T23:11:28","date_gmt":"2008-11-29T14:11:28","guid":{"rendered":"http:\/\/yasu2.prosou.nu\/blog\/index.php\/2008\/11\/29\/vga_controller\/"},"modified":"2008-11-29T23:11:28","modified_gmt":"2008-11-29T14:11:28","slug":"vga_controller","status":"publish","type":"post","link":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/2008\/11\/29\/2200\/","title":{"rendered":"VGA controller \u305d\u306e\u5f8c"},"content":{"rendered":"<p>\u6628\u591c\u4f5c\u308a\u304b\u3051\u305f\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3060\u304c\u3001\u3061\u3087\u3053\u3061\u3087\u3053\u3063\u3068\u30c7\u30d0\u30c3\u30b0\u3057\u3066\u3001\u753b\u9762\u304c\u6620\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002\u3057\u304b\u3057\u3001VGA \u306e\u89e3\u50cf\u5ea6\u306b\u5145\u5206\u306a\u5bb9\u91cf\u306e\u30e1\u30e2\u30ea\u306f (DRAM \u304c\u52d5\u304b\u306a\u3044\u9650\u308a) \u306a\u3044\u306e\u3067\u3001\u3044\u307e\u306e\u3068\u3053\u308d\u9069\u5f53\u306a\u30d1\u30bf\u30fc\u30f3\u3092\u4f5c\u308b\u56de\u8def\u304c\u4ed5\u8fbc\u3093\u3067\u3042\u308a\u3001\u30b9\u30a4\u30c3\u30c1\u3067\u305d\u308c\u3092\u5207\u308a\u66ff\u3048\u3066\u904a\u3079\u308b\u3001\u307f\u305f\u3044\u306a\u611f\u3058\u3002<br \/>\n\u3067\u3001\u30c6\u30ad\u30b9\u30c8 VRAM \u307f\u305f\u3044\u306a\u306e\u304c\u3042\u3063\u3066\u3001\u6587\u5b57\u3092\u8868\u793a\u3067\u304d\u305f\u3089\u3044\u3044\u304b\u306a\u30fc\u3001\u3068\u601d\u3063\u305f\u306e\u3067\u3001\u73fe\u72b6\u306e\u30d1\u30bf\u30fc\u30f3\u767a\u751f\u56de\u8def\u306e\u51fa\u529b\u306b\u30c6\u30ad\u30b9\u30c8\u3092\u30b9\u30fc\u30d1\u30fc\u30a4\u30f3\u30dd\u30fc\u30ba\u3067\u304d\u308b\u3088\u3046\u306a\u4ed5\u639b\u3051\u3092\u4f5c\u308b\u3053\u3068\u306b\u3057\u305f\u3002\u30d5\u30a9\u30f3\u30c8\u3092\u4f5c\u3063\u3061\u3083\u3048\u3070\u3042\u3068\u306f\u306a\u3093\u3068\u304b\u306a\u308b\u3060\u308d\u3001\u3068\u601d\u3046\u306e\u3060\u304c\u3001\u7518\u3044\u304b\u306a\u3002\u3068\u308a\u3042\u3048\u305a\u3001\u30c6\u30ad\u30b9\u30c8\u306b\u7c21\u5358\u306a\u5c5e\u6027\u304c\u3064\u3051\u3089\u308c\u308b\u3068\u3044\u3044\u306a\u30fc\u3001\u3068\u601d\u3063\u3066\u3001\u672c\u68da\u304b\u3089\u4f55\u5e74\u3076\u308a\u304b\u3067\u300cPC-9800\u30b7\u30ea\u30fc\u30ba \u30c6\u30af\u30cb\u30ab\u30eb\u30c7\u30fc\u30bf\u30d6\u30c3\u30af\u300d\u3092\u5f15\u3063\u5f35\u308a\u51fa\u3057\u3066\u307f\u305f\u3002\u30c6\u30ad\u30b9\u30c8VRAM\u306e\u5c5e\u6027\u30d3\u30c3\u30c8\u306e\u3068\u3053\u308d\u3092\u307f\u308b\u3068\u3001<br \/>\n&#8211; R<br \/>\n&#8211; G<br \/>\n&#8211; B<br \/>\n&#8211; VL (Vertical Line)<br \/>\n&#8211; UL (Under Line)<br \/>\n&#8211; RV (Reverse)<br \/>\n&#8211; BL (Blink)<br \/>\n&#8211; ST_ (Secret)<br \/>\n\u3060\u305d\u3046\u3060\u3002Secret \u306f\u5b9f\u88c5\u3057\u306a\u304f\u3066\u3082\u3044\u3044\u304b\u3002UL \u306f 4 pixel \u53f3\u306b\u305a\u308c\u308b\u4ed5\u69d8\u3067\u3001\u3064\u307e\u308a\u3001VL \u3068\u5408\u308f\u305b\u308b\u3068\u7f6b\u7dda\u3068\u3057\u3066\u3082\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002\u3044\u307e\u3055\u3089\u3060\u3051\u3069\u300198 \u304b\u3063\u3053\u3044\u3044\u306a!<br \/>\n\u3067\u3001XC3S700AN \u306e Block RAM \u306f 20 \u500b\u3042\u308b\u3001\u3068\u3044\u3046\u306e\u3092\u524d\u63d0\u306b\u4ed5\u69d8\u3092\u6574\u7406\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3059\u308b\u3002<br \/>\nCG (Character Generator) \u306b\u5fc5\u8981\u306a\u30e1\u30e2\u30ea\u306f\u30011\u6587\u5b57 8&#215;16 \u3067 16bytes. \u30ab\u30bf\u30ab\u30ca\u3060\u3051\u306e 8bit \u30b3\u30fc\u30c9\u3092\u5168\u90e8\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u3068\u30014kB \u5fc5\u8981\u306b\u306a\u308b\u304c\u3001ASCII \u3060\u3051\u306e 7bit \u30b3\u30fc\u30c9\u306a\u3089\u30012kB \u3060\u304b\u3089\u3001BlockRAM \u3072\u3068\u3064\u306b\u3061\u3087\u3046\u3069\u53ce\u307e\u308b (\u3053\u3046\u8003\u3048\u3066\u307f\u308b\u3068\u3001CG \u3068\u3044\u3046\u306e\u306f\u3051\u3063\u3053\u3046\u5927\u304d\u306a ROM \u304c\u5fc5\u8981\u3067\u3001\u307e\u3057\u3066\u3084\u6f22\u5b57\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u3068\u3044\u3046\u306e\u306f\u300116&#215;16 \u3060\u3068\u3057\u3066\u3082 32bytes\/character \u306a\u308f\u3051\u3067\u3001\u3072\u3068\u6614\u524d\u306a\u3089\u3070\u4e00\u5927\u4e8b\u696d\u3060\u3068\u601d\u3046)\u3002<br \/>\nVRAM \u306e\u307b\u3046\u306f\u30011\u6587\u5b57 8bit \u3067\u300180&#215;25 \u3067\u3061\u3087\u3046\u3069 2kB. \u3053\u308c\u3060\u3068 640&#215;400 \u3057\u304b\u4f7f\u3044\u5207\u308c\u306a\u3044 (NEC \u306e\u6c17\u6301\u3061\u304c\u308f\u304b\u3063\u305f\u6c17\u304c\u3059\u308b\u305e!)\u3002\u30ad\u30e3\u30e9\u30af\u30bf\u306e\u9ad8\u3055\u3092 16 \u30c9\u30c3\u30c8\u306b\u3059\u308b\u3068\u300180&#215;30 \u307e\u3067\u5165\u308b\u308f\u3051\u3067\u3001\u3053\u308c\u3060\u3068 2400bytes \u5fc5\u8981\u3067\u3042\u308a\u3001352\u30d0\u30a4\u30c8\u306f\u307f\u51fa\u3057\u3066\u3057\u307e\u3046\u304c\u3001\u3055\u3059\u304c\u306b\u3053\u308c\u3060\u3051\u306e\u305f\u3081\u306b BlockRAM \u3092\u3082\u3046\u3072\u3068\u3064\u4f7f\u3046\u306e\u306f\u306a\u3093\u304b\u3082\u3063\u305f\u3044\u306a\u3044\u306e\u3067\u3001attribute \u3092 4bit \u306b\u5727\u7e2e\u3057\u3066\u3001BlockRAM \u306e\u5f8c\u534a\u3092\u3053\u308c\u306b\u4f7f\u3046\u3053\u3068\u306b\u3057\u305f\u3002RGB + UL \u3067\u3044\u3044\u304b\u306a\u3002<br \/>\nVRAM \u306e\u30a2\u30c9\u30ec\u30c3\u30b7\u30f3\u30b0\u306f\u3001VGA \u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304b\u3089\u73fe\u5728\u306e X \u5ea7\u6a19\u3068 Y \u5ea7\u6a19\u306e\u5024\u304c\u51fa\u3066\u304f\u308b\u306e\u3067\u3001X (8 pixels\/character) \u306f\u4e0b\u306e 3 bit \u3092\u5207\u308a\u6368\u3066\u3066\u3001Y (16 pixels \/ character) \u306f\u4e0b\u306e 4bit \u3092\u5207\u308a\u6368\u3066\u3066\u3084\u308c\u3070\u3001\u30ad\u30e3\u30e9\u30af\u30bf\u5ea7\u6a19\u306b\u306a\u308b\u308f\u3051\u3060\u3002\u3057\u304b\u3057\u3001\u3053\u3053\u304b\u3089\u30a2\u30c9\u30ec\u30b9\u306b\u5909\u63db\u3059\u308b\u3068\u3053\u308d\u304c\u5b9f\u306b\u554f\u984c\u3067\u300180 \u3092\u639b\u3051\u308b\u3001\u3068\u3044\u3046\u306e\u306f\u3051\u3063\u3053\u3046\u3057\u3093\u3069\u3044\u3002\u305d\u3053\u3067\u3001text + attribute \u3067\u3001\u4e00\u884c\u3042\u305f\u308a 120 bytes \u3060\u304b\u3089\u3001128bytes \/ line \u3092\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u306b\u3057\u305f\u3002\u3053\u3046\u3059\u308b\u3068\u30014kB \u306e\u30e1\u30e2\u30ea\u306b\u306f 32 \u884c\u5206\u4e57\u308b\u3053\u3068\u306b\u306a\u308a\u300130\u884c\u306e\u753b\u9762\u306b\u306f\u5145\u5206\u3067\u3042\u308b\u3002\u7d50\u5c40\u306e\u3068\u3053\u308d\u3001\u30a2\u30c9\u30ec\u30b9\u8a08\u7b97\u306f\u3001<br \/>\nassign TEXT_A[11:0] = {VGA_Y[9:4], VGA_X[9:3]};<br \/>\n\u307f\u305f\u3044\u306a\u611f\u3058\u3067\u3067\u304d\u308b\u3002Attribute \u306e\u307b\u3046\u306f\u30012 \u6841\u5206\u304c 1 \u30d0\u30a4\u30c8\u3067\u8aad\u3081\u3066\u304f\u308b\u306e\u3067\u3001\u305d\u3053\u306f\u3061\u3087\u3063\u3068\u5de5\u592b\u304c\u5fc5\u8981\u3060\u304c\u3001\u305f\u3044\u3057\u305f\u3053\u3068\u306f\u306a\u3044\u3002<br \/>\nCG \u306f\u3001\u30a2\u30c9\u30ec\u30b9\u306e\u4e0a\u4f4d 7 \u30d3\u30c3\u30c8\u304c\u6587\u5b57\u30b3\u30fc\u30c9\u3067\u3001\u4e0b\u4f4d 4 \u30d3\u30c3\u30c8\u304c Y \u8ef8\u3002<br \/>\n\u3053\u308c\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u3068\u308a\u3042\u3048\u305a\u6587\u5b57\u306e\u8868\u793a\u3068\u304b\u304c FPGA \u5358\u4f53\u3067\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u308f\u3051\u306a\u306e\u3067\u3001\u5b66\u751f\u306e\u6559\u80b2\u7528\u306b UART \u3068 Ethernet \u306e MAC \u304f\u3089\u3044\u306f\u4f5c\u308a\u305f\u3044\u304c\u3001Ethernet MAC \u306f\u5927\u5909\u305d\u3046\u3060\u306a\u3042\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6628\u591c\u4f5c\u308a\u304b\u3051\u305f\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3060\u304c\u3001\u3061\u3087\u3053\u3061\u3087\u3053\u3063\u3068\u30c7\u30d0\u30c3\u30b0\u3057\u3066\u3001\u753b\u9762\u304c\u6620\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002\u3057\u304b\u3057\u3001VGA \u306e\u89e3\u50cf\u5ea6\u306b\u5145\u5206\u306a\u5bb9\u91cf\u306e\u30e1\u30e2\u30ea\u306f (DRAM \u304c\u52d5\u304b\u306a\u3044\u9650\u308a) \u306a\u3044\u306e\u3067\u3001\u3044\u307e\u306e\u3068\u3053\u308d\u9069\u5f53\u306a\u30d1\u30bf\u30fc\u30f3\u3092\u4f5c\u308b\u56de &hellip; <a href=\"https:\/\/yasu2.prosou.nu\/blog\/index.php\/2008\/11\/29\/2200\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;VGA controller \u305d\u306e\u5f8c&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[11,4],"tags":[],"class_list":["post-2200","post","type-post","status-publish","format-standard","hentry","category-11","category-4"],"_links":{"self":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=2200"}],"version-history":[{"count":0,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2200\/revisions"}],"wp:attachment":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=2200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=2200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=2200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}