ArticleslgStudy

computer science

Zen 4

Zen 4 is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Zen 4 rather than just read about it. In short: Zen 4 is the name for a CPU microarchitecture designed by AMD, released on September 27, 2022. It is the successor to Zen 3 and uses TSMC's N6 process for I/O dies, N5 process for CCDs, and N4 process for APUs.

Zen 4 — main illustration
Zen 4 — illustration

Key takeaways

  • Zen 4 belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Zen 4 to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Zen 4 from memory before moving on to harder problems.

Reference excerpt

Zen 4 is the name for a CPU microarchitecture designed by AMD, released on September 27, 2022. It is the successor to Zen 3 and uses TSMC's N6 process for I/O dies, N5 process for CCDs, and N4 process for APUs. Zen 4 powers Ryzen 7000 performance desktop processors (codenamed "Raphael"), Ryzen 8000G series mainstream desktop APUs (codenamed "Phoenix"), and Ryzen Threadripper 7000 series HEDT and workstation processors (codenamed "Storm Peak"). It is also used in extreme mobile processors (codenamed "Dragon Range"), thin & light mobile processors (codenamed "Phoenix" and "Hawk Point"), as well as EPYC 8004/9004 server processors (codenamed "Siena", "Genoa" and "Bergamo"). Zen 4 is the first microarchitecture whose chips (Ryzen 7000) use the AM5 motherboard socket.

Features Like its predecessor, Zen 4 in its Desktop Ryzen variants features one or two Core Complex Dies (CCDs) built on TSMC's 5 nm process and one I/O die built on 6 nm. Previously, the I/O die on Zen 3 was built on GlobalFoundries' 14 nm process for EPYC and 12 nm process for Ryzen. Zen 4's I/O die includes integrated RDNA 2 graphics for the first time on any Zen architecture. Zen 4 marks the first utilization of the 5 nm process for x86-based desktop processors and also marks the return of 5.0 GHz clock rate to any AMD processors for the first time since the AMD FX-9590. On all platforms, Zen 4 supports only DDR5 memory and LPDDR5X in mobile, with support for DDR4 and LPDDR4X dropped. Additionally, Zen 4 supports new AMD EXPO SPD profiles for more comprehensive memory tuning and overclocking by the RAM manufacturers. Unlike Intel's XMP, EXPO is marketed as an open, license- and royalty-free standard for describing memory kit parameters, such as operating frequency, timings and voltages. It allows to encode a wider set of timings to achieve better performance and compatibility. However, XMP memory profiles are still supported. EXPO can also support Intel processors. All Zen 4 Ryzen desktop processors feature 28 (24 usable + 4 reserved) PCI Express 5.0 lanes. This means that a discrete GPU can be connected by 16 PCIe lanes or two GPUs by 8 PCIe lanes each. Additionally, there are now 2 x 4 lane PCIe interfaces, most often used for M.2 storage devices. Whether the lanes connecting the GPUs in the mechanical x16 slots are executed as PCIe 4.0 or PCIe 5.0 can be configured by the mainboard manufacturers. Finally, 4 PCIe 5.0 lanes are reserved for connecting the south bridge chip or chipset. Zen 4 is the first AMD microarchitecture to support AVX-512 instruction set extensions. 512-bit vector instructions are split in two and executed by the 256-bit SIMD execution units internally. The two halves execute in parallel on a pair of execution units and are still tracked as a single micro-OP (except for stores), which means the execution latency isn't doubled compared to 256-bit vector instructions. There are four 256-bit execution units, which gives a maximum throughput of two 512-bit vector instructions per clock cycle, e.g. one multiplication and one addition. The maximum number of instructions per clock cycle is doubled for vectors of 256 bits or less. Load and store units are also 256 bits each, retaining the throughput of up to two 256-bit loads or one store per cycle that was supported by Zen 3. This translates to up to one 512-bit load per cycle or one 512-bit store per two cycles. Other features and improvements, compared to Zen 3, include:

