Download presentation
Presentation is loading. Please wait.
1
Soc introduction
2
Outline What is SoC SoC design SoC component SoC working flow Example
3
What is SoC System on Chip System?
4
SoC design Block design
Intellectual properties (IP) : Hard, Soft, Firm
5
SoC design Platform based design Platform
An integrated and managed set of common features, upon which a set of products or product family can be built. A platform is a virtual component (VC). Platform-based design An integration oriented design approach emphasizing systematic reuse, for developing complex products based upon platforms and compatible hardware and software VCs, intended to reduce development risks, costs, and time to market.
6
Design and Verification Step
30% 70%
7
Typical SOC design flow
Overlap in specification/architecture phase and RTL-design phase; multiple design changes Architecture design done informally SW development starting late in the project
8
Top-Down Design Flow
9
SoC Design Flow
10
ESL: New SOC Design Flow
Architecture closure Achieve a reduction # of RTL iterations Can perform concurrent HW and SW design Shorten the time it takes to get to golden RTL
11
SoC component CPU OS Bus AHB AXI Peripherals
Sensor, Controller, Accelerator IPs
12
CPU Processors vary in their customization for the problem at hand
13
Control Unit Sub-Operations
Control unit: configures the datapath operations Sequence of desired operations (“instructions”) stored in memory – “program” Instruction cycle – broken into several sub-operations, each one clock cycle, e.g.: Fetch Decode Fetch operands Execute Store results
14
OS Operating System Manages computer hardware and software resources and provides common services for computer programs RTOS (Real-Time Operating System) Task scheduling Priority Resource requirements Starting deadline Completion deadline
15
BUS In a system, various subsystems must have interfaces to one another The bus serves as a shared communication link between subsystems Advantages Low cost Versatility Disadvantage Performance bottleneck
16
AMBA Introduction Advanced Microcontroller Bus Architecture
An on-chip communication standard Three buses defined AHB (Advanced High-performance Bus) ASB (Advanced System Bus) APB (Advanced Peripheral Bus)
17
AHB AHB master Initiate a read/write operation
Only one master is allowed to use the bus uP, DMA, DSP, … AHB slave Respond to a read/write operation Address mapping External memory I/F, APB bridge, internal memory, … AHB arbiter Ensure that which master is active Arbitration algorithm is not defined in ABMA spec. AHB decoder Decode the address and generate select signal to slaves
18
AHB Bus Interconnection
19
Basic AHB Transfers 1 Address phase Data phase
20
Basic AHB Transfers 2 Multiple transfers
21
AHB Master Interface
22
AHB Slave Interface
23
AHB Arbiter
24
AHB Decoder
25
AXI AXI (Advanced eXtensible Interface) AXI is burst-based
Each transaction has address and control information on address channel that describes the nature of the data to be transferred Five channels read address channels write address channels read data channel write data channel write response channel
26
Read Burst Address channel contain address and control information
27
Overlapping Read Burst
28
Write Burst
29
Transaction Ordering Enables out-of-order transaction completion
Give an ID tag to every transaction Transaction with the same ID → in-order Transaction with different ID → can be completed out-of- order The ID tag is similar to a master number, but each master can implement multiple virtual masters by supplying different ID tags (virtual master number)
30
Peripherals Peripherals are often single-purpose processors
Performs specific computation task Standard single-purpose processors serial transmission analog/digital conversions I/O peripherals are the communication channels between the SoC and the real-world The functions of an SoC determines the requirements of peripherals
31
Kinds of Peripherals System Timers Counters Watchdog timers Functional
Real-time clocks Serial I/F UART I2C I2S SPI FireWire USB Thunderbolt A/D and D/A converters GPIO Functional Image sensor I/F Keypad controllers Pulse width modulators (PWM) Stepper motor controllers Communication peripherals
32
GPIO GPIO (General-Purpose Input/Output) Very useful for Debugging
Extend the I/O function of the system Can be used for multiple purposes
33
The Block Diagram of GPIO
34
I2C Inter-IC Two-wire serial bus protocol developed by Philips Semiconductors nearly 30 years ago Enables peripheral ICs to communicate using simple communication hardware
35
SoC working flow
36
Memory Mapped I/O Each slave occupies a range of (>1KB) address space in the system All the slaves are addressable Memory mapped register/memory CPU/IP and read/write data to other IP as read/write data from/to memory
37
Communication between IPs
After the master is granted by the arbiter, it can access all the slaves on the bus
38
Communication between CPU and IP
CPU is always the master The IP is always the slave The IP can initiate the feedback with interrupt After interrupt, the CPU enters interrupt mode, and the interrupt is handled with interrupt service routine (ISR)
39
Example: DMA DMA (Direct Memory Access)
40
Example: DMA Step 0: CPU check the status of DMA to make sure it is ready to be used While(1) { Read(0x30004, &status) if(status == 0) break; }
41
Example: DMA Step 1: CPU sets the (source address), (destination address and (size) with the slave I/F Write(0x30008, 0x10000) Write(0x3000C, 0x20000) Write(0x30010, 0x100) Step 2: starts DMA Write(0x30000, 0x1)
42
Example: DMA Step 3: DMA moves data from memory 1 to memory 2 with the two master I/F
43
Example: DMA Step 4: DMA interrupts CPU Step 5:
CPU checks the status of DMA Read(0x30004, &status)
44
Example HDMI Display Controller
45
Example BUS Interconnect CPU I2C IP
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.