Categories
Computer Science

Understanding Computer Architecture

The Basics – You Must Know

A computer is an electronic machine or a programmable device that can store, retrieve and process data.

Computer ArchitectureThe von Neumann Architecture

The CPU is the brain of the computer, consisting of:

Arithmetic Logic Unit (ALU): Performs arithmetic and logical operations.

Control Unit (CU): Directs the flow of data and instructions.

Registers: Small, high-speed storage for temporary data.

Example: In an Intel i7 processor, the ALU handles integer and floating-point calculations, while the CU manages instruction sequencing.

Memory stores data and instructions for processing. It is organized in a hierarchy:

Primary Memory: RAM (volatile) and cache (fast access).

Secondary Memory: Hard drives, SSDs (non-volatile).

Virtual Memory: Extends RAM using disk space.

Example: A system with 16GB RAM and 512GB SSD uses paging to manage virtual memory.

Handles communication between the CPU and external devices.

I/O Interfaces: Memory-mapped or isolated I/O.

Interrupts & DMA: Efficient data transfer without CPU intervention.

Example: A keyboard sends interrupts to the CPU, while a disk uses DMA for bulk data transfer.

Buses are communication pathways for data, addresses, and control signals.

Data Bus: Transfers actual data.

Address Bus: Specifies memory locations.

Control Bus: Manages read/write operations.

Example: PCIe bus connects GPUs to the CPU for high-speed data exchange.

Improves performance by overlapping instruction execution stages.

Instruction Level Parallelism (ILP) and Branch Prediction reduce delays.

Example: Modern CPUs like ARM Cortex-A use 5-stage pipelines to execute multiple instructions simultaneously.

Defines the CPU’s commands, addressing modes, and data formats.

Reduced Instruction Set Computer (RISC): Simple, fast instructions (e.g., ARM).

Complex Instruction Set Computer (CISC): Complex instructions (e.g., x86).

Example: ARM ISA powers most smartphones for energy efficiency.

Priyanka B.'s avatar

By Priyanka B.

Hello and welcome to my little corner of internet!! I am a techie. I am very interested to discover and innovate new advances in science and technology. Blogging is one of my hobbies which I think is very useful for broadening my knowledge horizons and help me grow my skills. Apart from blogging I have also little taste in artistic skills and literature, which can keep my writing and posts tangy.

Whether you stumbled in by chance or came here on purpose, I hope you find something that sparks your curiosity or makes you think a little deeper. Thanks for stopping by!!

Leave a comment