{"id":3062,"date":"2013-04-21T23:17:10","date_gmt":"2013-04-21T14:17:10","guid":{"rendered":"http:\/\/mkusunoki.net\/?p=3062"},"modified":"2013-12-06T21:58:11","modified_gmt":"2013-12-06T12:58:11","slug":"microblaze-mcs-%e3%81%ae%e5%89%b2%e3%82%8a%e8%be%bc%e3%81%bf%e5%88%b6%e5%be%a1%e3%81%ae%e3%82%b3%e3%83%bc%e3%83%87%e3%82%a3%e3%83%b3%e3%82%b0%e3%83%86%e3%82%b9%e3%83%88","status":"publish","type":"post","link":"https:\/\/mkusunoki.net\/?p=3062","title":{"rendered":"Microblaze MCS \u306e\u5272\u308a\u8fbc\u307f\u5236\u5fa1\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30c6\u30b9\u30c8"},"content":{"rendered":"<p>\n\u6628\u65e5\u306f\u3001Microblaze MCS \u306e\u7d44\u307f\u8fbc\u307f\u307e\u3067\u3092\u3084\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u6b21\u306f\u5272\u308a\u8fbc\u307f\u3001\u306a\u306e\u3067\u3059\u304c Xilinx \u3055\u3093\u306e Web \u304b\u3089\u8cc7\u6599\u63a2\u3059\u306e\u306b\u306f\u3044\u3064\u3082\u306e\u3053\u3068\u306a\u304c\u3089\u75b2\u308c\u308b\u306e\u3067\u5fc5\u8981\u6700\u4f4e\u9650\u3060\u3051\u3002\u3068\u308a\u3042\u3048\u305a UG647 Standalone (v.3.09.a), DS865 LogiCORE IP MicroBlaze Micro Controller System \u3092\u898b\u3066\u3084\u308a\u307e\u3057\u305f\u3002\n<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n#include &lt;stdio.h&gt;\r\n#include &quot;platform.h&quot;\r\n#include &quot;mb_interface.h&quot;\r\n\r\n#define GPO01 (*(unsigned char *) 0x80000010)\r\n#define GPI01 (*(unsigned char *) 0x80000020)\r\n#define IRQ_STATUS (*(unsigned int *) 0x80000030)\r\n#define IRQ_PENDING (*(unsigned int *) 0x80000034)\r\n#define IRQ_ENABLE (*(unsigned int *) 0x80000038)\r\n#define IRQ_ACK (*(unsigned int *) 0x8000003C)\r\n\r\nunsigned char i = 0;\r\n\r\nvoid print(char *str);\r\n\r\nvoid int00(void) {\r\n\r\n\tmicroblaze_disable_interrupts();\r\n\tGPO01 = i++;\r\n\tIRQ_ACK = 0x00000080;\r\n\tmicroblaze_enable_interrupts();\r\n}\r\n\r\nint main()\r\n{\r\n    init_platform();\r\n\r\n    microblaze_register_handler((XInterruptHandler)int00,(void*)0);\r\n    IRQ_ENABLE = 0x00000080;\r\n    microblaze_enable_interrupts();\r\n\r\n    while(1) {\r\n    \t;\r\n    }\r\n    return 0;\r\n}\r\n<\/pre>\n<ul>\n<li>coregen \u306e Microblaze \u4f5c\u6210\u3067 FIT1(Fixed Interval Timer 1) \u3092\u30af\u30ed\u30c3\u30af 100MHz, 50000000 \u30ab\u30a6\u30f3\u30c8(0.5\u79d2)\u3057\u3066 FIT1 \u5272\u308a\u8fbc\u307f\u767a\u751f\u3055\u305b\u308b\u3088\u3046\u4f5c\u6210\n<li>Hello world application \u306e\u96db\u5f62\u3092\u4fee\u6b63\u3057\u4e0a\u8a18 C \u306e\u30bd\u30fc\u30b9\u306e\u3088\u3046\u306b\u5272\u308a\u8fbc\u307f\u30eb\u30fc\u30c1\u30f3\u3067\u51fa\u529b\u30dd\u30fc\u30c8\u306b1\u8db3\u3059\n<li>Verilog \u3067\u3001Microblaze MCS \u306e\u51fa\u529b\u30dd\u30fc\u30c8\u3092 Nexys3 \u306e LED \u306b\u95a2\u9023\u4ed8\u3051\u308b\u3002\n<\/ul>\n<p>\n\u3068\u3044\u3046\u52d5\u4f5c\u3092\u3055\u305b\u3066\u3044\u307e\u3059\u3002\u4e0a\u8a18\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3067\u306f\u3001\u8907\u6570\u306e\u5272\u308a\u8fbc\u307f\u767a\u751f\u6642\u306b\u306f int00 \u3067\u5272\u308a\u8fbc\u307f\u30b9\u30c6\u30fc\u30bf\u30b9\u898b\u3066\u51e6\u7406\u3092\u5206\u5c90\u3055\u305b\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u304c\u3001\u5272\u308a\u8fbc\u307f\u306e\u4fe1\u53f7\u6570\u5c11\u306a\u3044\u5834\u5408\u306b\u306f\u6bd4\u8f03\u7684\u66f8\u304d\u3084\u3059\u3044\u306e\u3067\u81ea\u5206\u7528\u306e\u30e1\u30e2\u3067\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6628\u65e5\u306f\u3001Microblaze MCS \u306e\u7d44\u307f\u8fbc\u307f\u307e\u3067\u3092\u3084\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u6b21\u306f\u5272\u308a\u8fbc\u307f\u3001\u306a\u306e\u3067\u3059\u304c Xilinx \u3055\u3093\u306e Web \u304b\u3089\u8cc7\u6599\u63a2\u3059\u306e\u306b\u306f\u3044\u3064\u3082\u306e\u3053\u3068\u306a\u304c\u3089\u75b2\u308c\u308b\u306e\u3067\u5fc5\u8981\u6700\u4f4e\u9650\u3060\u3051\u3002\u3068\u308a\u3042\u3048\u305a UG647 Stan &hellip; <a href=\"https:\/\/mkusunoki.net\/?p=3062\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Microblaze MCS \u306e\u5272\u308a\u8fbc\u307f\u5236\u5fa1\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30c6\u30b9\u30c8&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7],"tags":[221,218,220],"class_list":["post-3062","post","type-post","status-publish","format-standard","hentry","category-kousaku","tag-interrupt","tag-microblaze-mcs","tag-220"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mkusunoki.net\/index.php?rest_route=\/wp\/v2\/posts\/3062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mkusunoki.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mkusunoki.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mkusunoki.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mkusunoki.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3062"}],"version-history":[{"count":0,"href":"https:\/\/mkusunoki.net\/index.php?rest_route=\/wp\/v2\/posts\/3062\/revisions"}],"wp:attachment":[{"href":"https:\/\/mkusunoki.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mkusunoki.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mkusunoki.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}