{"id":16469,"date":"2014-10-05T08:00:22","date_gmt":"2014-10-04T23:00:22","guid":{"rendered":"http:\/\/www.sssg.org\/blogs\/hiro345\/?p=16469"},"modified":"2014-10-04T19:02:48","modified_gmt":"2014-10-04T10:02:48","slug":"4bit-cpu%e3%81%ae%e3%82%a8%e3%83%9f%e3%83%a5%e3%83%ac%e3%83%bc%e3%82%bf%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/16469.html","title":{"rendered":"4bit CPU\u306e\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3092\u4f5c\u3063\u3066\u307f\u305f"},"content":{"rendered":"<p>\u300cCPU\u306e\u5275\u308a\u304b\u305f\u300d\u3068\u3044\u3046\u3001\u3044\u307e\u3084\u4f1d\u8aac\u3001\u3068\u3044\u3063\u3066\u3044\u3044\u304b\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u66f8\u7c4d\u304c\u3042\u3063\u3066\u3001\u305d\u3053\u306b4bit CPU\u3092\u4f5c\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u304c\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u300c<a href=\"http:\/\/toyoshi.hatenablog.com\/entry\/2014\/02\/14\/%E3%80%8CCPU%E3%81%AE%E5%89%B5%E3%82%8A%E3%81%8B%E3%81%9F%E3%80%8D%E3%81%AETD4%E8%A3%BD%E4%BD%9C%E3%81%AB%E5%BF%85%E8%A6%81%E3%81%AA%E9%83%A8%E5%93%81%E3%83%AA%E3%82%B9%E3%83%88\">\u300cCPU\u306e\u5275\u308a\u304b\u305f\u300d\u306eTD4\u88fd\u4f5c\u306b\u5fc5\u8981\u306a\u90e8\u54c1\u30ea\u30b9\u30c8 &#8211; 30 to 30<\/a>\u300d\u3068\u304b\u306b\u90e8\u54c1\u30ea\u30b9\u30c8\u306f\u3042\u308b\u306e\u3067\u3059\u304c\u3001IC\u304c\u306a\u304f\u306a\u3063\u3066\u304d\u3066\u3044\u308b\u305d\u3046\u3067\u3001\u90e8\u54c1\u96c6\u3081\u304b\u3089\u5927\u5909\u305d\u3046\u3067\u3059\u3002\u4e92\u63db\u6a5f\u3092\u4f5c\u3063\u3066\u3044\u308b\u4eba\u3082\u3044\u308b\u307f\u305f\u3044\u3067\u3059\u306d\uff08<a href=\"http:\/\/www.geocities.jp\/team_zero_three\/TD4\/\">TD4 \u4e92\u63db\u6a5f\u306e\u88fd\u4f5c &#8211; Ki\u306e\u7814\u7a76\u90e8\u5c4b<\/a>\uff09\u3002<\/p>\n<p>\u3044\u305a\u308c\u306b\u305b\u3088\u3001\u305d\u306e\u307e\u307e\u96fb\u5b50\u5de5\u4f5c\u3092\u3059\u308b\u306e\u306f\u5927\u5909\u305d\u3046\u3067\u3059\u304c\u3001\u66f8\u3044\u3066\u3042\u308b\u5185\u5bb9\u306f\u9762\u767d\u3044\u306e\u3067\u3001\u305f\u307e\u306b\u8aad\u3093\u3067\u307f\u3066\u3044\u307e\u3059\u3002\u305d\u3053\u306b\u306f\u30014bit CPU\u306e\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3082\u7d39\u4ecb\u3055\u308c\u3066\u3044\u3066\u3001Windows\u3092\u6301\u3063\u3066\u3044\u308b\u3068\u52d5\u304b\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u30024bit\u3050\u3089\u3044\u306a\u3089\u547d\u4ee4\u6570\u3082\u5c11\u306a\u3044\u306e\u3067\u7d50\u69cb\u7c21\u5358\u306b\u4f5c\u308c\u308b\u306e\u3060\u308d\u3046\u306a\u3041\u3001\u3068\u601d\u3063\u3066\u3044\u305f\u3089\u3001\u4e16\u306e\u4e2d\u3067\u306f\u7d50\u69cb\u4f5c\u3063\u3066\u3044\u308b\u4eba\u304c\u3044\u307e\u3057\u305f\u3002JavaScript\u7248\u3082\u3042\u3063\u3066\u3001\u3068\u3066\u3082\u3088\u304f\u3067\u304d\u3066\u3044\u307e\u3059\u3002\u3061\u3087\u3063\u3068\u3046\u307e\u304f\u52d5\u304b\u306a\u3044\u3068\u304d\u3082\u3042\u308b\u3088\u3046\u3067\u3059\u304c&#8230;<a href=\"http:\/\/d.hatena.ne.jp\/masami256\/20091206\/1260082255\">TD4\u306e\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3092\u66f8\u3044\u3066\u307f\u305f\u3002 &#8211; linux\u3068\u304b\u30c6\u30b9\u30c8\u3068\u304b<\/a>\u3001<a href=\"http:\/\/seibe.jp\/td4\/\">TD4 CPU EMULATER<\/a>\u3042\u305f\u308a\u3067\u3059\u306d\u3002<br \/>\n<!--more--><br \/>\n\u3053\u306eCPU\u306f\u3001\u30e1\u30e2\u30ea\u3082\u624b\u4f5c\u308a\u524d\u63d0\u306a\u306e\u30674bit\u306e\u30a2\u30c9\u30ec\u30b9\u7a7a\u9593\u3057\u304b\u7528\u610f\u3057\u3066\u304a\u3089\u305a\u300116\u30d0\u30a4\u30c8\u3068\u975e\u5e38\u306b\u5c0f\u3055\u3044\u306e\u3067\u3001\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3082\u7d50\u69cb\u624b\u8efd\u306b\u4f5c\u308c\u307e\u3059\u3002\u5927\u4eba\u306e\u79d1\u5b66\u306e4\u30d3\u30c3\u30c8\u30de\u30a4\u30b3\u30f3 GMC-4 \u306e\u65b9\u306f\u30e1\u30e2\u30ea\u7a7a\u9593\u304c\u30c7\u30fc\u30bf\uff0f\u30d7\u30ed\u30b0\u30e9\u30e0\u5408\u308f\u305b\u3066\u3082\u7d0440\u30d0\u30a4\u30c8\u3067\u3042\u308b\u3053\u3068\u3092\u8003\u3048\u3066\u3082\u3001\u9a5a\u304d\u306e\u5c11\u306a\u3055\u3067\u3059\u3002\u305d\u306e\u5206\u3001CPU\u306e\u539f\u7406\u304c\u975e\u5e38\u306b\u7406\u89e3\u3057\u3084\u3059\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u624b\u8efd\u306b\u5b9f\u88c5\u3067\u304d\u305d\u3046\u306a\u306e\u3067Java\u3067\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002GUI\u306f\u5c11\u3057\u9762\u5012\u306a\u306e\u3067\u30b3\u30f3\u30bd\u30fc\u30eb\u30a2\u30d7\u30ea\u3067\u7528\u610f\u3057\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u306fJava\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3078\u76f4\u63a5\u57cb\u3081\u8fbc\u3080\u5f62\u306b\u3057\u307e\u3057\u305f\u3002IC\u306a\u3069\u3092\u8868\u73fe\u3059\u308b\u30af\u30e9\u30b9\u3092\u7528\u610f\u3057\u305f\u308a\u306f\u305b\u305a\u306b\u3001\u666e\u901a\u306b\u30b3\u30de\u30f3\u30c9\u306b\u5bfe\u5fdc\u3059\u308b\u51e6\u7406\u3092\u7528\u610f\u3057\u3066\u3001\u30ec\u30b8\u30b9\u30bf\u30fc\u3084\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u306e\u72b6\u614b\u3092\u5909\u66f4\u3059\u308b\u3068\u3044\u3046\u5358\u7d14\u306a\u5b9f\u88c5\u306b\u3057\u3066\u3042\u308a\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306bCPU\u306e\u72b6\u614b\u30921\u30b9\u30c6\u30c3\u30d7\u5b9f\u884c\u3059\u308b\u305f\u3073\u306b\u30b3\u30f3\u30bd\u30fc\u30eb\u3078\u51fa\u529b\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002program_memory\u306e\u914d\u5217\u306b4bit CPU\u7528\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u8a18\u8ff0\u3055\u308c\u3066\u3044\u3066\u3001\u305d\u3053\u306f\u5024\u304c\u5909\u308f\u308a\u307e\u305b\u3093\u3002register_a\u3068\u304b\u3001register_b\u306e\u5024\u304c\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n--------\r\nregister_a     : 1 1 1 1:15\r\nregister_b     : 1 1 1 1:15\r\ncarry_flag     : 0 0 0 0\r\nprogram_counter: 1 1 1 1:15\r\noutput_port    : 0 1 0 1:5\r\ninput_port     : 1 1 1 1:15\r\nclock_generator: 1\r\nprogram_memory:\r\nprogram_memory[00]: 00000001\r\nprogram_memory[01]: 00000010\r\nprogram_memory[02]: 00000011\r\nprogram_memory[03]: 00000100\r\nprogram_memory[04]: 01010001\r\nprogram_memory[05]: 01010010\r\nprogram_memory[06]: 01010011\r\nprogram_memory[07]: 01010100\r\nprogram_memory[08]: 00110100\r\nprogram_memory[09]: 00010000\r\nprogram_memory[10]: 01110001\r\nprogram_memory[11]: 01000000\r\nprogram_memory[12]: 00100000\r\nprogram_memory[13]: 01100000\r\nprogram_memory[14]: 10010000\r\nprogram_memory[15]: 10110101\r\n<\/pre>\n<p>\u30d3\u30c3\u30c8\u306e\u5024\u3092\u8868\u793a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u6b21\u306e\u3088\u3046\u306b\u3057\u3066\u4f5c\u308a\u307e\u3057\u305f\u30024\u30d3\u30c3\u30c8\u7528\u30018\u30d3\u30c3\u30c8\u7528\u306e\u3082\u306e\u3092\u7528\u610f\u3057\u3066\u3042\u308a\u307e\u3059\u3002\u826f\u304f\u63a2\u305b\u3070\u30af\u30e9\u30b9\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u3042\u308a\u305d\u3046\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u8da3\u5473\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306a\u306e\u3067\u3001\u307e\u3041\u81ea\u4f5c\u3067\u3082\u3044\u3044\u304b\u306a\u3068\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\npublic String dump4bitString(int v) {\r\n  return dumpBitString(v, 4);\r\n}\r\npublic String dump8bitString(int v) {\r\n  return dumpBitString(v, 8);\r\n}\r\npublic String dumpBitString(int v, int d) {\r\n  String s = &quot;&quot;;\r\n  for (int i = 0; i &lt; d; i++) {\r\n    int x = v &amp; 0x01;\r\n    s = x + s;\r\n    v = v &gt;&gt; 1;\r\n  }\r\n  return s;\r\n}\r\n<\/pre>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u30b3\u30fc\u30c9\u306e\u5168\u90e8\u306f\u516c\u958b\u306f\u3057\u307e\u305b\u3093\u304c\u3001\u305d\u308c\u307b\u3069\u96e3\u3057\u3044\u51e6\u7406\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u81ea\u4f5c\u306f\u3059\u3050\u306b\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002\u96e3\u3057\u3044\u3068\u601d\u3046\u5834\u5408\u306f\u3001\u3055\u304d\u307b\u3069\u3042\u3052\u305fURL\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002C++\u3067\u5b9f\u88c5\u3057\u3066\u516c\u958b\u3057\u3066\u3044\u308b\u4eba\u3082\u3044\u308b\u3088\u3046\u3067\u3057\u305f\u3002\u305f\u307e\u306b\u306f\u3001\u3053\u3046\u3044\u3046\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3082\u697d\u3057\u3044\u3067\u3059\u306d\uff01<\/p>\n<p>\u3053\u3046\u3044\u3046\u306e\u304c\u597d\u304d\u306a\u4eba\u5411\u3051\u306e\u66f8\u7c4d\u306b\u306f\u4e0b\u8a18\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><a type=\"amzn\" asin=\"4839909865\">CPU\u306e\u5275\u308a\u304b\u305f <\/a><\/li>\n<li><a type=\"amzn\" asin=\"4839919844\">30\u65e5\u3067\u3067\u304d\u308b! OS\u81ea\u4f5c\u5165\u9580 <\/a><\/li>\n<li><a type=\"amzn\" asin=\"4877832394\">12\u30b9\u30c6\u30c3\u30d7\u3067\u4f5c\u308b\u7d44\u8fbc\u307fOS\u81ea\u4f5c\u5165\u9580<\/a><\/li>\n<li><a type=\"amzn\" asin=\"4774153389\">CPU\u81ea\u4f5c\u5165\u9580 ~HDL\u306b\u3088\u308b\u8ad6\u7406\u8a2d\u8a08\u30fb\u57fa\u677f\u88fd\u4f5c\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0~ <\/a><\/li>\n<li><a type=\"amzn\" asin=\"4774138959\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3092\u4f5c\u308b <\/a><\/li>\n<li><a type=\"amzn\" asin=\"4056054711\">\u5927\u4eba\u306e\u79d1\u5b66\u30de\u30ac\u30b8\u30f3 Vol.24 (4\u30d3\u30c3\u30c8\u30de\u30a4\u30b3\u30f3) (Gakken Mook) <\/a><\/li>\n<\/ul>\n<div>\n<iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=4839909865&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=4839919844&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=4877832394&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=4774153389&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=4774138959&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><iframe loading=\"lazy\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&amp;o=9&amp;p=8&amp;l=as1&amp;asins=4056054711&amp;ref=tf_til&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr\" height=\"240\" width=\"320\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u300cCPU\u306e\u5275\u308a\u304b\u305f\u300d\u3068\u3044\u3046\u3001\u3044\u307e\u3084\u4f1d\u8aac\u3001\u3068\u3044\u3063\u3066\u3044\u3044\u304b\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u66f8\u7c4d\u304c\u3042\u3063\u3066\u3001\u305d\u3053\u306b4bit CPU\u3092\u4f5c\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u304c\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u300c\u300cCPU\u306e\u5275\u308a\u304b\u305f\u300d\u306eTD4\u88fd\u4f5c\u306b\u5fc5\u8981\u306a\u90e8\u54c1\u30ea\u30b9\u30c8 &#8211; 30  &hellip; <a href=\"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/16469.html\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1099],"class_list":["post-16469","post","type-post","status-publish","format-standard","hentry","category-general","tag-td4"],"_links":{"self":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/16469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/comments?post=16469"}],"version-history":[{"count":1,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/16469\/revisions"}],"predecessor-version":[{"id":16470,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/16469\/revisions\/16470"}],"wp:attachment":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/media?parent=16469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/categories?post=16469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/tags?post=16469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}