k510 Full-Datasheet
k510 Full-Datasheet
Disclaimer
Information in this document, including URL references, is subject to change without notice.
This document is provided as is with no warranties whatsoever, including any warranty of
merchant ability, non-infringement, fitness for any particular purpose, or any warranty
otherwise arising out of any proposal, specification, or sample.
All liability, including liability for infringement of any proprietary rights, relating to use of
information in this document is disclaimed. No licenses express or implied, by estoppel or
otherwise, to any intellectual property rights are granted herein.
All trade names, trademarks and registered trademarks mentioned in this document are
property of their respective owners, and are hereby acknowledged.
Copyright Notice
Copyright © 2021 Canaan Inc. All rights reserved.
25-May-2021 2
Canaan K510 Datasheet
Preface
Purpose
This document describes the features, logical structures, functions, operating modes, and
related registers of each module about K510. It also describes the interface timings and
related parameters, the pins, pin usages, performance parameters, and package dimension of
K510 in detail.
Intended Audiences
Revision History
25-May-2021 3
Canaan K510 Datasheet
Contents
Preface................................................................................................................................................................... 3
Purpose......................................................................................................................................................................3
Intended Audiences................................................................................................................................................. 3
Revision History....................................................................................................................................................... 3
1. Understand K510............................................................................................................................................. 7
1.2. Applications...................................................................................................................................................... 7
1.3. Features............................................................................................................................................................. 7
2. Package Information.....................................................................................................................................23
2.2. Dimension....................................................................................................................................................... 23
3. Electrical Specification................................................................................................................................. 29
3.3. DC Characteristics......................................................................................................................................... 31
4. Design Recommendation............................................................................................................................. 46
Terms/Abbreviations.........................................................................................................................................47
25-May-2021 4
Canaan K510 Datasheet
List of Figures
Figure 1-1 Block Diagram...............................................................................................................8
25-May-2021 5
Canaan K510 Datasheet
List of Tables
Table 2-1 Pin List.......................................................................................................................... 28
25-May-2021 6
Canaan K510 Datasheet
1. Understand K510
Canaan K510 is an AI inference chip for edge systems, with the computing power of 3TFlOPS.
It supports the AI applications for image and voice processing.
Integrate the dual-core RISC-V CPU and Digital Signal Processor (DSP) with frequency up
to 800 MHz. And Float Point Unit (FPU) is supported.
Integrate the latest generation of ISP, which supports 2D noise reduction, 3D noise
reduction, wide dynamic range, fish-eye correction, lens shading correction, and more
features.
Adopt Knowledge Processing Unit (KPU) for deep learning. Rich peripherals and memory
interfaces are included for different applications.
1.2. Applications
1.3. Features
25-May-2021 7
Canaan K510 Datasheet
1.3.1. Processor
CPU
Core number: 2
ICACHE=32KB, DCACHE=32KB
25-May-2021 8
Canaan K510 Datasheet
L2 CACHE=256KB
DSP
Core number: 1
ITCM = 128KB
DTCM = 256KB
ICACHE=32KB, DCACHE=32KB
Machine mode
1.3.2. AI Subsystem
KPU
KPU is responsible for computational acceleration. The majority of compute effort for deep
learning inference is based on mathematical operations, such as convolutions, activation,
pooling, normalization, and element wise. For a given network, the KPU compiler can well break
down the whole computation into basic operators and ensure the efficiency of computation.
25-May-2021 9
Canaan K510 Datasheet
Data precision BF16 and Qint8, and data foramt of FP 32, BF 16, and Qint 8
Different data reuse strategies: weight reuse, input feature graph reuse, and output feature
graph reuse
FFT
FFT supports 64/128/256/512 points input data with 32/64 bits real and imaginary part.
Only AX25P can write input data or read output data point by point.
1.3.3. Memory
SRAM0
The SRAM0 size is 1MB, and the base address is 0x8000_0000. The memory blocks inside
SRAM0 are divided into the following two parts:
0x8002_0000 - 0x800F_FFFF: You can configure System Control to switch this block off to
save power.
SRAM1
The SRAM1 size is 512KB.You can switch off SRAM1 by configuring System Control to save
power.
25-May-2021 10
Canaan K510 Datasheet
DDR
DDR mainly supports LPDDR3 and LPDDR4. The highest frequency about LPDDR3 is 2133
Mbps and LPDDR4 is 2700 Mbps. The connections between controller and PHY obey the
DFI4.0 protocol.
LPDDR4 - x32-bit and dual-channel devices. The burst length could be 16 or 32.
Configurable address mapping. It supports a wide range of memory size, including 1GB -
32 Gb for LPDDR3 and 4 Gb-32 GB for LPDDR4.
Firmware-based training
UART
25-May-2021 11
Canaan K510 Datasheet
Shadow registers (nine additional registers that shadow some of the existing register bits)
I2S
4 channel TX and RX
FIFO depth 16
SPI
K510 contains 3 SPI master controllers and 1 SPI slave controller in the peripheral sub system.
SPI supports:
DMA control
Programmable delay
GPIO
32-bit IO width
IO debounce
25-May-2021 12
Canaan K510 Datasheet
IO triggered interrupts
Temperature Sensor
Temperature sensor has high accuracy and low power consumption. It mainly supports the
following features:
Digital interface
12-bit resolution
Power management
Silicon characterization
Thermal management
USB
USB-HS core is a USB OTG dual-role device controller for a single peripheral device. The
functions are as defined in the On-The-Go Supplement to the USB Power Delivery
Specification v1.3 and v2.0.
SD
The host controllers serve the devices compatible with SD memory v4.0 (SD, SDHC, SDXC),
SDIO v4.0, and MMC/eMMC v5.1.
The slave controller meets the SDIO Card Specification v3.0. It is suitable for the I/O card
applications like WLAN, and bluetooth with low power consumption. The controller
supports SPI, 1-bit SD, 4-bit SD for embedded devices.
1.3.5. Video
The video subsystem is used for image and video processing. By real-time processing of the
image sensor signal, a restored and enhanced digital image is obtained, making it closer to the
image in reality.
25-May-2021 13
Canaan K510 Datasheet
MIPI interface:
Configurable as two 1 Clock Lane and 2 Data Lanes channels (1x2) or one 1 Clock
Lane and 4 Data Lanes channel (1x4)
DVP interface:
Two 2D ISPs:
White balance
2D Noise reduction
3D noise reduction
2-frame/3-frame HDR
Multi-CFA demosaic
RGB Gamma
Sharpen
Post processing
25-May-2021 14
Canaan K510 Datasheet
Hardware 3A Processing
Scaler
TOF ISP:
Support TOF sensor and generate depth images and gray images
2D noise reduction
Post processing
H264 is a video encoder engine designed to process video streams using the AVC (ISO/IEC
14496-10 Advanced Video Coding) standard.
1.3.7. Audio
PDM audio
PDM audio input/output, with data sampling rate of 2.048/2.8224 MHz, 1bit data width ,
sampling clock rate of 2.048/2.8224 MHz, and PCM sampling rate of 16kHz/44.1kHz
25-May-2021 15
Canaan K510 Datasheet
The input and output can be configured with 1-8 PDM channels. It supports left/right
mono mode and dual mode of PDM. All IO channel modes are unified. The max
number of IO in dual mode is 4.
The serial numbers of enabled channels are from small to big. Random enabling of
each channel is not supported.
Conversion from PCM audio data to PDM audio data for output
TDM Audio
PCM audio in TDM format. Both delay and non-delay modes are supported.
TDM audio input/output data sampling rate of 48kHz, and data width supports 16 bits
(12/16 bits valid ) and 32 bits (20/24/32 bits valid).
1/2/3/4/6/8/12 IOs used to input TDM audio data, and 1 IO used to output TDM audio
data.
0-15 TDM channels can be configured for each input IO, and the biggest channel
number for each channel is 24/IO number;Total input channel number cannot over 24.
I2S audio
I2S audio input/output with data sampling rate of 16kHz / 48kHz, and data width of 32
bits. The valid data width needs to be customized. The sampling clock rate supports
2× data width × data sampling rate.
25-May-2021 16
Canaan K510 Datasheet
Support master mode, which means clockand fsync(TDM)/ws(I2S) are output from
audio.
The input and output audio modes can be configured separately, but the input or output
can only support one mode.
APB2.0 interface used to configure registers, and read/write PCM data. The default
frequency of configurable APB working clock PCLK is 62.5 MHz, and the data interface
is 32bits.
The audio module can start working again after being disabled and re-enabled.
The audio module can start working again after asserting reset and de-asserting reset.
1.3.9. EMAC
EMAC implements a 10/100/1000Mbps Ethernet MAC compatible with the IEEE 802.3 standard.
EMAC can operate in either half or full duplex. The network configuration register is used to
select the speed, duplex mode, and interface type ( RMII or RGMII ). EMAC supports the
following features:
MII/RMII/RGMII interface
10Mbps/100Mbps/1000Mbps speed
Loopback mode
25-May-2021 17
Canaan K510 Datasheet
Support checking the checksum when receiving and discarding the error frame
automatically.
3 DMA queues. Transmit buffer is 8KB, 4KB and 4KB respectively, and receive buffer is
8KB.
Support IEEE 1588-2002 (v1), 1588-2008 (v1 and v2) Standards for Precision Clock
Synchronization Protocol.
1.3.10.Display
The display subsystem drives display devices such as LCD to display images and videos. It
mainly includes the following features:
Support 2D hardware accelerator which supports video layer scaler, OSD layer alpha-
blending, and 90/270 degree rotation.
1.3.11.System
Mailbox
Mailbox works as an intermediate module to support the communicates between CPU, DSP
and other sub-modules. It mainly involves the following functions.
CPU and DSP shake hands with each other, share storage resources through hardware
mutual exclusion (interlock) mechanism.
25-May-2021 18
Canaan K510 Datasheet
SDMA
There are 4 channels for transferring different transactions, with 64 bytes data buffer per
channel.
Single-line, rectangular block, and linked list modes are provided for each DMA channel.
Low power IDLE state of each channel can be set by shutting down corresponding clock.
A 64-bit AXI4 master is used to transfer different channel transactions. The priority of
each transaction is configured with each channel. Higher priority transaction gets higher
chance to be transferred.
PDMA
There are 16 channels for transferring different transactions, with 32 bytes data buffer per
channel. 35 or less peripheral ports are supported by configuration for each channel.
Low power IDLE state of each channel can be set by shutting down corresponding clock.
The priority of each transaction is configured with each channel. Higher priority
transaction gets higher chance to be transferred.
Peripheral data address can only be accessed in 4 bytes aligned with strobe signal to
indicate lower 1/2/4 byte(s) are used, and only the fixed address is supported.
DDR/SRAM data address width is 8 bytes, SRAM data address is 8 bytes aligned, and DDR
data address is byte aligned. Only incremental burst address is supported.
25-May-2021 19
Canaan K510 Datasheet
IOMUX
IOMUX maps the IOs of different functions inside the chip, and maps IO to the actual physical
PAD. It supports the following features:
Access address: Base address is 0x9704_0000. The address space is 512 bytes
(0x9704_0000~ 0x9704_01FF). Each physical PAD is allocated a 4-byte address space,
that is, 32-bit configurable register.
Working frequency: IOMUX is a combinational logic, Its configuration bus is APB with
programmable PCLK clock frequency.
Multi-plexed IO
In functional mode, MAIX2 supports three high-speed IO modes and one low-speed IO
mode. In the low-speed IO mode, it can select 128 types of low speed pins from 191
types according to system configuration. The 128 pins will be taken as PAD IO
interfaces.
RTC
RTC mainly consists the calendar, stopwatch, and periodically wakeup functions.
The calendar can display the year, month, day, week, hour, minute, second in real time.
The periodically wakeup can wake up the system at a specified time point.
25-May-2021 20
Canaan K510 Datasheet
The RTC has the independent power to continue to work when the system is power-off. It has
external crystal oscillator clock source (crystal oscillator frequency is 32768 Hz=2^15 Hz).
Therefore, it can provide accurate time benchmark for the system.
SYS_CTL
SYS_CTL provides clock signals and reset signals for Maix2 SoC, assisting the software to
complete the switching power-on and power-off status of each power domain. SYS_CTL
supports:
Control the dynamic switching of SOC between different power consumption modes
VAD
VAD detects the presence or absence of voices. The detection can be used to wake up the
system from deep sleep by interruption. It supports 512kHz PDM and 16kHz PCM (in I2S
Phillips format or delay/non-delay TDM format) voice data from microphones. Left or right
channel voice data can be chosen by configuration.
WDT
There are 3 watch dog timers which can be used to prevent system lockup that may be caused
by conflicting parts or programs in an SoC.
TIMER
PWM
There are two independent 4-bit Pulse Width Modulation generators, each can generate
multiple types of waveform.
1.3.12.Boot
25-May-2021 21
Canaan K510 Datasheet
External eMMC
External SDcard
UART
During reset, the boot mode of the K510 depends on the values of the BOOT_CTL0 and
BOOT_CTL1.
0 0 UART
1 0 SDcard
1 1 eMMC
25-May-2021 22
Canaan K510 Datasheet
2. Package Information
2.2. Dimension
The K510 uses VFBGA 14mm x14mm with 551 pins and 0.5mm pitch.
25-May-2021 23
Canaan K510 Datasheet
25-May-2021 24
Canaan K510 Datasheet
25-May-2021 25
Canaan K510 Datasheet
Pin# Pin Name Pin Type Pin# Pin Name Pin Type Pin# Pin Name Pin type
25-May-2021 26
Canaan K510 Datasheet
Pin# Pin Name Pin Type Pin# Pin Name Pin Type Pin# Pin Name Pin type
25-May-2021 27
Canaan K510 Datasheet
Pin# Pin Name Pin Type Pin# Pin Name Pin Type Pin# Pin Name Pin type
25-May-2021 28
Canaan K510 Datasheet
3. Electrical Specification
VDD0P9_CORE -0.2~1.08 V
VDD0P9_GNNE -0.2~1.08 V
VDD0P9_DDR -0.2~1.08 V
DDRVDDQ -0.2~1.32/1.44/1.62 V
AVDD0P9_DDRPLL -0.2~1.08 V
VDD1P8_USB -0.2~2.16 V
VDD3P3_USB -0.2~3.96 V
AVDD0P9_PLL -0.2~1.08 V
AVDD0P9_MIPIPLL -0.2~1.08 V
VDD1P2_MIPITx -0.2~1.32 V
VDD1P2_MIPIRx -0.2~1.32 V
VDD1P8_MIPI -0.2~2.16 V
VDD1P8_SEC -0.2~2.16 V
VDD1P8_EFUSE -0.2~2.16 V
AVDD1P8_TS -0.2~2.16 V
VDDIO1P8_0 -0.2~2.16 V
VDDIO1P8_1 -0.2~2.16 V
VDDIO3P3_0 -0.2~2.16/3.96 V
VDDIO3P3_1 -0.2~2.16/3.96 V
VDDIO3P3_2 -0.2~2.16/3.96 V
25-May-2021 29
Canaan K510 Datasheet
VDDIO3P3_3 -0.2~2.16/3.96 V
VDDIO3P3_4 -0.2~2.16/3.96 V
VDDIO3P3_5 -0.2~3.96 V
VDDIO3P3_6 -0.2~2.16/3.96 V
VDDIO3P3_7 -0.2~2.16/3.96 V
25-May-2021 30
Canaan K510 Datasheet
3.3. DC Characteristics
25-May-2021 31
Canaan K510 Datasheet
HS transmit differential
|VOD| 140 200 270 mV 1
voltage
25-May-2021 32
Canaan K510 Datasheet
Notes:
Value when driving into load impedance anywhere in the ZID range.
Output impedance of LP
ZOLP 110 Ω 3,4
transmitter
Notes:
25-May-2021 33
Canaan K510 Datasheet
Though no maximum value for ZOLP is specified, the LP transmitter output impedance
shall ensure the TRLP/TFLP specification is met.
880 mV 1
VIH Logic 1 input voltage
740 mV 2
Notes:
Common-mode voltage HS
VCMRX(DC) 70 330 mV 1,2
receive mode
25-May-2021 34
Canaan K510 Datasheet
70 mV 3
VIDTH Differential input high threshold
40 mV 4
-70 mV 3
VIDTL Differential input low threshold
-40 mV 4
Notes:
Excluding possible additional RF interference of 100mV peak sine wave beyond 450
MHz.
This table value includes a ground difference of 50mV between the transmitter and the
receiver, the static common-mode level tolerance and variations below 450 MHz.
880 mV 1
VIH Logic 1 input voltage
740 mV 2
25-May-2021 35
Canaan K510 Datasheet
Notes:
25-May-2021 36
Canaan K510 Datasheet
Power supply
VDVDD - 1.06 1.1 1.17 V
voltage
Reference
VREF-noise - -1% of VDVDD - +1% of VDVDD V
voltage noise
Termination
VTT - - VDVSS - V
voltage
Driver output
RON [1] VPAD=0.5*VDVDD Typ-10% 34.3 Typ+10% Ω
impedance
DC input logic
VIH(DC) - VREF+0.090 - VDVDD V
high
DC input logic
VIL(DC) - VDVSS - VREF-0.090 V
low
AC input logic
VIH(AC) - VREF+0.150 - - V
high
25-May-2021 38
Canaan K510 Datasheet
AC input logic
VIL(AC) - - - VREF-0.150 V
low
Operating conditions:
Operating current of
HS mode
IVCC33A VCC33A domain under - 0.8 1 mA
(480Mbps)
different modes
FSTX mode
(12Mbps) (with - 8.5 9.4 mA
50pF load)
FSTX mode
- 23 25 mA
(12Mbps) (with 3m
25-May-2021 39
Canaan K510 Datasheet
cable)
FSRX mode
- 11 40 uA
(12Mbps)
LSTX Mode
(1.5Mbps) (with - 4.2 5 mA
600pF load)
LSRX Mode
- 11 40 uA
(1.5Mbps)
Suspend mode
(Without pull-up
- 11 40 uA
resistor
on the DP)
Suspend mode
(With pull-up
- 220 300 uA
resistor on
the DP)
Operating current of
HS mode
IVCC18A VCC18A domain under - 30 36 mA
(480Mbps)
different modes
FSTX mode
(12Mbps) (with - 6.8 8.2 mA
50pF load)
FSTX mode
(12Mbps) (with 3m - 6.8 8.2 mA
cable)
FSRX mode
- 4 5 mA
(12Mbps)
25-May-2021 40
Canaan K510 Datasheet
LSTX Mode
(1.5Mbps) (with - 5.5 6.6 mA
600pF load)
LSRX Mode
- 4 5 mA
(1.5Mbps)
Operating current of
HS mode
IVCC09D VCC09D domain under - 6 9 mA
(480Mbps)
different modes
FSTX mode
(12Mbps) (with - 1.6 6.5 mA
50pF load)
FSTX mode
(12Mbps) (with 3m - 1.6 6.5 mA
cable)
FSRX mode
- 1.6 6.5 mA
(12Mbps)
LSTX Mode
(1.5Mbps) (with - 1.6 6.5 mA
600pF load)
LSRX Mode
- 1.6 6.5 mA
(1.5Mbps)
Operating Ambient
Ta - -40 - 85 ℃
Temperature
25-May-2021 41
Canaan K510 Datasheet
Operating Junction
Tj - -40 - 125 ℃
Temperature
Input levels
Output levels
VCC -
VOH High-level output voltage - - - V
0.2
For DP/DM:
Input levels
25-May-2021 42
Canaan K510 Datasheet
High-speed squelch
Squelch
VHSSQ detection - - 100 mV
detected
threshold
High-speed disconnect
VHSDSC detection - 525 - 625 mV
threshold.
Output levels
Input levels
|VI(DP) -
VDI Differential input sensitivity 0.2 - - V
VI(DM)|
25-May-2021 43
Canaan K510 Datasheet
Output levels
Terminations
Pull-up resistor on
RPU_UP - 1.425 1.5 1.575 KΩ
upstream ports
Pull-down resistor on
RPU_DN downstream - 14.25 15 15.75 KΩ
ports
25-May-2021 44
Canaan K510 Datasheet
Reliability characteristics
VCC33A
VLATCH_33 Latch-up trigger voltage - - 5.4 V
domain
VCC18A
VLATCH_18 Latch-up trigger voltage - - 2.97 V
domain
VCC09A
VLATCH_09 Latch-up trigger voltage - - 1.35 V
domain
25-May-2021 45
Canaan K510 Datasheet
4. Design Recommendation
The following diagram provides the PCB architecture of the EVB design for your reference.
25-May-2021 46
Canaan K510 Datasheet
Terms/Abbreviations
OTG On-the-Go
25-May-2021 47
Canaan K510 Datasheet
SD Security Digital
25-May-2021 48