Topics / Embedded C / Q36
What does a typical SoC look like inside?
A system-on-chip puts a complete computer on one die. A typical application-processor SoC (phone, automotive, IoT gateway) contains:
- CPU cluster(s): several Arm Cortex-A cores, often in big.LITTLE groups, with private L1 caches and a shared L2/L3.
- Accelerators: GPU, DSP, NPU for machine learning, video encoder and decoder, ISP for cameras, display controller.
- Microcontroller cores: Cortex-M or Cortex-R cores for power management, security, sensors or real-time control.
- Memory system: DDR/LPDDR controller, on-chip SRAM, boot ROM, and an MMU/SMMU (IOMMU) so devices can use virtual addresses.
- Interconnect: a bus fabric (AMBA AXI/ACE/CHI, with AHB/APB for slow peripherals) linking everything, with cache coherency between CPUs and some devices.
- Peripherals: UART, SPI, I2C, GPIO, timers, USB, PCIe, Ethernet, SD/eMMC/UFS, MIPI DSI and CSI.
- System control: clock and reset controllers, power domains, PMIC interface, interrupt controller (GIC), watchdog, thermal sensors.
- Security: crypto engines, true random number generator, secure enclave or TrustZone, eFuses for keys and secure boot.
Interviewers usually ask you to draw this and then trace one flow, for example how a camera frame reaches the display, or what happens from power-on to the kernel running.