xtensa instruction set architeture(ISA)

本文探讨了Xtensa处理器的ISA实现及其如何通过24位指令宽度减少代码大小25%,与32位ISA相比。Xtensa的窗格寄存器选项减少了动态数据内存引用,增加了变量存储在寄存器的机会,从而节省了电力。文章还介绍了原子操作,如L32EX、S32EX和GETEX指令,以及它们在远程地址上执行原子访问的能力。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Code density

  • The Xtensa core ISA is implemented as 24-bit instructions
  • This instruction width pro- vides a direct 25% reduction in code size compared with 32-bit ISAs

Xtensa ISA provides a Windowed Registers Option. Xtensa windowed registers re- duce code size by:

  • Eliminating register saves and restores at procedure entry and exit
  • Reducing argument shuffling
  • Allowing more local variables to live permanently in registers

Pipeline

在这里插入图片描述

multi-core support

break-in/break-out

atomic operation:

  • L32EX, S32EX,and GETEX instructions
  1. A load exclusive instruction loads data from a memory location.
  2. Some computation on the loaded data is performed.
  3. An exclusive store with the updated value is stored to the same memory location.
    • The exclusive store succeeds if no other master has performed a store to that location.
    • The exclusive store fails if the location was updated by another master since it was read.

An Xtensa processor can issue exclusive operations on its outbound AXI master port to perform atomic access on a remote address.

ref:

  • Memory Consistency and Event Ordering in Scalable Shared-Memory Multiprocessors

xtensa windowed register

The Xtensa Windowed Registers Option saves power by reducing the number of dynamic data-memory references and increasing the opportunities for variables to reside in registers, where accesses require less power than memory accesses.

The WAITI (Wait for Interrupt) instruction, which is a part of the Interrupt Option, saves power by setting the current interrupt level, powering down the processor’s logic, and waiting for an interrupt.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值