Posts tagged “computer-architecture”

11 posts.

How Do SoC Interconnects and Memory Maps Work?

An interconnect routes each transfer to a slave by its address, using the memory map. Address decoding worked through, with arbitration and bridges to APB.

9 min read

What Is an SoC? The Parts of a System on Chip

A system on chip puts processors, memory, peripherals and accelerators on one die, joined by an on-chip interconnect. The parts, and why they share one chip.

8 min read

Cache Memory: How Mapping, Replacement and Writes Work

How a cache splits an address into tag, index and offset, why associativity removes conflict misses, LRU replacement, write policies and average access time.

12 min read

How Does DRAM Work? Cells, Refresh, Rows and Banks

A DRAM bit is charge on a tiny capacitor. How a read shares that charge with a bitline, why every row must be refreshed, and what rows and banks do to latency.

12 min read

Why Do GPU Memory Accesses Need to Be Coalesced?

A warp's 32 loads are served in 32-byte sectors. Neighboring threads reading neighboring words need 4 sectors; a large stride needs 32, wasting 87.5%.

7 min read

What Is SIMT, and Why Does Branch Divergence Slow a Warp Down?

In SIMT, the 32 threads of a warp issue one instruction together. When they branch different ways, the warp runs each path in turn with lanes masked off.

7 min read

When Is a GPU Faster Than a CPU?

When the work is parallel, does enough arithmetic per byte, and is big enough to pay for the data transfer. A roofline comparison, worked through.

8 min read

How Does a GPU Run Thousands of Threads at Once?

A GPU splits work into thread blocks, runs each on a streaming multiprocessor in warps of 32, and hides memory latency by switching warps.

8 min read

Why Does RISC-V Scramble the Immediate Bits in Branches and Jumps?

B and J immediates look shuffled, but each immediate bit lives in at most a few fixed instruction bits across all formats, which keeps the decoder small.

6 min read

What Are Pipeline Hazards in a 5-Stage RISC-V Pipeline?

A hazard is when the next instruction can't safely enter its next stage. Data, control and structural hazards, forwarding, and why a load costs one stall.

8 min read

What Is RISC-V, and How Is an Instruction Encoded?

RISC-V is an open instruction set. How its 32 registers and six instruction formats work, worked through for addi x1, x0, 5, which encodes as 0x00500093.

7 min read