Zen is the codename for a computer processor microarchitecture from AMD, and was first used with their Ryzen series of CPUs in February 2017. 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 codenamed "Summit Ridge" reached the market in early March 2017, Zen-derived Epyc server processors launched in June 2017 and Zen-based APUs arrived in November 2017. Zen is a clean sheet design that differs from the long-standing Bulldozer architecture. Zen-based processors use a 14 nm FinFET process, are reportedly more energy efficient, and can execute significantly more instructions per cycle. SMT has been introduced, allowing each core to run two threads. The cache system has also been redesigned, making the L1 cache write-back. Zen processors use three different sockets: desktop and mobile Ryzen chips use the AM4 socket, bringing DDR4 support; the high-end desktop Zen-based Threadripper chips support quad-channel DDR4 RAM and offer 64 PCIe 3.0 lanes (vs 24 lanes), using the TR4 socket; and Epyc server processors offer 128 PCI 3.0 lanes and octal-channel DDR4 using the SP3 socket. But not all Socket AM4 CPUs are based on Zen microarchitecture (the 7th gen APUs and Athlon X4s are based on Excavator microarchitecture). Zen is based on a SoC design. The memory, PCIe, SATA, and USB controllers are incorporated into the same chip as the processor cores. This has advantages in bandwidth and power, at the expense of chip complexity and die area. This SoC design allows the Zen microarchitecture to scale from laptops and small-form factor mini PCs to high-end desktops and servers.
According to AMD, the main focus of Zen is on increasing per-core performance.[1][2][3] New or improved features include:[4]
“ | This is the first time in a very long time that we engineers have been given the total freedom to build a processor from scratch and do the best we can do. It is a multi-year project with a really large team. It's like a marathon effort with some sprints in the middle. The team is working very hard, but they can see the finish line. I guarantee that it will deliver a huge improvement in performance and power consumption over the previous generation. | ” |
— Suzanne Plummer, Zen team leader, on September 19th, 2015.[17] |
The Zen architecture is built on a 14 nanometer FinFET process subcontracted to GlobalFoundries,[18] which in turn licenses its 14 nm process from Samsung Electronics.[19] This gives greater efficiency than the 32 nm and 28 nm processes of previous AMD FX CPUs and AMD APUs, respectively.[20] The "Summit Ridge" Zen family of CPUs use the AM4 socket and feature DDR4 support and a 95 W TDP (thermal design power).[20] While newer roadmaps don't confirm the TDP for desktop products, they suggest a range for low-power mobile products with up to two Zen cores from 5 to 15 W and 15 to 35 W for performance-oriented mobile products with up to four Zen cores.[21]
Each Zen core can decode four instructions per clock cycle and includes a micro-op cache which feeds two schedulers, one each for the integer and floating point segments.[22][23] Each core has two address generation units, four integer units, and four floating point units. Two of the floating point units are adders, and two are multiply-adders. However, using multiply-add-operations may prevent simultaneous add operation in one of the adder units.[24] There are also improvements in the branch predictor. The L1 cache size is 64 KiB for instructions per core and 32 KiB for data per core. The L2 cache size 512 KiB per core, and the L3 is 1–2 MB per core. L3 caches offer 5× the bandwidth of previous AMD designs.
AMD began planning the Zen microarchitecture shortly after re-hiring Jim Keller in August 2012.[25] AMD formally revealed Zen in 2015.
The team in charge of Zen was led by Keller (who left in September 2015 after a 3-year tenure) and Zen Team Leader Suzanne Plummer.[26][27] The Chief Architect of Zen was AMD Senior Fellow Michael Clark.[28][29][30]
Zen was originally planned for 2017 following the ARM64-based K12 sister core, but on AMD's 2015 Financial Analyst Day it was revealed that K12 was delayed in favor of the Zen design, to allow it to enter the market within the 2016 timeframe,[31] with the release of the first Zen-based processors expected for October 2016.[32]
In November 2015, a source inside AMD reported that Zen microprocessors had been tested and "met all expectations" with "no significant bottlenecks found".[33][34]
In December 2015, it was rumored that Samsung may have been contracted as a fabricator for AMD's 14 nm FinFET processors, including both Zen and AMD's then-upcoming Polaris GPU architecture.[35] This was clarified by AMD's July 2016 announcement that products had been successfully produced on Samsung's 14 nm FinFET process.[36] AMD stated Samsung would be used "if needed", arguing this would reduce risk for AMD by decreasing dependence on any one foundry.
In December 2019, AMD started putting out first generation Ryzen products built using the second generation Zen+ architecture.[37]
Processors based on Zen use 14 nm FinFET silicon.[38] These processors are reportedly produced at GlobalFoundries[39] Prior to Zen, AMD's smallest process size was 28 nm, as utilized by their Steamroller and Excavator microarchitectures.[40][41] The immediate competition, Intel's Skylake and Kaby Lake microarchitecture, are also fabricated on 14 nm FinFET;[42] though Intel planned to begin the release of 10 nm parts later in 2017.[43] In comparison to Intel's 14 nm FinFET, AMD claimed in February 2017 the Zen cores would be 10% smaller.[44] Intel has later announced in July 2018 that 10nm mainstream processors should not be expected before the second half of 2019.[45]
For identical designs, these die shrinks would use less current (and power) at the same frequency (or voltage). As CPUs are usually power limited (typically up to ~125 W, or ~45 W for mobile), smaller transistors allow for either lower power at the same frequency, or higher frequency at the same power.[46]
One of Zen's major goals in 2016 was to focus on performance per-core, and it was targeting a 40% improvement in instructions per cycle (IPC) over its predecessor.[47] Excavator, in comparison, offered 4–15% improvement over previous architectures.[48][49] AMD announced the final Zen microarchitecture actually achieved 52% improvement in IPC over Excavator.[50] The inclusion of SMT also allows each core to process up to two threads, increasing processing throughput by better use of available resources.
The Zen processors also employ sensors across the chip to dynamically scale frequency and voltage.[51] This allows for the maximum frequency to be dynamically and automatically defined by the processor itself based upon available cooling.
AMD has demonstrated an 8-core/16-thread Zen processor outperforming an equally-clocked Intel Broadwell-E processor in Blender rendering[52][53] and HandBrake benchmarks.[51]
Zen supports AVX2 but it requires two clock cycles to complete each AVX2 instruction compared to Intel's one.[54][55]
Zen supports DDR4 memory (up to eight channels)[56] and ECC.[57]
Pre-release reports stated APUs using the Zen architecture would also support High Bandwidth Memory (HBM).[58] However, the first demonstrated APU did not use HBM.[59] Previous APUs from AMD relied on shared memory for both the GPU and the CPU.
Processors built at the 14 nm node on FinFET silicon should show reduced power consumption and therefore heat over their 28 nm and 32 nm non-FinFET predecessors (for equivalent designs), or be more computationally powerful at equivalent heat output/power consumption.
Zen also uses clock gating,[23] reducing the frequency of underutilized portions of the core to save power. This comes from AMD's SenseMI technology, using sensors across the chip to dynamically scale frequency and voltage.[51]
Zen added support for AMD's Secure Memory Encryption (SME) and AMD's Secure Encrypted Virtualization (SEV). Secure Memory Encryption is real-time memory encryption done per page table entry. Encryption occurs on a hardware AES engine and keys are managed by the onboard "Security" Processor (ARM Cortex-A5) at boot time to encrypt each page, allowing any DDR4 memory (including non-volatile varieties) to be encrypted. AMD SME also makes the contents of the memory more resistant to memory snooping and cold boot attacks.[60][61]
“ | SME can be used to mark individual pages of memory as encrypted through the page tables. A page of memory that is marked encrypted will be automatically decrypted when read from DRAM and will be automatically encrypted when written to DRAM. The SME feature is identified through a CPUID function and enabled through the SYSCFG MSR. Once enabled, page table entries will determine how the memory is accessed. If a page table entry has the memory encryption mask set, then that memory will be accessed as encrypted memory. The memory encryption mask (as well as other related information) is determined from settings returned through the same CPUID function that identifies the presence of the feature. | ” |
[62]
The Secure Encrypted Virtualization (SEV) feature allows the memory contents of a virtual machine (VM) to be transparently encrypted with a key unique to the guest VM. The memory controller contains a high-performance encryption engine which can be programmed with multiple keys for use by different VMs in the system. The programming and management of these keys is handled by the AMD Secure Processor firmware which exposes an API for these tasks.[63]
Incorporating much of the southbridge into the SoC, the Zen CPU includes SATA, USB, and PCI Express NVMe links.[64][65] This can be augmented by available Socket AM4 chipsets which add connectivity options including additional SATA and USB connections, and support for AMD's Crossfire and Nvidia's SLI.[66]
AMD, in announcing its Radeon Instinct line, argued that the upcoming Zen-based Naples server CPU would be particularly suited for building deep learning systems.[67][68] The 128[69] PCIe lanes per Naples CPU allows for eight Instinct cards to connect at PCIe x16 to a single CPU. This compares favorably to the Intel Xeon line, with only 40 PCIe lanes.
The Zen architecture is used in the current-generation desktop Ryzen CPUs. It is also in Epyc server processors (successor of Opteron processors), and APUs.[58][70][71]
The first desktop processors without graphics processing units (codenamed "Summit Ridge") were initially expected to start selling at the end of 2016, according to an AMD roadmap; with the first mobile and desktop processors of the AMD Accelerated Processing Unit type (codenamed "Raven Ridge") following in late 2017.[72] AMD officially delayed Zen until Q1 of 2017. In August 2016, an early demonstration of the architecture showed an 8-core/16-thread engineering sample CPU at 3.0 GHz.[53]
In December 2016, AMD officially announced the desktop CPU line under the Ryzen brand for release in Q1 2017. It also confirmed Server processors would be released in Q2 2017, and mobile APUs in H2 2017.[73]
On March 2, 2017, AMD officially launched the first Zen architecture-based octacore Ryzen desktop CPUs. The final clock speeds and TDPs for the 3 CPUs released in Q1 of 2017 demonstrated significant performance-per-watt benefits over the previous K15h (Piledriver) architecture.[74][75] The octacore Ryzen desktop CPUs demonstrated performance-per-watt comparable to Intel's Broadwell octacore CPUs.[76][77]
In March 2017, AMD also demonstrated an engineering sample of a server CPU based on the Zen architecture. The CPU (codenamed "Naples") was configured as a dual-socket server platform with each CPU having 32 cores/64 threads.[52][53]
First Generation of Ryzen processors (Ryzen 1000 series)
Ryzen APUs are identified by either the G or GE suffix in their name.
Model | Release date |
CPU | GPU | Memory support | TDP | Part number | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Cores (threads) |
Clock rate (GHz) | Cache[78] | Model | Config[79] | Clock | Processing power (GFLOPS)[80] |
||||||||
Base | Boost | L1 | L2 | L3 | ||||||||||
Athlon Pro 200U [81] | 2019 | 2 (4) | 2.3 | 3.2 | 64 KB inst. 32 KB data per core |
512 KB per core |
4 MB | Vega 3 | 192:12:4 3 CU |
1000 MHz | 384 | DDR4-2400 dual-channel |
12–25W | YM200UC4T2OFB |
Athlon 300U [82] | January 6, 2019 | 2.4 | 3.3 | YM300UC4T2OFG | ||||||||||
Ryzen 3 2200U [83] | January 8, 2018 | 2.5 | 3.4 | 1100 MHz | 422.4 | YM2200C4T2OFB | ||||||||
Ryzen 3 3200U [84] | January 6, 2019 | 2.6 | 3.5 | 1200 MHz | 460.8 | YM3200C4T2OFG | ||||||||
Ryzen 3 2300U [85] | January 8, 2018 | 4 (4) | 2.0 | 3.4 | Vega 6 | 384:24:8 6 CU |
1100 MHz | 844.8 | YM2300C4T4MFB | |||||
Ryzen 3 Pro 2300U [86] | May 15, 2018 | YM230BC4T4MFB | ||||||||||||
Ryzen 5 2500U [87] | October 26, 2017 | 4 (8) | 3.6 | Vega 8 | 512:32:16 8 CU |
1126.4 | YM2500C4T4MFB | |||||||
Ryzen 5 Pro 2500U [88] | May 15, 2018 | YM250BC4T4MFB | ||||||||||||
Ryzen 5 2600H [89] | September 10, 2018 | 3.2 | DDR4-3200 dual-channel |
35–54W | YM2600C3T4MFB | |||||||||
Ryzen 7 2700U [90] | October 26, 2017 | 2.2 | 3.8 | Vega 10 | 640:40:16 10 CU |
1300 MHz | 1664 | DDR4-2400 dual-channel |
12–25W | YM2700C4T4MFB | ||||
Ryzen 7 Pro 2700U [91] | May 15, 2018 | YM270BC4T4MFB | ||||||||||||
Ryzen 7 2800H [92] | September 10, 2018 | 3.3 | Vega 11 | 704:44:16 11 CU |
1830.4 | DDR4-3200 dual-channel |
35–54W | YM2800C3T4MFB |
In February 2018, AMD announced the V1000 series of embedded Zen+Vega APUs with four SKUs.[94]
AMD announced in March 2017 that it would release a server platform based on Zen, codenamed Naples, in the second quarter of the year. The platform include 1- and 2-socket systems. The CPUs in multi-processor configurations communicate via AMD's Infinity Fabric.[95] Each chip supports eight channels of memory and 128 PCIe 3.0 lanes, of which 64 lanes are used for CPU-to-CPU communication through Infinity Fabric when installed in a dual-processor configuration.[96] AMD officially revealed Naples under the brand name Epyc in May 2017.[97]
On June 20, 2017, AMD officially released the Epyc 7000 series CPUs at a launch event in Austin, Texas.[98]
In February 2018, AMD also announced the EPYC 3000 series of embedded Zen CPUs.[99]
The content is sourced from: https://handwiki.org/wiki/Engineering:Zen_(microarchitecture)