Computer Architecture Basics


The main component of a computer is the processor. Also referred to as the CPU (central processing unit), the processor is what’s responsible for carrying out the instructions of the computer program. One of the principal circuits of the processor is the APU (arithmetic logic unit) which performs the bitwise and mathematical operations on binary numbers. APU operations include addition and subtraction as well as AND/OR boolean algebra.


The two main types of processor architecture include CISC (complex instruction set computer) and RISC (reduced instruction set computer).


Interrupts allow for the processor to be stopped from what it’s currently working on and be redirected to a more high priority task. When the processor receives an interrupt it determines whether or not it is of a higher priority than the current task. If the interrupt is of higher importance it pauses its current task to work on the new one. Interrupts can be received from either the hardware or software. A hardware interrupt could be a signal from an I/O peripheral like the mouse or keyboard. Software interrupts are typically low priority. An example of a software interrupt could be a request from an application for services from the operating system.

Parallel Architecture

Instead of only using one processor, multiple processors can be combined to process data. Two architectures used for parallel computing include SIMD (single instruction, multiple data) and MIMD (multiple instruction, multiple data). SIMD uses multiple processors to perform a single task while MIMD performs multiple actions simultaneously in smaller parts. SIMD processors are typically small, simple and fast whereas MIMD processors have the ability to perform extremely complex operations.


Memory is where the data and software to be used by the processor is stored. The two main forms of memory are RAM (random access memory) and ROM (read-only memory).


RAM is used to store temporary data for the programs that are currently running. RAM is typically “volatile” meaning that it loses it data after the computer loses power. The two main categories of RAM are “static RAM” (SRAM) and “dynamic RAM” (DRAM). SRAM is the faster version. It also uses a low amount of power. The downsides of SRAM are that it holds less memory and is more expensive. DRAM on the other hand is cheaper and holds more data but requires more power usage. RAM also uses caches to speed up performance. Frequently used information is stored in the cache to allow for a faster retrieval.


ROM is used for long term storage. It is “nonvolatile” meaning that the data is kept after the computer loses power. Standard ROM is not rewritable and is typically used for firmware (software used to initialize the computer’s hardware). Rewritable forms of ROM include EPROM (erasable programable read-only memory) which requires the ROM to be removed from the computer to be rewritten, EEROM (electronically erasable read-only memory) which can be rewritten while still installed but needs to be completely erased before rewriting, and the more popular Flash memory which can be rewritten while installed and without having to erase the entire contents of the devise.

Harvard vs. von Neumann Architecture

Two main forms of memory allocation architecture are the Harvard and von Neumann models. The Harvard model uses what’s known as “ported I/O” where program instruction memory and data memory are separated and use separate buses (communication systems that transfer data between computer components). The Harvard model allows for simultaneous fetching of both instruction and data memory. Tradeoffs include being more expensive and using more power. The von Neumann model by comparison uses “memory mapped I/O” where the same physical memory address and bus system is used for both instruction and data memory. The combination allows for lower production costs and is used in most personal computers.


I/O devises, also known as peripherals, allow for information to be input and output from the internal computer. These can include keyboards, mice, modems, disk drives and video/audio/network interfaces. Different forms of I/O include “programmed I/O” where it is controlled by instructions in the computer program, “interrupt-driven I/O” where it is controlled by external peripherals, and “direct memory access” where an I/O devise can interact with the memory directly without going through the processor.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store