Qualcomm Hexagon

Hexagon is the brand name for a family of digital signal processor (DSP) products by Qualcomm. Hexagon is also known as QDSP6, standing for “sixth generation digital signal processor.” According to Qualcomm, the Hexagon architecture is designed to deliver performance with low power over a variety of applications.[2][3]

Hexagon
DesignerQualcomm
Bits32-bit
Introduced2006 (QDSP6)
Design4-way multithreaded VLIW
TypeRegister-register
EncodingFixed 4 byte per instruction, up to 4 instructions in VLIW multiinstruction
OpenProprietary
Registers
General-purpose32-bit GPR: 32, can be paired to 64-bit[1]

Each version of Hexagon has an instruction set and a micro-architecture. These two features are intimately related.

Hexagon is used in Qualcomm Snapdragon chips, for example in smartphones, cars, wearable devices and other mobile devices and is also used in components of cellular phone networks.

Instruction set architecture

Computing devices have instruction sets, which are their lowest, most primitive languages. Common instructions are those which cause two numbers to be added, multiplied or combined in other ways, as well as instructions that direct the processor where to look in memory for its next instruction. There are many other types of instructions.

Assemblers and compilers that translate computer programs into streams of instructions – bit streams - that the device can understand and carry out (execute). As an instruction stream executes, the integrity of system function is supported by the use of instruction privilege levels. Privileged instructions have access to more resources in the device, including memory. Hexagon supports privilege levels.

Originally, Hexagon instructions operated on integer numbers but not floating point numbers,[4] but in v5 floating point support was added.[5]

The processing unit which handles execution of instructions is capable of in-order dispatching up to 4 instructions (the packet) to 4 Execution Units every clock.[6][7]

Micro-architecture

Micro-architecture is the physical structure of a chip or chip component that makes it possible for a device to carry out the instructions. A given instruction set can be implemented by a variety of micro-architectures. The buses – data transfer channels – for Hexagon devices are 32 bits wide. That is, 32 bits of data can be moved from one part of the chip to another in a single step. The Hexagon micro-architecture is multi-threaded,[3] which means that it can simultaneously process more than one stream of instructions, enhancing data processing speed. Hexagon supports very long instruction words,[8][9] which are groupings of four instructions that can be executed “in parallel.” Parallel execution means that multiple instructions can run simultaneously without one instruction having to complete before the next one starts. The Hexagon micro-architecture supports single instruction, multiple data operations,[10] which means that when a Hexagon device receives an instruction, it can carry out the operation on more than one piece of data at the same time.

According to 2012 estimation, Qualcomm shipped 1.2 billion DSP cores inside its system on a chip (SoCs) (average 2.3 DSP core per SoC) in 2011, and 1.5 billion cores were planned for 2012, making the QDSP6 the most shipped architecture of DSP[11] (CEVA had around 1 billion of DSP cores shipped in 2011 with 90% of IP-licensable DSP market[12]).

The Hexagon architecture is designed to deliver performance with low power over a variety of applications. It has features such as hardware assisted multithreading, privilege levels, Very Long Instruction Word (VLIW), Single Instruction Multiple Data (SIMD),[13][14] and instructions geared toward efficient signal processing. Hardware multithreading is implemented as barrel temporal multithreading - threads are switched in round-robin fashion each cycle, so the 600 MHz physical core is presented as three logical 200 MHz cores before V5.[15][16] Hexagon V5 switched to dynamic multithreading (DMT) with thread switch on L2 misses, interrupt waiting or on special instructions.[16][17]

At Hot Chips 2013 Qualcomm announced details of their Hexagon 680 DSP. Qualcomm announced Hexagon Vector Extensions (HVX). HVX is designed to allow significant compute workloads for advanced imaging and computer vision to be processed on the DSP instead of the CPU.[18] In March 2015 Qualcomm announced their Snapdragon Neural Processing Engine SDK which allow AI acceleration using the CPU, GPU and Hexagon DSP.[19]

