{"id":31797,"date":"2021-03-08T16:49:06","date_gmt":"2021-03-08T21:49:06","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=31797"},"modified":"2021-03-08T16:49:06","modified_gmt":"2021-03-08T21:49:06","slug":"apple-m1-microarchitecture-research","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2021\/03\/08\/apple-m1-microarchitecture-research\/","title":{"rendered":"Apple M1 Microarchitecture Research"},"content":{"rendered":"<p><a href=\"https:\/\/dougallj.github.io\/applecpu\/firestorm.html\">Dougall Johnson<\/a> (via <a href=\"https:\/\/news.ycombinator.com\/item?id=26375139\">Hacker News<\/a>):<\/p>\n<blockquote cite=\"https:\/\/dougallj.github.io\/applecpu\/firestorm.html\"><p>This is an early attempt at microarchitecture documentation for the CPU in the Apple M1, inspired by and building on the amazing work of <a href=\"https:\/\/uops.info\/\">Andreas Abel<\/a>,\n<a href=\"https:\/\/www.anandtech.com\/show\/16226\/apple-silicon-m1-a14-deep-dive\/2\">Andrei Frumusanu<\/a>, <a href=\"https:\/\/github.com\/Veedrac\/microarchitecturometer\">@Veedrac<\/a>,\n<a href=\"https:\/\/github.com\/travisdowns\/robsize\">Travis Downs<\/a>, <a href=\"http:\/\/blog.stuffedcow.net\/2013\/05\/measuring-rob-capacity\/\">Henry Wong<\/a>\nand <a href=\"https:\/\/agner.org\/optimize\/\">Agner Fog<\/a>. This documentation is my best effort, but it is based on black-box reverse engineering, and there are definitely mistakes.<\/p>\n<p>[&#8230;]<\/p>\n<p>These numbers mostly come from the <a href=\"https:\/\/gist.github.com\/dougallj\/5bafb113492047c865c0c8cfbc930155\">M1 buffer size measuring tool<\/a>.\nThe M1 seems to use something along the lines of a validation buffer, rather than a conventional reorder buffer, which\ncomplicates measurements a bit. So these may or may not be accurate.<\/p>\n<\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2021\/01\/11\/dissecting-the-apple-m1-gpu\/\">Dissecting the Apple M1 GPU<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2020\/11\/11\/the-apple-silicon-m1\/\">The Apple Silicon M1<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Dougall Johnson (via Hacker News): This is an early attempt at microarchitecture documentation for the CPU in the Apple M1, inspired by and building on the amazing work of Andreas Abel, Andrei Frumusanu, @Veedrac, Travis Downs, Henry Wong and Agner Fog. This documentation is my best effort, but it is based on black-box reverse engineering, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2021-03-08T21:49:10Z","apple_news_api_id":"f4eef944-8a50-489b-b520-ae6a9e110cae","apple_news_api_modified_at":"2021-03-08T21:49:10Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/A9O75RIpQSJu1IK5qnhEMrg","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[2014,30,260],"class_list":["post-31797","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-apple-m1","tag-mac","tag-processors"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/31797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=31797"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/31797\/revisions"}],"predecessor-version":[{"id":31798,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/31797\/revisions\/31798"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=31797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=31797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=31797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}