<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hannah S on Medium]]></title>
        <description><![CDATA[Stories by Hannah S on Medium]]></description>
        <link>https://medium.com/@hannah.scherz.23?source=rss-c8ec5608d2b9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*lk_mN7_wzmTSXblT</url>
            <title>Stories by Hannah S on Medium</title>
            <link>https://medium.com/@hannah.scherz.23?source=rss-c8ec5608d2b9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 20:09:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hannah.scherz.23/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Basic Structure of Computer Systems: Von Neumann Architecture]]></title>
            <link>https://medium.com/@hannah.scherz.23/the-basic-structure-of-computer-systems-von-neumann-architecture-18c1cc546ab2?source=rss-c8ec5608d2b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/18c1cc546ab2</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[von-neumann-architecture]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Hannah S]]></dc:creator>
            <pubDate>Mon, 04 Aug 2025 15:39:21 GMT</pubDate>
            <atom:updated>2025-08-04T15:39:21.144Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hiHSlzc1HcdD2Nep" /><figcaption>Photo by <a href="https://unsplash.com/@brostvarta?utm_source=medium&amp;utm_medium=referral">Francesco Vantini</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The von Neumann architecture is a computer architecture where both the program instructions and data are stored in the same memory. This design got introduced by John von Neumann in 1945.</p><h3>Key Components</h3><p>The von Neumann architecture consists of a central processing unit (that contains a control unit, an arithmetic logic unit, and registers), a memory unit, and an input/output mechanism.</p><figure><img alt="Key components of the von Neumann architecture" src="https://cdn-images-1.medium.com/max/1024/1*v4pTewJ_yzdb9fl2BSraxQ.png" /><figcaption>Key components of the von Neumann architecture</figcaption></figure><h4><strong>Central Processing Unit (CPU)</strong></h4><p>The core part of any computer system is the processor, also known as the central processing unit (CPU). It periodically fetches instructions from the computer’s memory and then decodes and executes them. Within the Von Neumann architecture the processor consists of a control unit, an arithmetic logic unit and some registers.</p><p>The <strong>control unit (CU)</strong> is responsible for the execution of programs. It fetches the instructions from the memory into the processing unit and controls the operation of the computer’s ALU, memory and input/output devices.</p><p>The <strong>arithmetic logic unit (ALU)</strong> performs the arithmetic and logical operations (e.g. addition, subtraction, AND, OR, bitwise operations, …).</p><p><strong>Registers</strong> are small, high speed storage areas in the CPU used to store data and instructions during processing. A processor based on von Neumann architecture has five special registers which it uses for processing:</p><ul><li>The <strong>program counter (PC)</strong> holds the memory address of the next instruction to be fetched from the memory.</li><li>The <strong>current instruction register (CIR)</strong> holds the instruction that is currently being decoded and executed.</li><li>The <strong>accumulator (ACC)</strong> is used by the arithmetic logic unit (ALU) to hold the data being processed and the results of calculations.</li><li>The <strong>memory address register (MAR)</strong> holds the address of the data or instruction that is to be fetched from memory, or the address in memory to which data is to be transferred.</li><li>The <strong>memory data register (MDR)</strong> stores the instructions or data being fetched from or written to the memory address held in the MAR.</li></ul><h4><strong>Memory Unit</strong></h4><p>The memory unit is sometimes also referred to as primary or main memory. It stores both program instructions and data. This memory is directly accessible by the CPU. The memory is split into partitions that each have an unique address. Any storage location can be accessed directly via its memory address (random access memory).</p><h4><strong>Input/Output Devices</strong></h4><p>I/O devices enable the computer to interact with the external world. <strong>Input devices</strong> such as keyboards, mice and microphones allow users to enter data and instructions into the computer system. <strong>Output devices</strong> allow the computer to transmit data in a human-friendly form. A computer system can output many different things, such as printed documents via a printer, images via a monitor, sound via speakers, and so on. <strong>Communication devices</strong> enable data exchange with other systems, for example via network interfaces. <strong>External storage devices</strong> such as hard drives and and solid-state drives are considered I/O peripherals crucial for the long-term, permanent storage of data.</p><h3>Communication System</h3><p>In the von Neumann architecture all the components of the computer system (CPU, memory unit and the I/O devices) use the same bus for communication (shared bus system), only one device can transmit along this bus at any given time. This bus is called system bus, which consists of three types of buses, each with its own purpose and function:</p><ul><li><strong>Data Bus:</strong> Transfers the actual data between components (bidirectional).</li><li><strong>Address Bus:</strong> Carries the addresses to be accessed from the CPU to the memory or I/O controller (unidirectional).</li><li><strong>Control Bus:</strong> Transmits control signals from the CPU to other components and status signals back to the CPU, controlling and coordinating operations (e.g., read/write signals, interrupt requests, etc.)(bidirectional).</li></ul><figure><img alt="Communication / Bus system of the von Neumann architecture" src="https://cdn-images-1.medium.com/max/1024/1*de08adWzix5jAyB0LtmeGA.png" /><figcaption>Communication / Bus system of the von Neumann architecture</figcaption></figure><h3>Fetch-Decode-Execute Cycle</h3><p>The fetch-decode-execute cycle is a key feature of the von Neumann architecture. The programs are stored as instructions together with the data in the memory. The processor periodically fetches instructions from the computer’s main memory and then decodes and executes them. It repeats this cycle continuously until the computer is shut down.</p><figure><img alt="Fetch-Decode-Execute cycle of the von Neumann architecture" src="https://cdn-images-1.medium.com/max/1024/1*JQDxf2zL2P9TmpjYG1YJrw.png" /><figcaption>Fetch-Decode-Execute cycle of the von Neumann architecture</figcaption></figure><p>Step 1: The memory address of the instruction stored in the program counter is copied to the memory address register and then placed on the address bus. The address is copied to the memory controller.</p><p>Step 2: The control unit sends a read instruction to the memory controller via the control bus. The content of the memory location is put onto the data bus and transferred to the memory data register.</p><p>Step 3: Since it is an instruction, it is copied from the memory data register to the current instruction register. Now that the instruction has been fetched, the program counter is incremented by 1.</p><p>Step 4: The instruction stored in the current instruction register is decoded and executed. This may involve arithmetic calculations, logic operations, or data movement.</p><p>If the instruction involves reading something from the memory, the control unit puts the corresponding memory address into the memory address register, then it is placed onto the address bus and copied to the memory controller. The control unit sends a read instruction to the memory controller. The content of the memory location is put onto the data bus, transferred to the memory data register and passed or copied to the target destination (e.g. the arithmetic logic unit or the accumulator).</p><p>If the instruction involves storing something to the memory, the control unit puts the corresponding memory address into the memory address register, then it is placed onto the address bus and copied to the memory controller. The data to be stored is copied to the memory data register. The control unit sends a write instruction to the memory controller. The content of the memory data register is put on the data bus and copied to the corresponding memory location.</p><blockquote>Instructions and data are stored in the main memory as a series of binary digits that a computer’s central processing unit (CPU) can directly understand and execute, or perform calculations or operations with. More information: <a href="https://medium.com/@hannah.scherz.23/layers-of-abstraction-in-computer-systems-3ec127619570">Layers of Abstraction in Computer Systems</a></blockquote><h3>Performance Limitations</h3><p><strong>The Von Neumann Bottleneck</strong></p><p>Computers built according to the von Neumann architecture use a single communication pathway for both instructions and data. Only one instruction or piece of data can travel along this bus at any given moment. This creates a bottleneck, because typically the bandwidth of the bus is lower than the processing rate of the CPU. As a result the CPU is continually forced to wait for needed data to move to or from memory. This seriously limits the effective processing speed, especially when the CPU is required to perform minimal processing on large amounts of data. This problem is further exacerbated by the fact that CPU speed and memory size have increased much faster than the speed of data transfer between them.</p><h3>Security Problems</h3><p>The von Neumann architecture presents several security challenges primarily stemming from its shared memory that stores both instructions and data. This fundamental design choice means that there is no inherent distinction between what the computer recognizes as executable code and what it considers data.</p><p>One of the most significant security problems is the vulnerability to code injection attacks, such as buffer overflow. Code injection is an exploit where a program fails to correctly process external data, such as user input, leading it to interpret this data as executable commands. In buffer overflow attacks, malicious data, often provided as user input, can exceed the boundaries of its designated memory buffer and overwrite adjacent memory locations that contain program instructions. Because the system cannot differentiate between legitimate instructions and injected malicious data, it may then execute the attacker’s code, leading to unauthorized actions, data breaches, or complete system compromise. This issue is particularly prevalent in programming languages like C and C++ which offer direct memory access without built-in safeguards against overwriting memory or automatic bounds checking. Either by accident or design a malfunctioning program can damage itself, other programs and data, or the operating system. Memory protection and various access controls can safeguard against both accidental and malicious program changes.</p><p>Also, the von Neumann bottleneck is primarily a performance limitation due to the single shared bus for both data and instructions. While not a direct security problem, this bottleneck can indirectly affect security by making it more challenging to implement real-time security monitoring without significantly impacting performance. This trade-off between security and performance can sometimes lead developers to prioritize performance, potentially leaving systems more vulnerable.</p><h3>Modern Computers</h3><p>The von Neumann architecture is still the foundation of most modern general-purpose computers, but it has been modified to improve performance.</p><h4>Memory Hierarchy</h4><p>Modern computers use a memory hierarchy, consisting of different types of memory with varying speed, capacity and costs to optimize data access.</p><ul><li><strong>Registers</strong> are very small, high speed storage areas in the CPU used to store data and instructions during processing.</li><li><strong>Cache </strong>is a small, fast memory located on the CPU chip itself or on a separate chip very close to the CPU, that stores frequently accessed data.</li><li>The <strong>main memory</strong> (DRAM) is a larger, slower memory used to store currently running programs and data.</li><li><strong>Flash memory and hard drives</strong> are non-volatile storage devices for long-term data storage that persists even when power is off.</li></ul><figure><img alt="Computer Memory Hierarchy" src="https://cdn-images-1.medium.com/max/1024/1*iiW3t5v7pVqF72JdP5seog.png" /><figcaption>Computer Memory Hierarchy</figcaption></figure><h4>Caches</h4><p>Cache is small, fast memory located on the CPU chip itself or on a separate chip very close to the CPU, that stores copies of frequently accessed data, avoiding the need to always refer to the slower main memory, reducing the average time to access data.</p><p>When the CPU needs to access data, it first checks the cache. If the data is found there, it is retrieved quickly. If the data is not in the cache, the system retrieves it from the main memory and then copies it to the cache for future use. When the cache is filled up completely, older data will be replaced with newer data.</p><p>Most modern CPUs have a hierarchy of multiple cache levels: L1, L2, often L3, and rarely even L4.</p><ul><li><strong>L1 cache</strong>:<strong> </strong>The fastest and smallest cache, typically located directly on the CPU core. It’s often divided into instruction cache (L1i) and data cache (L1d).</li><li><strong>L2 cache</strong>: Larger and slightly slower than L1 cache. Modern processors often integrate the L2 cache directly into the CPU die for improved performance. Some feature a shared L2 cache among multiple cores, while others have dedicated L2 caches for each one. Older computers often had the L2 cache on a separate chip close to the CPU.</li><li><strong>L3 cache</strong>: Usually the largest and slowest of the CPU caches, but still faster than main memory. It is often shared by multiple CPU cores. Older computers used to have the L3 cache on a separate chip. In modern computers, the L3 cache is usually located directly on the CPU die.</li></ul><h4>Parallel Computing</h4><p>Parallel computing is the practice of performing multiple calculations or processes simultaneously. This can be achieved by breaking a large task into smaller ones that can be executed at the same time. This allows a larger problem to be solved more quickly. Several different approaches can be used to achieve parallel computing.</p><p><strong>Parallelism vs. Concurrency</strong></p><p>Parallelism and concurrency are two different things: Parallelism refers to using multiple processing units that perform tasks simultaneously and independently. Concurrency, on the other hand, allows to manage multiple tasks even on a single CPU core, the core switches between tasks without necessarily completing each one. Programs can be designed to be concurrent, parallel, both or neither.</p><figure><img alt="Concurrency vs. Parallelism" src="https://cdn-images-1.medium.com/max/1024/1*d2o0FHxVdro7LMlHmFkTXw.png" /><figcaption>Concurrency vs. Parallelism</figcaption></figure><p><strong>Bit-Level Parallelism</strong></p><p>Bit-level parallelism increases the amount of information a processor can handle per cycle by increasing the word size. This reduces the number of instructions the processor must execute to perform an operation on variables larger than the word size.</p><p>The introduction of ASCII led to the move to systems with word lengths that were multiples of 8 bits. <a href="https://en.wikipedia.org/wiki/8-bit_computing">8-bit</a> and <a href="https://en.wikipedia.org/wiki/16-bit_computing">16-bit</a> machines were popular before the shift to <a href="https://en.wikipedia.org/wiki/32-bit_computing">32-bit</a> processors. The PC and smartphone market has moved on further to <a href="https://en.wikipedia.org/wiki/64-bit_computing">64-bit</a> architectures.</p><p><strong>Multi-Core Computing</strong></p><p>Modern CPUs are multi-core processors, which have multiple processing units (called cores) on the same chip, enabling them to execute multiple instruction streams simultaneously. The processor distributes computational tasks among multiple cores, which work on them in parallel. Multi-core processors dramatically increase processing power and multitasking capabilities. However, in order to fully take advantage of this type of processor, the operating system and software applications must be designed to use multiple cores.</p><p><strong>Instruction-Level Parallelism</strong></p><p>Unlike multi-core parallelism, which handles multiple instruction streams, instruction-level parallelism refers to the ability of a processor to execute different parts of multiple instructions within a single instruction stream at the same time. Techniques like pipelining, superscalar execution, and out-of-order execution are all methods used by CPUs to achieve instruction-level parallelism. The goal is to keep as many of the CPU’s functional units busy as possible, maximizing throughput.</p><p>The CPU of the original von Neumann architecture executed the FDE cycle sequentially (completing one instruction before starting the next). Without instruction-level parallelism, a processor is limited to performing less than one instruction per clock cycle (IPC &lt; 1) and therefore classified as subscalar processor.</p><figure><img alt="Sequential FDE-cycle" src="https://cdn-images-1.medium.com/max/1024/1*hhn9b1uHvLTD8wAYOOQLXA.png" /><figcaption>Sequential FDE-cycle</figcaption></figure><p>Instruction pipelining attempts to increase instruction throughput and keep every part of the processor busy by dividing incoming instructions into a series of sequential steps performed by different parts of the processor, enabling to process multiple instructions in parallel. The number of steps varies with the microarchitecture. Multi-stage instruction pipelines are used by all modern processors. While a single instruction might still take the same amount of time to complete from start to finish, the overall rate at which instructions are completed significantly increases because multiple instructions are in various stages of execution simultaneously. A processor featuring an N-stage pipeline can have up to N different instructions at different stages at the same time and can issue one instruction per clock cycle (IPC = 1). These processors are called scalar processors.</p><figure><img alt="Pipelined FDE-cycle" src="https://cdn-images-1.medium.com/max/1024/1*NbaPIXCdNnixmyPKE_HsGQ.png" /><figcaption>Pipelined FDE-cycle</figcaption></figure><p>Most modern processors also have multiple execution units. They typically combine this feature with pipelining, allowing them to issue more than one instruction per clock cycle (IPC &gt; 1). These processors are called superscalar processors.</p><p>Superscalar processors are not the same as multi-core processors. While both can issue multiple instructions per clock cycle, superscalar processors do so from a single instruction stream, whereas multi-core processors handle instructions from multiple instruction streams. However, each core of a multicore processor may also be superscalar.</p><figure><img alt="Pipelined FDE-cycle with two execution units" src="https://cdn-images-1.medium.com/max/1024/1*d9Z7VJ1ko_JOxnJCfuVSIg.png" /><figcaption>Pipelined FDE-cycle with two execution units</figcaption></figure><p><a href="https://medium.com/@hannah.scherz.23/18c1cc546ab2">Out-of-order execution</a></p><p>Out-of-order execution, also known as dynamic execution, is an instruction scheduling paradigm that makes use of instruction cycles that would otherwise be wasted. Rather than executing instructions by their original order, the processor executes them in an order based on the availability of input data and execution units. This allows the processor to avoid being idle while waiting for the preceding instruction to complete and in the meantime process the next instructions that can run immediately and independently. Today out-of-order execution is widely adopted in general-purpose computers.</p><p><a href="https://medium.com/@hannah.scherz.23/18c1cc546ab2">Speculative execution</a></p><p>Speculative execution is a performance optimization technique used by modern processors to predict and execute instructions before their actual need, potentially speeding up processing by avoiding delays if the prediction is correct. If the prediction is wrong, the changes made by the speculative execution are reverted and the results are ignored. This allows the processor to make use of unused processing cycles and provides more concurrency if extra resources are available, leading to faster overall execution. While beneficial for performance, speculative execution can create security vulnerabilities if not handled carefully.</p><p><a href="https://medium.com/@hannah.scherz.23/18c1cc546ab2">Branch prediction</a></p><p>In a modern CPU, instructions are executed in a pipeline. However, conditional branch instructions (e.g. an if–then(–else) structure) can disrupt this flow because the CPU doesn’t know which path to take until the condition is evaluated. If the CPU waits, the pipeline stalls, wasting valuable cycles. Branch prediction is a CPU technique that attempts to guess the outcome of a conditional branch before it’s actually computed. Based on this prediction, the CPU can speculatively fetch and execute instructions down the predicted path. If the prediction is correct, processing continues seamlessly. If it’s wrong, the CPU has to discard the speculatively executed instructions and fetch the correct ones, which incurs a penalty. Modern branch predictors are highly sophisticated and remarkably accurate, minimizing stalls and contributing significantly to performance.</p><p><a href="https://medium.com/@hannah.scherz.23/18c1cc546ab2">Register Renaming</a></p><p>False data dependencies, also known as name dependencies arise when multiple successive instructions use the same architectural register that do not have any real data dependencies between them. Write-After-Read (WAR) and Write-After-Write (WAW) are such dependencies. False data dependencies can unnecessarily serialize instruction execution and limit the processor’s ability to perform out-of-order execution, a key technique for achieving high performance in modern computers.</p><p>For example, the following simplified code in this form can only be processed sequentially because of data dependencies.</p><pre>1:  r1 := r2 / r3<br>2:  r4 := r1 + r5    # real data dependency (RAW) on r1<br>3:  r5 := r6 + r7    # false data dependency (WAR) on r5<br>4:  r1 := r8 + r9    # false data dependency (WAW) on r1</pre><p>Modern processors have a relatively small number of architectural registers that are directly addressable by the instruction set. A new processor generation cannot simply add more registers to the instruction set, as this would break binary compatibility with existing software. Many high-performance CPUs provide more registers than specified in the instruction set architecture, and abstract the architectural registers (also called logical registers) from the physical ones. Usually in the decode stage of the pipeline, each time an instruction defines a value for an architectural register, the processor renames that reference to a unique, available physical register. This mapping is tracked in a special hardware structure, often called a register alias table (RAT), that keeps track of the current mapping between each architectural register and the physical register that currently holds its latest value. This resolves the Write-After-Read (WAR) and Write-After-Write (WAW) dependencies and the independent parts can be executed in any order or in parallel.</p><pre>1:  rA := r2 / r3 <br>2:  rB := rA + r5    # true data dependency (RAW) on rA<br>3:  rC := r6 + r7 <br>4:  rD := r8 + r9</pre><p>The elimination of false data dependencies reveals more instruction-level parallelism in an instruction stream as instruction can be executed as soon as their true data dependencies are met, which can be exploited by various and complementary techniques such as superscalar and out-of-order execution to fill execution units more efficiently and improve performance.</p><h4><strong>Vector/SIMD ISA </strong>Extensions</h4><p>In a pure Single Instruction Single Data (SISD) system, a characteristic of the von Neumann architecture, a single uni-core processor executes one instruction at a time on a single piece of data stored in memory. While foundational, this model proves inefficient for modern computing demands that often involve large datasets.</p><p>Modern CPUs, however, predominantly leverage Single Instruction Multiple Data (SIMD) extensions to dramatically increase processing efficiency for certain tasks. SIMD allows a single instruction to be applied simultaneously on multiple data elements. This is achieved through specialized hardware units (vector registers and vector units), which extend the processor’s instruction set with corresponding vector instructions. SIMD is particularly effective for tasks that apply the same operation across a large dataset, such as adjusting the contrast in a digital image, scientific simulations, graphics rendering in computer games, and signal processing.</p><figure><img alt="One instruction is applied simultaneously on multiple data elements" src="https://cdn-images-1.medium.com/max/854/1*ZaZjJCctlTGs14D8QyDW0A.png" /><figcaption>One instruction is applied simultaneously on multiple data elements</figcaption></figure><p>SIMD can exist in both fixed and scalable vector forms. Fixed-width SIMD units operate on a constant number of data points per instruction. Scalable designs, like RISC-V Vector Extension (RVV) or ARM’s Scalable Vector Extension (SVE), allow the number of data elements to vary depending on the hardware implementation, improving forward compatibility across processor generations.</p><p>SIMD widely adopted in desktop computing with Intel’s MMX in 1996, followed by AltiVec in Motorola PowerPC and IBM’s POWER architectures. Intel then introduced the Streaming SIMD Extensions (SSE) in 1999, with further advancements including Advanced Vector Extensions (AVX, AVX2, AVX-512). ARM has its advanced SIMD extension, Neon, for media and signal processing.</p><p>MMX, SSE, and AVX are instruction set extensions for x86 processors. MMX operates on 64-bit integer data, SSE on 128-bit data (including both integers and floating-point), and AVX on 256-bit data, with AVX-512 extending to 512-bit.</p><ul><li>MMX (MultiMedia eXtension) introduced 64-bit registers that can be used to hold either 64-bit integers or multiple smaller integers (2x32bit, 4x16bit or 8x8bit), allowing a single instruction to operate on multiple integers at once. It was primarily used for multimedia tasks (e.g. video and audio processing, image manipulation) and other integer-based computations, but since it is limited to integer operations and the development of SSE and AVX, it is considered obsolete in modern systems.</li><li>AMD’s SIMD extension 3DNow!, while initially popular for accelerating tasks like gaming and video playback, was eventually superseded by Intel’s SSE, which was adopted by AMD as well.</li><li>SSE (Streaming SIMD Extensions) addressed the core shortcomings of MMX. It introduced 128-bit registers and new instructions for it, it supports both integer and floating-point operations. SSE got extended through SSE2, SSE3, SSSE3, and SSE4, adding more instructions and capabilities.</li><li>AVX (Advanced Vector Extensions) further expanded SIMD capabilities for high-performance computing. It introduced 256-bit registers and wider execution units, providing new features and instructions. AVX2 extended AVX, expanding most integer commands to 256 bits and introducing new instructions. Later, AVX-512 expanded AVX to 512-bit support.</li></ul><h4>I/O Controller</h4><p>Modern computers use I/O controllers for managing communication between the CPU and peripheral devices. Instead of the processor directly handling every interaction with external hardware, the I/O controller takes over this responsibility. This frees up the CPU to concentrate on more complex computations, significantly boosting overall system performance and enabling smoother multitasking without overloading the main processor.</p><p>An I/O controller’s integration within a computer system can vary, appearing either as an onboard component of the motherboard or as a separate expansion card. It utilizes a bus system for the communication with the CPU and translates data into a understandable format for peripheral devices. Some I/O controllers offer broad compatibility for general-purpose, supporting a variety of devices, whereas others are designed for specific tasks (disk controller, USB controller, network interface controllers, display controllers, …).</p><h4>Specialized Processing Units</h4><p>Instead of relying solely on the general-purpose central processing unit (CPU) for all tasks, modern systems offload particular types of computations to dedicated hardware designed for those specific tasks. By focusing on a specific type of computation, special processing units are highly optimized and incredibly efficient for their intended purpose.</p><p>The most prevalent special processing unit is the graphics processing unit (GPU). GPUs are highly parallel processors designed and heavily optimized for computer graphics processing and, more recently, machine learning. In graphics rendering, scientific simulations and machine learning, many calculations on large datasets happen at once. GPUs are much better at these tasks than CPUs, which would have to process them more sequentially.</p><h4>CPU Clock Speed</h4><p>Clock speed, also known as clock rate, refers to the frequency at which the clock generator of the processor generates pulses used to synchronize the operations of its components. It’s measured in hertz (Hz), typically gigahertz (GHz). A higher clock speed generally means the CPU can process instructions faster, leading to improved performance.</p><p>Higher clock speeds improve computer performance by enabling the CPU to execute more instructions per second, resulting in faster processing. However, the growth of CPU clock speed has significantly slowed down due to fundamental physical limitations. As clock speeds increase, CPUs generate more heat. Moreover, electrical signals can only travel at a finite speed, meaning that at extremely high clock rates, the time it takes for a signal to travel across the chip becomes a limiting factor in synchronizing operations. To overcome these limitations and continue improving performance, modern CPU development shifted focus to other architectural enhancements.</p><h4><strong>Die Shrink</strong></h4><p>Die shrink (sometimes process shrink or optical shrink) refers to the continuous shrinking of transistors and other components on a semiconductor chip. This involves transitioning to smaller technology nodes, also known as process nodes (e.g., from 90nm to 65nm, or 5nm to 3nm), reducing the physical dimensions of the components. This allows more transistors to be packed into the same area, enabling more complex architectures and higher transistor density, which contribute to performance.</p><h4>Bus Width and Speed Increases</h4><p>Improvements in both the width and speed of the physical bus connecting the CPU and memory significantly increased the bandwidth — the total amount of data that can be transferred in a given amount of time. This increased bandwidth is crucial because modern CPUs process data at an incredibly high rate. They require a high-capacity, high-speed bus to access the data they need from memory and storage, preventing bottlenecks that would otherwise limit overall system performance. The continuous development of bus technologies like DDR memory standards and PCIe ensures that the data flow can keep up with the processing capabilities of current CPUs and GPUs.</p><p>The explanation of the FDE-Cycle is inspired by the YouTube video <a href="https://youtu.be/ByllwN8q2ss?si=pf_6b9WJQFR_WCQT">The Fetch Decode Execute Cycle</a> from <a href="https://www.youtube.com/@ComputerScienceLessons">Computer Science Lessons</a></p><p><strong>Additional Resources</strong></p><ul><li><a href="https://youtu.be/rtAlC5J1U40?si=PaQ2wg2khi-xaEnb">Advanced CPU Designs</a> by <a href="https://www.youtube.com/@crashcourse">CrashCourse</a> on YouTube</li><li><a href="https://youtu.be/vgPFzblBh7w?si=xh41OJvhxflgdga2">Architecture All Access: Modern CPU Architecture — Key Concepts</a> by <a href="https://www.youtube.com/@IntelTechnology">Intel Technology</a> on YouTube</li><li><a href="https://youtu.be/MJ-ettBDJqQ?si=6ZAfqQ8XXp-4Dfh5">Intro to Parallelism with Flynn’s Taxonomy</a> by <a href="https://www.youtube.com/@Intermation">Intermation</a> on YouTube</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18c1cc546ab2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Layers of Abstraction in Computer Systems]]></title>
            <link>https://medium.com/@hannah.scherz.23/layers-of-abstraction-in-computer-systems-3ec127619570?source=rss-c8ec5608d2b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ec127619570</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Hannah S]]></dc:creator>
            <pubDate>Mon, 23 Jun 2025 23:24:22 GMT</pubDate>
            <atom:updated>2025-10-01T14:29:52.589Z</atom:updated>
            <content:encoded><![CDATA[<p>Computer systems utilize abstraction layers to manage complexity by breaking down tasks into manageable levels, each hiding the complex details of the layer below. This approach allows for easier development, maintenance, and modification of systems, as changes in one layer don’t necessarily impact others.</p><figure><img alt="Layers of Abstraction in Computer Systems: Application, Problem-oriented Programming Language, Assembly Language, Machine Code, Instruction Set Architecture, Microarchitecture, Logic Gates &amp; Registers, Devices (Transistors), Physics (Electron Flow)" src="https://cdn-images-1.medium.com/max/1024/1*h5TaVUfj_qB28F245aC-tA.png" /></figure><h4><strong>Application</strong></h4><p>This is the highest level, representing the software programs users interact with directly (e.g., web browsers, word processors, games). It abstracts away all the underlying system complexities, allowing users to focus on the task being performed.</p><h4><strong>Problem-oriented Programming Language</strong></h4><p>Programming languages like Python, Java, C++, or JavaScript fall into this category. They are designed to be human-readable and abstract away the intricate details of memory management, hardware addressing, and specific machine instructions. This layer significantly boosts software developer productivity and code maintainability.</p><p>High-level programming languages such as Python, Java, C++, and JavaScript need to be translated into lower-level forms that the computer can execute. This is the job of a compiler or interpreter, which converts code written in these languages into the specific machine code required by the target processor’s instruction set architecture. Consequently, the same C++ source code will result in different machine code when compiled for an x86 processor versus an ARM processor.</p><h4><strong>Assembly Language</strong></h4><p>Assembly language (alternatively: symbolic machine code) provides a thin layer of abstraction directly above machine code. It uses <a href="https://en.wikipedia.org/wiki/Mnemonic">mnemonics</a> (e.g., ADD for addition, MOV for move data) to represent each machine instruction, making them slightly more readable than raw binary. It offers direct control over hardware components like registers and memory. Because assembly depends on the machine code instructions, each assembly language is specific to a particular instruction set architecture.</p><h4><strong>Machine Code</strong></h4><p>This is the lowest level of programming language, consisting of binary numbers (0s and 1s) that a computer’s central processing unit (CPU) can directly understand and execute. Each instruction in machine code corresponds to a specific operation of the CPU.</p><p>These instructions are specified in the instruction set architecture (ISA). Every instruction in a given ISA has a unique binary pattern. A LOAD instruction on an x86 processor will have a completely different binary representation than a LOAD instruction on an ARM processor.</p><h4><strong>Instruction Set Architecture</strong></h4><p>The instruction set architecture (ISA) is an abstract model of the processor. It is a specification that defines the interface between software and hardware. The ISA defines the supported instructions, data types and registers, and how the main memory is accessed and managed. Essentially, the ISA is the “language” a specific CPU understands. Examples include x86 (used by Intel and AMD CPUs) and ARM (especially used for mobile devices). The ISA ensures compatibility, allowing software written for a particular ISA to run on any processor that implements that ISA.</p><h4><strong>Microarchitecture</strong></h4><p>While the Instruction Set Architecture (ISA) defines what the processor can do, the microarchitecture defines how the processor does it. Microarchitecture is the hardware implementation of an ISA in a particular processor.</p><p>Different processors can implement the same ISA using different microarchitectures, implementations may vary due to different design goals or due to shifts in technology. For example, the Intel Pentium and AMD Athlon both implement the x86 ISA but have different internal designs (microarchitectures).</p><blockquote><strong>Origin of the Name x86</strong><br>The name x86 originates from the naming convention of Intel’s most successful line of processors. It began with the <a href="https://en.wikipedia.org/wiki/Intel_8086">Intel 8086</a> microprocessor, introduced in 1978, the first processor with x86 architecture. Subsequent processors, which were advancements of the 8086 and maintained backward compatibility, carried numbers like 80186, 80286, 80386, and 80486. Since all these processors end in 86, the term x86 was adopted to refer to the entire family of these processors and their shared instruction set architecture. The x stands for the changing numbers at the beginning. Although Intel later transitioned to using brand names like Pentium, the x86 designation persisted.</blockquote><h4><strong>Logic Gates &amp; Registers</strong></h4><p>This layer is composed of fundamental digital circuits like AND, OR, NOT, NAND, NOR, XOR gates, and flip-flops. Logic gates perform basic boolean operations on binary inputs to produce a single binary output. Registers are small, high-speed storage locations within the CPU built from flip-flops, used to hold data that the CPU is currently processing.</p><h4><strong>Devices (Transistors)</strong></h4><p>At this level, logic gate and register circuits are composed of billions of tiny electronic switches called transistors. Transistors are semiconductor devices that can amplify or switch electrical signals and power. In digital circuits, they act as fundamental switches that are either in an ON (conducting) or OFF (non-conducting) state, representing binary 1s and 0s. Their behavior forms the basis for constructing logic gates.</p><h4><strong>Physics (Electron Flow)</strong></h4><p>This is the most fundamental level, dealing with the physical principles governing the behavior of electrons and other subatomic particles. The flow and control of electrons within semiconductor materials, is the underlying physical phenomena that enables transistors to function as switches, ultimately making all higher levels of abstraction possible.</p><p><strong>Additional Resources</strong></p><ul><li><a href="https://youtu.be/FS4Ccfe17QA?si=PJVv3a8koO4hxtaT">What is an instruction set?</a> by <a href="https://www.youtube.com/@AKIOTV">AKIO TV</a></li><li><a href="https://youtu.be/wA2oMRmbrfo?si=VxztVF0yrml5KCz7">Assembly language and machine code</a> by <a href="https://www.youtube.com/@AndroidAuthority">Android Authority</a></li><li><a href="https://youtu.be/Jk7Ul2hKqxs?si=y2DTWPqvG2xYNLZ9">x86 vs ARM Assembly</a> by <a href="https://www.youtube.com/@WhiteboardDoodles24">WhiteboardDoodles</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ec127619570" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>