L1 Branch Target Buffer (BTB) size increased by 50%, to 1.5K entries. Each entry is now able to store up to two branch targets, provided that the first branch is a conditional branch and the second branch is located within the same aligned 64-byte cache line as the first one. L2 BTB increased to 7K entries. Improved direct and indirect branch predictors. OP cache size increased by 69%, from 4K to 6.75K OPs. The OP cache is now able to produce up to 9 macro-OPs per cycle (up from 6). Re-order buffer (ROB) is increased by 25%, to 320 instructions. Integer register file increased to 224 registers, FP/vector register file increased to 192 registers. FP/vector register file widened to 512 bits to support AVX-512. Added a new mask register file, capable of storing 68 mask registers. Load queue size increased by 22%, to 88 pending loads. L2 cache is doubled, from 512 KiB to 1 MiB per core, 8-way associative. Automatic IBRS, where indirect branch restricted speculation mode is automatically enabled and disabled when control enters and leaves Ring 0 (kernel mode). This reduces the cost of user/kernel mode transitions. ~13% IPC increase on average. Up to 5.7 GHz max core frequency. Memory speeds up to DDR5-5200 and LPDDR5X-7500 are officially supported. In Ryzen 7000 desktop processors and Ryzen 7045HX mobile processors, the integrated GPU contains two RDNA 2 Compute Units running at up to 2.2 GHz. Supports up to four display outputs, including HDMI 2.1 and DisplayPort 2 interfaces, but possible to attach more displays with discrete GPU. 5-level memory paging support for page table

Products

Desktop

Raphael

On August 29, 2022, AMD announced four Zen 4-based Ryzen 7000 series desktop processors. The four Ryzen 7000 processors that were launched on September 27, 2022 consist of the Ryzen 5 7600X, Ryzen 7 7700X, and two Ryzen 9 CPUs: the 7900X and 7950X. The processors feature between 6 and 16 cores. A further three models were added to the Ryzen 7000 desktop processors lineup on January 10, 2023, after a keynote by AMD at CES that announced them alongside 3D V-Cache variants of Ryzen 7 and Ryzen 9 processors, which drop the X in the name of the first CPUs in the lineup. These three models are the Ryzen 5 7600, Ryzen 7 7700, and Ryzen 9 7900, which feature a lower TDP of 65 W, and come bundled with stock coolers, unlike the X-suffix processors. The Ryzen 9 7900X3D and 7950X3D processors with 3D V-Cache were released on February 28, 2023, followed by the Ryzen 7 7800X3D on April 6. Common features of Ryzen 7000 desktop CPUs:

… excerpt ends here. Continue reading the full article.

Illustrations

Zen 4: Ryzen 7 7800X3D
Ryzen 7 7800X3D
Zen 4: Bottom of an AMD Ryzen Threadripper 7970X
Bottom of an AMD Ryzen Threadripper 7970X

Worked examples

Example 1 — a first encounter with Zen 4

Start with the simplest possible case. Write down what Zen 4 claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Zen 4 before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Zen 4 ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Zen 4

In research
Zen 4 appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Zen 4 in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Zen 4 is common in secondary-school and first-year university syllabi. It links to neighbouring topics AMD microarchitectures, AMD x86 microprocessors, Computer-related introductions in 2022, so understanding it makes those chapters shorter.
In everyday life
Look for Zen 4 outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Zen 4” →

How to study Zen 4 in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Zen 4 means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Zen 4 out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Zen 4 in simple terms?

Zen 4 is the name for a CPU microarchitecture designed by AMD, released on September 27, 2022. It is the successor to Zen 3 and uses TSMC's N6 process for I/O dies, N5 process for CCDs, and N4 process for APUs.

Why does Zen 4 matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Zen 4?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Zen 4.

Tags

  • AMD microarchitectures
  • AMD x86 microprocessors
  • Computer-related introductions in 2022
  • X86 microarchitectures

Keep exploring