Qualcomm's Snapdragon 855 contains their 4th generation on-device AI engine, which includes the Hexagon 690 DSP and Hexagon Tensor Accelerator (HTA) for AI acceleration.[20] Snapdragon 865 contains the 5th generation on-device AI engine based on the Hexagon 698 DSP capable of 15 trillion operations per second (TOPS).[21] Snapdragon 888 contains the 6th generation on-device AI engine based on the Hexagon 780 DSP capable of 26 TOPS.[22] Snapdragon 8 contains the 7th generation on-device AI engine based on the Hexagon DSP capable of 52 TOPS and up to 104 TOPS in some cases.[23]

Software support

Operating systems

The port of Linux for Hexagon runs under a hypervisor layer ("Hexagon Virtual Machine"[24]) and was merged with the 3.2 release of the kernel.[25][26] The original hypervisor is closed-source, and in April 2013 a minimal open-source hypervisor implementation for QDSP6 V2 and V3, the "Hexagon MiniVM" was released by Qualcomm under a BSD-style license.[27][28]

Compilers

Support for Hexagon was added in 3.1 release of LLVM by Tony Linthicum.[29] Hexagon/HVX V66 ISA support was added in 8.0.0 release of LLVM.[30] There is also a non-FSF maintained branch of GCC and binutils.[31]

Adoption of the SIP block

Qualcomm Hexagon DSPs have been available in Qualcomm Snapdragon SoC since 2006.[32][33] In Snapdragon S4 (MSM8960 and newer) there are three QDSP cores, two in the Modem subsystem and one Hexagon core in the Multimedia subsystem. Modem cores are programmed by Qualcomm only, and only Multimedia core is allowed to be programmed by user.

They are also used in some femtocell processors of Qualcomm, including FSM98xx, FSM99xx and FSM90xx.[34]

Third-party integration

In March 2016, it was announced that semiconductor company Conexant's AudioSmart audio processing software was being integrated into Qualcomm's Hexagon.[35]

In May 2018 wolfSSL added support for using Qualcomm Hexagon.[36] This is support for running wolfSSL crypto operations on the DSP. In addition to use of crypto operations a specialized operation load management library was later added.

Versions

There are six versions of QDSP6 architecture released: V1 (2006), V2 (2007–2008), V3 (2009), V4 (2010–2011), QDSP6 V5 (2013, in Snapdragon 800[37]); and QDSP6 V6 (2016, in Snapdragon 820).[33] V4 has 20 DMIPS per milliwatt, operating at 500 MHz.[32][33]Clock speed of Hexagon varies in 400–2000 MHz for QDSP6 and in 256–350 MHz for previous generation of the architecture, the QDSP5.[38]

Versions of QDSP6Process node, nmYear[16]Number of simultaneous threadsPer-thread clock, MHzTotal core clock, MHzProduct
QDSP6 V165[16]2006
QDSP6 V2[39]652007[16]6100600
QDSP6 V3 (1st gen)[39]452009667400
QDSP6 V3 (2nd gen)[39]4520094100400
QDSP6 V4[39] (V4M, V4C, V4L[16])2820103[17]167500Snapdragon

600

QDSP6 V5[40] (V5A, V5H[16])2820133[16]200 or greater with DMT[17]600Snapdragon

410/412/800/801

53612/282014205/208/210/212

Snapdragon 425/427/429/430/435/439

V50282014Snapdragon

415/610/615/616/805

54614/282015Snapdragon

450/617/625/626/632

V5620/282015Snapdragon

650/652/653/808/810

642142017Snapdragon

630

QDSP6 V6 or 68014201645002000 (820[41][42] & 821)

787 (660)[43]

Snapdragon

820/821/636/660

682102017Snapdragon

835

683112020Snapdragon

662/460

68510/112018(3 TOPS)Snapdragon

850/845/670/675/678/710/712

6866/8/112019(3.3 TOPS)Snapdragon

695/685/680/665/480/480+

68882019(3.6 TOPS)Snapdragon

730(G)/732G

