Zen (microarchitecture) explained

Zen is a family of computer processor microarchitectures from AMD, first launched in February 2017 with the first generation of its Ryzen CPUs. It is used in Ryzen (desktop and mobile), Ryzen Threadripper (workstation and high end desktop), and Epyc (server).

Comparison

Microarchitecture! colspan="2"
Zen[1] Zen 2[2] Zen 3[3] Zen 4[4] Zen 5[5]
Microarchitecture variantsZenZen+[6] Zen 3Zen 3+Zen 4Zen 4c[7] Zen 5Zen 5c
Fabrication process (nm)14 nm12 nm7 nm6 nm5 nm4 nm3 nm
Cacheμop2K4K6.75K
L1DataSize32 KB48 KB
Ways48
Latency4–8
InstructionSize64 KB32 KB
Ways8
Latency4–8
TLB512-entry1024-entry
L2Size512 KB/core1024 KB/core
Ways8
Latency171214
TLB1536-entry2048-entry3072-entry
L3Size (per CCX)8 MB16 MB32 MB32 MB16 MB32 MB16 MB
Ways16[8]
Latency35404650
Max. CPU cores3264896[9] 128[10] 128192
Simultaneous multithreading (SMT)colspan="9"
OoO window (ROB)192224256320
Pipelinestage19
Decode (ways)46[11]
SchedulerEntries
Dispatch6
Register fileInteger849296224[12]
Floating-point96160192
QueueInstruction72
Allocation44
AGUs23

History

First generation

See main article: Zen (first generation). The first generation Zen was launched with the Ryzen 1000 series of CPUs (codenamed Summit Ridge) in February 2017.[13] The first Zen-based preview system was demonstrated at E3 2016, and first substantially detailed at an event hosted a block away from the Intel Developer Forum 2016. The first Zen-based CPUs reached the market in early March 2017, and Zen-derived Epyc server processors (codenamed "Naples") launched in June 2017[14] and Zen-based APUs (codenamed "Raven Ridge") arrived in November 2017.[15] This first iteration of Zen utilized GlobalFoundries' 14 nm manufacturing process.[16] Modified Zen-based processors for the Chinese market were also built under the AMD–Chinese joint venture.

First generation refresh

See main article: Zen+. Zen+ was first released in April 2018,[17] powering the second generation of Ryzen processors, known as Ryzen 2000 (codenamed "Pinnacle Ridge") for mainstream desktop systems, and Threadripper 2000 (codenamed "Colfax") for high-end desktop setups. Zen+ used GlobalFoundries' 12 nm process, an enhanced version of their 14 nm node.[18] [19]

Second generation

See main article: Zen 2. The Ryzen 3000 series CPUs were released on July 7, 2019,[20] [21] while the Zen 2-based Epyc server CPUs (codename "Rome") were released on August 7, 2019.[22] Zen 2 Matisse products were the first consumer CPUs to use the 7 nm process node, from TSMC.[23] Zen 2 introduced the chiplet based architecture, where desktop, workstation, and server CPUs are all produced as multi-chip modules (MCMs); these Zen 2 products utilise the same core chiplets but are attached to different uncore silicon (different IO dies) in a hub and spoke topology. This approach differs from Zen 1 products, where the same die (Zeppelin) is used in a simple monolithic package for Summit Ridge products (Ryzen 1000 series) or used as interconnected building blocks in an MCM (up to four Zeppelin dies) for first generation Epyc and Threadripper products.[24] For earlier Zen 2 products the IO and uncore functions are performed within this separate IO die,[25] which contains the memory controllers, the fabric to enable core to core communication, and the bulk of uncore functions. The IO die used by Matisse processors is a small chip produced on GF 12 nm,[26] whereas the server IO die utilized for Threadripper and Epyc is far larger.[26] The server IO die is able to serve as a hub to connect up to eight 8-core chiplets, while the IO die for Matisse is able to connect up to two 8-core chiplets. These chiplets are linked by AMD's own second generation Infinity Fabric,[26] allowing a low-latency interconnect between the cores and to IO. The processing cores in the chiplets are organized in CCXs (Core Complexes) of four cores, linked together to form a single eight core CCD (Core Chiplet Die).[27]

