ARMv7 architecture study notes (I)

Publisher:素心悠远Latest update time:2020-02-04 Source: eefocusKeywords:ARMv7 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

This round of learning process mainly focuses on the learning of ARM NEON technology, mainly including the learning of instructions and the summary of programming skills.


ARM NEON technology is an optional component of the ARMv7 architecture. NEON is a 64/128-bit hybrid SIMD technology for advanced media and signal processing applications and embedded processors. It is implemented as part of the ARM core, but has its own execution pipeline and register set, which is different from the ARM core register set.


NEON supports integer, fixed-point, and single-precision floating-point SIMD operations. These instructions are available in both ARM and Thumb-2.

NEON extension register set:

--- 16-128bit four-word register Q0~Q15

--- 32-64bit double word register D0~D31

Many NEON data processing instructions are available in normal, long, wide, narrow, and saturating variants. NEON instructions can process:

* A doubleword vector consisting of:

---8 8-bit elements

---4 16-bit elements

---2 32-bit elements

---1 64-bit element

* A quadword vector consisting of

---16 8-bit elements

---8 16-bit elements

--- 4 32-bit elements

--- 2 64-bit elements


Normal instructions

Normal instructions can operate on any of the above vector types and produce a result vector of the same size and usually the same type as the operand vector. You can specify that the operands and results of normal instructions must all be quadwords by appending Q to the instruction mnemonic. When this is specified, the assembler generates an error if either the operand or the result is not a quadword.



Long instructions

Long instructions operate on doubleword vector operands and produce a quadword vector result. The elements produced are usually twice the width of the operand elements and are of the same type. Long instructions are specified by appending L to the instruction mnemonic.


Wide Instructions

Wide instructions operate on a doubleword vector operand and a quadword vector operand. Such instructions produce a quadword vector result. The elements produced and the elements of the first operand are twice the width of the elements of the second operand. Wide instructions are specified by appending W to the instruction mnemonic.


Narrow instructions

Narrow instructions operate on quadword vector operands and produce doubleword vector results. The elements produced are usually half the width of the operand elements.
Narrow instructions are specified by appending N to the instruction mnemonic.


Saturation Instructions

Saturating instructions are specified by using a Q prefix between the V and the instruction mnemonic.

Keywords:ARMv7 Reference address:ARMv7 architecture study notes (I)

Previous article:ARM LCD and LCD controller
Next article:Establish ARM cross-compilation environment (arm-none-linux-gnueabi-gcc with EABI)

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号