69072019(7 TOPS)Snapdragon

855/855+/860/8c/8cx
Microsoft SQ1/SQ2

69282020(5 TOPS)Snapdragon

720G/690/7c

69482020(4.7 TOPS)Snapdragon

750G

69672020(5.4 TOPS)Snapdragon

765(G)/768G

69872020(15 TOPS)Snapdragon

865/865+/870

7705/62021(12 TOPS)Snapdragon

778G/778G+/780G/782G

78052021(26 TOPS/ 32TOPS)Snapdragon

888/888+

790?2022?Snapdragon 8 gen 1 / 8+ gen 1

Availability in Snapdragon products

Both Hexagon (QDSP6) and pre-Hexagon (QDSP5) cores are used in modern Qualcomm SoCs, QDSP5 mostly in low-end products. Modem QDSPs (often pre-Hexagon) are not shown in the table.

QDSP5 usage:

Snapdragon generationChipset (SoC) IDDSP generationDSP frequency, MHzProcess node, nm
S1[38]MSM7627, MSM7227, MSM7625, MSM7225QDSP532065
S1[38]MSM7627A, MSM7227A, MSM7625A, MSM7225AQDSP535045
S2[38]MSM8655, MSM8255, APQ8055, MSM7630, MSM7230QDSP525645
S4 Play[38]MSM8625, MSM8225QDSP535045
S200[44]8110, 8210, 8610, 8112, 8212, 8612, 8225Q, 8625QQDSP538445 LP

QDSP6 (Hexagon) usage:

Snapdragon generationChipset (SoC) IDQDSP6 versionDSP frequency, MHzProcess node, nm
S1[38]QSD8650, QSD8250QDSP660065
S3[38]MSM8660, MSM8260, APQ8060QDSP6 (V3?)40045
S4 Prime[38]MPQ8064QDSP6 (V3?)50028
S4 Pro[38]MSM8960 Pro, APQ8064QDSP6 (V3?)50028
S4 Plus[38]MSM8960, MSM8660A, MSM8260A, APQ8060A, MSM8930,
MSM8630, MSM8230, APQ8030, MSM8627, MSM8227
QDSP6 (V3?)50028
S400[44]8926, 8930, 8230, 8630, 8930AB, 8230AB, 8630AB, 8030AB, 8226, 8626QDSP6V450028 LP
S600[44]8064T, 8064MQDSP6V450028 LP
S800[44]8974, 8274, 8674, 8074QDSP6V5A60028 HPm
S820[41]8996QDSP6V6200014 FinFET LPP

Hardware codec supported

The different video codecs supported by the Snapdragon SoCs.

D - decode; E - encode

FHD = FullHD = 1080p = 1920x1080px

HD = 720p which can be 1366x768px or 1280x720px

Snapdragon 200 series

The different video codecs supported by the Snapdragon 200 series.

CodecSnapdragon

200[45]

Snapdragon

200[45]

Qualcomm

205[46]

Snapdragon

208/210[47]

Snapdragon

212[48]

Availability20132013201720142015
HexagonQDSP5QDSP6536536536
H263D & ED & ED & ED & ED & E
VC-1
H.264D & ED & ED & ED & ED & E
H.264 10-bit-----
VP8D & ED & ED & ED & ED & E
H.265D HD & E HDD HD & E HDD HD & E HDD FHD & E HDD FHD & E HD
H.265 10-bit-----
H.265 12-bit-----
VVC
VP9-----
VP9 10-bit-----
AV1-----

Snapdragon 400 series

The different video codecs supported by the Snapdragon 400 series.

CodecSnapdragon

400[49]

Snapdragon

410/415[50]

Snapdragon

425/427

Snapdragon

429/439[51]

Snapdragon

450[52]

Snapdragon

460[53]

Snapdragon

480/480+[54]