Zen 2 also powers a line of mobile and desktop APUs marketed as Ryzen 4000, as well as fourth generation Xbox consoles and the PlayStation 5. The Zen 2 core microarchitecture is also used in the Mendocino APU, a 6 nm system on a chip aimed at mainstream mobile and other energy efficient low power computing products.[28]

Third generation

See main article: Zen 3. Zen 3 was released on November 5, 2020,[29] using a more matured 7 nm manufacturing process, powering Ryzen 5000 series CPUs and APUs (codename "Vermeer" (CPU) and "Cézanne" (APU)) and Epyc processors (codename "Milan"). Zen 3's main performance gain over Zen 2 is the introduction of a unified CCX, which means that each core chiplet is now composed of eight cores with access to 32 MB of L3 cache, instead of two sets of four cores with access to 16 MB of L3 cache each.[30]

On April 1, 2022, AMD released the new Ryzen 6000 series for the laptop, using an improved Zen 3+ architecture, bringing RDNA 2 graphics integrated in a APU to the PC for the first time.[31]

Zen 3 with 3D V-Cache was officially previewed on May 31, 2021. It differs from Zen 3 in that it includes 3D-stacked L3 cache on top of the normal L3 cache in the CCD, providing a total of 96 MB. The first product that uses it, the Ryzen 7 5800X3D, was released on April 20, 2022. The added cache brings an approximately 15% performance increase in gaming applications on average.[32]

Zen 3 with 3D V-Cache for server, codenamed Milan-X, was announced in AMD's Accelerated Data Center Premiere Keynote on November 8, 2021. It brings a 50% increase in select datacenter applications over Zen 3's Milan CPUs while maintaining socket compatibility with them. Milan-X was released on March 21, 2022.[33]

Fourth generation

See main article: Zen 4. Epyc server CPUs with Zen 4, codenamed Genoa, were officially unveiled at AMD's Accelerated Data Center Premiere Keynote on November 8, 2021,[34] and released a year later in November 2022.[35] They have up to 96 Zen 4 cores and support both PCIe 5.0 and DDR5.

Furthermore, Zen 4 Cloud (a variant of Zen 4), abbreviated to Zen 4c, was also announced. Zen 4c is designed to have significantly greater density than standard Zen 4 while delivering greater power efficiency. This is achieved by redesigning Zen 4's core and cache to maximise density and compute throughput. It has 50% less L3 cache than Zen 4 and is not able to clock as high. Bergamo (Epyc 9704 series) has up to 128 Zen 4c cores and is socket-compatible with Genoa. It was released in June 2023.[36] Another server product line that uses Zen 4c cores is Siena (Epyc 8004 series), which has up to 64 cores, uses a different smaller socket and is intended for use cases that favour smaller size, cost, power and thermal footprints over high performance.[37]

Both Zen 4 and Zen 4 Cloud are manufactured on TSMC's 5 nm node.

In addition to the Epyc 9004, 9704 and 8004 server processors (Genoa, Bergamo and Siena respectively), Zen 4 also powers Ryzen 7000 mainstream desktop processors (codenamed "Raphael"),[38] high-end mobile processors (codenamed "Dragon Range") and thin-and-light mobile processors (codenamed "Phoenix").[39] It also powers the Ryzen 8000 G-series of desktop APUs.[40]

Fifth generation

See main article: Zen 5. Zen 5 was shown on AMD's Zen roadmap in May 2022.[41] It is believed to use TSMC's 4 nm and 3nm processes.[42] It will power Ryzen 9000 mainstream desktop processors (codenamed "Granite Ridge"), high-end mobile processors (codenamed "Strix Point"), and Epyc 9005 server processors (codenamed "Turin").

Zen 5c is a compact variant of the Zen 5 core, primarily targeted at hyperscale cloud compute server customers.[43]

Sinkclose vulnerability

On August 9, 2024 a vulnerability termed "Sinkclose" was announced affecting all Zen-based processors to that date. Sinkclose affects the System Management Mode (SMM). It can only be exploited by first compromising the operating system kernel. Once effected, it is possible to avoid detection by antivirus software and even compromise a system after the operating system has been re-installed. AMD followed up with patches to be released on August 20, 2024.[44] [45] [46]