AvailabilityQ4 20132014/2015Q1 2016/Q3 2017Q2 2018Q2 2017Q1 2020Q1 2021
HexagonQDSP6QDSP6 V5536(256KB)536546683686
H263D & ED & ED & ED & ED & ED & ED & E
VC-1
H.264D & ED & ED & ED & ED & ED & ED & E
H.264 10-bit------D & E
VP8D & ED & ED & ED & ED & ED & ED & E
H.265-D & ED & ED & ED & ED & ED & E
H.265 10-bit------
H.265 12-bit------
VVC------
VP9----D & ED & E
VP9 10-bit------
AV1-------
Video frame rate

support Decoding

HD 60 fps
FHD 60 fpsFHD 60 fpsFHD 60 fps
Video frame

rate support

Encoding

HD 60 fps
FHD 60 fpsFHD 60 fpsFHD 60 fps

Snapdragon 600 series

The different video codecs supported by the Snapdragon 600 series.

CodecSnapdragon 600[55]Snapdragon 610[56]Snapdragon 650/652/653Snapdragon 630[57]Snapdragon 632[51]Snapdragon 636/660[57]Snapdragon 662[58]Snapdragon 665[59]Snapdragon 670/675/678[60]Snapdragon 690[61]
AvailabilityQ1 2013Q1 2015Q2 2018Q1 2020Q2 20192019Q2 2020
HexagonQDSP6 V4QDSP6 V50QDSP6 V56642546680683686685692
H263D & ED & ED & ED & ED & ED & ED & ED & ED & ED & E
VC-1D[62] & ?
H.264D & ED & ED & ED & ED & ED & ED & ED & ED & ED & E
H.264 10-bit---------
VP8D & ED & ED & ED & ED & ED & ED & ED & ED & ED & E
H.265-D & ED & ED & ED & ED & ED & ED & ED & E
H.265 10-bit---D & ?-D & ?--D & E
VVC----------
VP9--D[62] & ?D & ED & ED & ED & ED & ED & ED & E
VP9 10-bit---------
AV1----------
FPS
Video decoding frame rate supportHD 60 fpsHD 120 fpsHD 240 fps[63]HD 240 fpsHD 240 fps[64]HD 60 fpsHD 240 fpsHD 240 fpsHD 240 fps
FHD 30 fpsFHD 60 fpsFHD 120 fpsFHD 120 fps[63]FHD 120 fpsFHD 120 fps[64]FHD 60 fpsFHD 120 fpsFHD 120 fpsFHD 120 fps
No 4KNo 4K4K30 fps4K30 fps[63]4K30 fps4K30 fps[64]No 4K4K60 fps4K60 fps[60]4K60 fps
Video encoding frame rate supportHD 60 fpsHD 60 fpsHD 240 fps[63]HD 240 fpsHD 240 fps[64]HD 60 fpsHD 240 fpsHD 240 fpsHD 240 fps
FHD 30 fpsFHD 30 fpsFHD 120 fpsFHD 120 fps[63]FHD 120 fpsFHD 120 fps[64]FHD 60 fpsFHD 120 fpsFHD 120 fpsFHD 120 fps
No 4KNo 4K4K30 fps4K30 fps[63]4K30 fps4K30 fps[64]No 4K4K30 fps4K30 fps4K30 fps
HDR formats
Display and

playback

HDR10, HLG
Video

recording

HDR10, HLG

Snapdragon 700 series

The different video codecs supported by the Snapdragon 700 series.

CodecSnapdragon

710[65]/712[66]

Snapdragon

720G[67]

Snapdragon

730G[68]/732G[69]

Snapdragon

765[70]/765G[71]

/768G[71]

Snapdragon

778G[72]

Snapdragon

780G[73]

AvailabilityQ2 2018 / Q1 2019Q1 2020Q2 2019 / Q3 2020Q2 2019 / Q2 2019 / Q2 2020Q2 2021Q1 2021
Hexagon685692688696770770
H263D & ED & ED & ED & E
VC-1D & ED & ED & ED & E
H.264D & ED & ED & ED & E
H.264 10-bit--??
VP8D & ED & ED & ED & E
H.265D & ED & ED & ED & E
H.265 10-bitDDD & ED & E
H.265 12-bit----
VVC----
VP9D & ED & ED & ED & E
VP9 10-bitDDDD
AV1----
FPS
Video frame