Notes and References

  1. Web site: Zen - Microarchitectures - AMD. September 16, 2021. WikiChip. en.
  2. Web site: Zen 2 - Microarchitectures - AMD. September 16, 2021. WikiChip. en.
  3. Web site: Zen 3 - Microarchitectures - AMD. September 16, 2021. WikiChip. en.
  4. Web site: Zen 4 - Microarchitectures - AMD. October 10, 2022. WikiChip. en.
  5. Web site: Zen 5 - Microarchitectures - AMD - WikiChip . 2024-07-08 . en.wikichip.org . en.
  6. Web site: Zen+ - Microarchitectures - AMD . October 10, 2022. WikiChip. en.
  7. Web site: btarunr . June 14, 2023 . AMD Zen 4c Not an E-core, 35% Smaller than Zen 4, but with Identical IPC . January 14, 2024 . TechPowerUp.
  8. Web site: AMD Ryzen 7 5800H Mobile processor - 100-000000295. September 17, 2021. CPU-World.
  9. Web site: Bonshor . Gavin . June 9, 2022 . AMD Announces Genoa-X: 4th Gen EPYC with Up to 96 Zen 4 Cores and 1GB L3 V-Cache . October 10, 2022 . AnandTech.
  10. Web site: Smith . Ryan . Bonshor . Gavin . November 2, 2023 . AMD Unveils Ryzen Mobile 7040U Series with Zen 4c: Smaller Cores, Bigger Efficiency . January 14, 2024 . AnandTech.
  11. Web site: Cutress . Ian . November 5, 2020 . AMD Zen 3 Ryzen Deep Dive Review: 5950X, 5900X, 5800X and 5600X Tested . November 15, 2021 . AnandTech.
  12. Web site: AMD's Zen 4 Part 1: Frontend and Execution Engine .
  13. News: Anthony . Sebastian . 2016-08-18 . AMD says Zen CPU will outperform Intel Broadwell-E, delays release to 2017 . Ars Technica . 2016-08-18.
  14. Web site: Cutress . Ian . 2017-06-20 . AMD's Future in Servers: New 7000-Series CPUs Launched and EPYC Analysis . 2017-08-08 . AnandTech.
  15. Web site: HP ENVY x360 Convertible Laptop - 15z touch . HP Official Store.
  16. Web site: Lilly. Paul. 2016-07-23. AMD Shipping Zen In Limited Quantity Q4, Volume Rollout Ramps Q1 2017. live. https://web.archive.org/web/20190421060847/https://hothardware.com/news/amd-shipping-zen-in-limited-volumes-q4. 2019-04-21. 2020-10-21. HotHardware. en-us.
  17. News: Bright. Peter. AMD's 2018 roadmap: Desktop APUs in February, second-generation Ryzen in April. 9 January 2018. Ars Technica. 8 January 2018.
  18. Web site: Cutress. Ian. The AMD 2nd Gen Ryzen Deep Dive: The 2700X, 2700, 2600X, and 2600 Tested. 2020-10-21. Anandtech.
  19. Web site: Hruska. Joel. 2017-09-22. AMD Will Use 'New' GlobalFoundries 12nm Node for Future CPUs, GPUs . ExtremeTech. 2020-10-21.
  20. Web site: AMD Ryzen 9 3900X and Ryzen 7 3700X Review: Old Ryzen Owners Look Away Now. Leather. Antony. Forbes. en. 2019-09-19.
  21. Web site: AMD Ryzen 3000 CPUs launching July 7 with up to 12 cores. PCGamesN. en-GB. 2019-05-28.
  22. Web site: 2nd Gen AMD EPYC™ Processors Set New Standard for the Modern Datacenter with Record-Breaking Performance and Significant TCO Savings. August 7, 2019. AMD. August 8, 2019.
  23. Web site: January 2020. Bill Thomas 15. AMD Zen 2 specs, price and release date: all about AMD's newest processor tech. 2020-10-21. TechRadar. January 15, 2020 . en.
  24. Web site: Naples Zeppelin vs. Rome Chiplet (subsection) .
  25. Web site: btarunr. June 12, 2019. AMD Ryzen 3000 'Matisse' I/O Controller Die 12nm, Not 14nm . 2020-10-21 . TechPowerUp . en.
  26. Web site: Cutress . Ian . 2019-06-10 . AMD Zen 2 Microarchitecture Analysis: Ryzen 3000 and EPYC Rome . 2020-10-21 . AnandTech.
  27. Web site: September 2019. Scharon Harding 14. What Is an AMD CCX? A Basic Definition. 2020-10-21. Tom's Hardware. September 14, 2019 . en.
  28. Web site: Hachman . Mark . 2022-09-20 . AMD Ryzen 7020 'Mendocino' CPUs want low-cost laptops to last all day long . 2024-04-21 . PCWorld . en.
  29. Web site: Ridley. Jacob. 2020-10-08. AMD Ryzen 5000 – Zen 3 CPU release date, specs, pricing, and performance. 2020-10-20. PC Gamer. en-US.
  30. Web site: AMD's Zen 3 Drops November 5 With Major IPC Enhancements -. ExtremeTech. 2020-10-21.
  31. AMD Unveils New Ryzen Mobile Processors Uniting "Zen 3+" core with AMD RDNA 2 Graphics in Powerhouse Design . AMD . en-US . Santa Clara, CA . January 4, 2022 . May 27, 2022.
  32. Web site: Ryzen 7 5800X3D vs. Ryzen 7 5800X: Zen 3 Gaming Shootout . 2022-07-11 . TechSpot . en-US.
  33. Web site: WhyCry . AMD EPYC 7003 'Milan-X' launches March 21st, specs and pricing leaked . 2022-07-11 . VideoCardz.com . en-US.
  34. Web site: Hertz . Jake . AMD Teases More Data Center Processors at 2021 Accelerated Data Center Premiere . All About Circuits . 6 June 2023 . 15 November 2021.
  35. Web site: AMD Launches 4th Gen EPYC "Genoa" Zen 4 Server Processors: 100% Performance Uplift for 50% More Cores . TechPowerUp . 6 June 2023 . 11 November 2022.
  36. Web site: Smith . Ryan . 2023-06-13 . AMD Intros EPYC 97x4 “Bergamo” CPUs: 128 Zen 4c CPU Cores For Servers, Shipping Now . 2024-04-21 . AnandTech.
  37. Web site: Norem . Josh . 2023-09-18 . AMD Unveils Final 4th Gen Epyc CPU Code-Named Siena . 2024-04-22 . ExtremeTech.
  38. Web site: Alcorn . Paul . 2022-11-23 . AMD Zen 4 Ryzen 7000 Specs, Release Date, Benchmarks, Price Listings . 2024-04-21 . Tom's Hardware . en.
  39. Web site: Burek . John . 2023-01-05 . 'Phoenix' and 'Dragon Range' Arrive! AMD Outlines Ryzen 7000 Mobile CPUs, Some With Onboard ‘Ryzen AI’ . 2024-04-21 . PCMag Australia . en-au.
  40. Web site: Cunningham . Andrew . 2024-01-29 . Ryzen 8000G review: An integrated GPU that can beat a graphics card, for a price . 2024-04-21 . Ars Technica . en-us.
  41. News: AMD confirms Zen4 & Ryzen 7000 series lineup: Raphael in 2022, Dragon Range and Phoenix in 2023. May 3, 2022. VideoCardz.com.
  42. Web site: Norem . Josh . 2024-02-21 . Report: AMD's Zen 5 Architecture Is Starting Volume Production in Q3 . 2024-04-22 . ExtremeTech.
  43. Web site: Smith . Ryan . June 9, 2022 . AMD Zen Architecture Roadmap: Zen 5 in 2024 With All-New Microarchitecture . AnandTech . en-US . December 11, 2022.
  44. Web site: AMD's 'Sinkclose' vulnerability affects hundreds of millions of processors, enables data theft — AMD begins patching issue in critical chip lines, more to follow. Anton Shilov. August 9, 2024. Tom's Hardware.
  45. Web site: Millions of AMD CPUs found vulnerable to 18-year-old 'Sinkclose' deep-system flaw but it's pretty difficult to exploit. Andy Edser. August 12, 2024. PC Gamer.
  46. Web site: Ryzen 3000 fix for 'Sinkclose' vulnerability arrives tomorrow — AMD reverses course and will patch Ryzen 3000 after all. Aaron Klotz. August 19, 2024. Tom's Hardware.