rate support

Decoding

HD 240 fpsHD 240 fpsHD 240 fpsHD 480 fps
FHD 120 fpsFHD 120 fpsFHD 120 fps?
4K 30fps4K 30fps4K 30fps4K 60fps
Video frame

rate support

Encoding

HD 240 fpsHD 240 fpsHD 240 fpsHD 480 fps
FHD 120 fpsFHD 120 fpsFHD 120 fps?
4K 30fps4K 30fps4K 30fps?
HDR formats
Display and

playback

10-bit HDRHDR10, HLGHDR10, HLG, HDR10+
Video

recording

HDR10, HLGHDR10, HLG, HDR10+
Photo

recording

10-bit HDR HEIF

Snapdragon 800 series

The different video codecs supported by the Snapdragon 800 series.

CodecSnapdragon

800[74]

Snapdragon

801[74]

Snapdragon

805[75]

Snapdragon

810[76]

Snapdragon

820/821[77]

Snapdragon

835[78]

Snapdragon

845/850[79]

Snapdragon

855/855+[80]

Snapdragon

865/865+

/870[81]

Snapdragon

888[82]

Snapdragon

8 gen 1

AvailabilityQ2 2013Q1 2014Q1 2014Q3 2014Q4 2015

Q3 2016

Q2 2017Q1 201820192019

2021

Q4 20202021
HexagonQDSP6 V5QDSP6 V5QDSP6 V50QDSP6 V56680682685690[83]698780790
MPEG-4D & ED & ED & ED & ED & ED & ED & ED & ED & ED & E
H263D & ED & ED & ED & ED & E[84]D & ED & ED & ED & ED & E
VC-1D & ED & ED & ED & ED & ED & E
H.264D & ED & ED & ED & ED & E[85]D & ED & ED & ED & ED & E
H.264 10-bitN/AN/AN/AN/AN/AN/AD & ED & ED & ED & E
VP8D & ED & ED & ED & ED & E[86]D & ED & ED & ED & ED & E
H.265N/AD & E 720P30D & ED & ED & ED & ED & ED & ED & ED & E
H.265 10-bitN/AN/AN/AN/ADDD & ED & ED & ED & E
VP9N/AN/AN/AN/ADD & ED & ED & ED & ED & E
VP9 10-bitN/AN/AN/AN/ADDD & ED & ED & ED & E
AV1N/AN/AN/AN/AN/AN/AN/AN/AN/AN/A
VVCN/AN/AN/AN/AN/AN/AN/AN/AN/AN/A
FPS
Decoding

FPS

HD@120HD@240HD@480[79]HD@480[87]HD@960
FHD@60FHD@120FHD@240[79]FHD@240?
4K@304K@60?4K@120
8K@?8K@60
Encoding

FPS

HD@120HD@240HD@480[88]HD@480HD@960
FHD@60FHD@120FHD@240[88]FHD@240?
4K@304K@60[88]4K@604K@120
8K@30
HDR formats
Display and

playback

HDRHDR10,

HLG[89]

HDR10, HLG,

HDR10+, Dolby Vision

Video

recording

HDR10,

HLG[89]

HDR10, HLG,

HDR10+

HDR10, HLG,

HDR10+, Dolby Vision

Photo

recording

10-bit HDR HEIF

Code sample

This is a single instruction packet from the inner loop of a FFT:[7][17]

{ R17:16 = MEMD(R0++M1)  MEMD(R6++M1) = R25:24  R20 = CMPY(R20, R8):<<1:rnd:sat  R11:10 = VADDH(R11:10, R13:12)}:endloop0

This packet is claimed by Qualcomm to be equal to 29 classic RISC operations; it includes vector add (4x 16-bit), complex multiply operation and hardware loop support. All instructions of the packet are done in the same cycle.

See also

References

External links