0
  • 聊天消息
  • 系統(tǒng)消息
  • 評(píng)論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會(huì)員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識(shí)你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

AMD Xilinx AXI Interrupt Controller中斷優(yōu)先級(jí)

jf_pJlTbmA9 ? 來源:博客園 ? 作者:博客園 ? 2023-07-11 17:03 ? 次閱讀

中斷優(yōu)先級(jí)
AXI Interrupt Controller支持中斷優(yōu)先級(jí)。 在Vivado Block Design中, bit-0連接的中斷優(yōu)先級(jí)最高, 越靠近bit-0的中斷優(yōu)先級(jí)最高。

100571169-303556-01.png

AXI Interrupt Controller的手冊(cè)pg099中的描述如下:

Priority between interrupt requests is determined by vector position. The least significant bit (LSB, in this case bit 0) has the highest priority.

Intr(0) is always the highest priority interrupt and each successive bit to the left has a corresponding lower interrupt priority.

中斷嵌套
要使用中斷優(yōu)先級(jí),通常也要使能中斷嵌套(Nested Interrupts)。在Vivado Block Design中, 配置AXI Interrupt Controller時(shí),在“advanced”選項(xiàng)中,要選擇“Interrupt Level Register” 。

100571169-303557-02.png

AXI Interrupt Controller的手冊(cè)pg099中的描述如下:

Nested Interrupts
The core provides support for nested interrupts, by implementing an Interrupt Level
Register. This can be used by software to prevent lower priority interrupts from occurring
when handling an interrupt, thus allowing interrupts to be enabled during interrupt
handling to immediately take a higher priority interrupt. Software must save and restore
the Interrupt Level Register and return address.
Because the processor jumps directly to the unique Interrupt vector address to service a
particular interrupt when using fast interrupt mode, the user interrupt service routine code itself must save and restore the Interrupt Level Register and Return Address in this case. In
normal interrupt mode, this is handled by the software driver.

選擇“Interrupt Level Register” 后,中斷處理代碼會(huì)保存和恢復(fù)r14,并且在進(jìn)入設(shè)備的ISR之前會(huì)使能中斷。 具體代碼請(qǐng)查看XIntc_DeviceInterruptHandler( )。

Xintc.h中的說明如下:

For nested interrupts, XIntc_DeviceInterruptHandler saves
microblaze r14 register on entry and restores on exit. This is
required since compiler does not support nesting. It enables
Microblaze interrupts after blocking further interrupts from
the current interrupt number and interrupts below current
interrupt priority by writing to Interrupt Level Register of
INTC on entry. On exit, it disables microblaze interrupts and
restores ILR register default value(0xFFFFFFFF)back. It is
recommended to increase STACK_SIZE in linker script for nested
interrupts.

本文轉(zhuǎn)載自:博客園

審核編輯:湯梓紅

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場(chǎng)。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請(qǐng)聯(lián)系本站處理。 舉報(bào)投訴
  • amd
    amd
    +關(guān)注

    關(guān)注

    25

    文章

    5376

    瀏覽量

    133378
  • Xilinx
    +關(guān)注

    關(guān)注

    70

    文章

    2137

    瀏覽量

    120386
  • 中斷
    +關(guān)注

    關(guān)注

    5

    文章

    889

    瀏覽量

    41219
  • AXI
    AXI
    +關(guān)注

    關(guān)注

    1

    文章

    127

    瀏覽量

    16512
收藏 人收藏

    評(píng)論

    相關(guān)推薦

    stm32的中斷優(yōu)先級(jí)基本原理介紹

    stm32的中斷具有不同的優(yōu)先級(jí),可以使用NVIC(嵌套向量中斷控制器,Nested Vectored Interrupt Controller
    發(fā)表于 08-13 08:46

    STM32中斷使用NVIC中斷優(yōu)先級(jí)管理

    一、STM32中斷使用NVIC 中斷優(yōu)先級(jí)管理Nested Vectored Interrupt Controller,嵌套向量
    發(fā)表于 01-14 09:01

    STM32F10X的中斷優(yōu)先級(jí)

    STM32(Cortex-M3)中有兩個(gè)優(yōu)先級(jí)的概念搶占式優(yōu)先級(jí)和響應(yīng)優(yōu)先級(jí),有人把響應(yīng)優(yōu)先級(jí)稱作亞優(yōu)先級(jí)或副
    發(fā)表于 11-04 15:02 ?41次下載

    STM32中斷優(yōu)先級(jí)和開關(guān)總中斷教程

    STM32中斷優(yōu)先級(jí)和開關(guān)總中斷 教程
    發(fā)表于 11-23 18:03 ?0次下載

    NVIC中斷優(yōu)先級(jí)分組

    NVIC中斷優(yōu)先級(jí)分組
    發(fā)表于 03-26 10:45 ?1次下載

    DSP中斷如何設(shè)置優(yōu)先級(jí)

    原以為2812中斷不能設(shè)置優(yōu)先級(jí)。實(shí)際上硬件上優(yōu)先級(jí)是做好的。但軟件上有辦法來設(shè)置優(yōu)先級(jí)。
    發(fā)表于 04-08 17:20 ?20次下載

    如何設(shè)置51單片機(jī)的中斷優(yōu)先級(jí)

    PS:串行口中斷優(yōu)先級(jí)控制位。PS=1設(shè)定串行口為高優(yōu)先級(jí)中斷;PS=0為低優(yōu)先級(jí)中斷。
    發(fā)表于 12-17 16:28 ?3.3w次閱讀

    51單片機(jī)的中斷優(yōu)先級(jí)是怎么樣的及中斷嵌套的資料說明

    在MCS-中斷優(yōu)先級(jí)中由中斷優(yōu)先級(jí)寄存器IP來高置的,IP中某位設(shè)為1,相應(yīng)的中斷就是高優(yōu)先級(jí)
    發(fā)表于 08-20 17:31 ?2次下載
    51單片機(jī)的<b class='flag-5'>中斷</b><b class='flag-5'>優(yōu)先級(jí)</b>是怎么樣的及<b class='flag-5'>中斷</b>嵌套的資料說明

    STM32中斷及FreeRTOS中斷優(yōu)先級(jí)配置

    STM32中斷,及FreeRTOS中斷優(yōu)先級(jí)配置
    的頭像 發(fā)表于 03-04 11:45 ?8607次閱讀
    STM32<b class='flag-5'>中斷</b>及FreeRTOS<b class='flag-5'>中斷</b><b class='flag-5'>優(yōu)先級(jí)</b>配置

    2.FreeRTOS中斷優(yōu)先級(jí)和任務(wù)優(yōu)先級(jí)

    FreeRTOS中斷優(yōu)先級(jí)和任務(wù)優(yōu)先級(jí)架構(gòu):Cortex-M3版本:FreeRTOS V9.0.0前言:最開始,我并沒有搞清楚什么是中斷優(yōu)先級(jí)
    發(fā)表于 12-04 20:21 ?8次下載
    2.FreeRTOS<b class='flag-5'>中斷</b><b class='flag-5'>優(yōu)先級(jí)</b>和任務(wù)<b class='flag-5'>優(yōu)先級(jí)</b>

    STM32筆記之中斷優(yōu)先級(jí)和開關(guān)總中斷

    STM32中斷優(yōu)先級(jí)和開關(guān)總中斷一,中斷優(yōu)先級(jí):STM32(Cortex-M3)中的優(yōu)先級(jí)概念S
    發(fā)表于 01-14 15:24 ?13次下載
    STM32筆記之<b class='flag-5'>中斷</b><b class='flag-5'>優(yōu)先級(jí)</b>和開關(guān)總<b class='flag-5'>中斷</b>

    STM8S105硬件中斷映射表和軟件中斷優(yōu)先級(jí)

    硬件中斷優(yōu)先級(jí)中0最高,依次優(yōu)先級(jí)降低。只有當(dāng)軟件優(yōu)先級(jí)相同時(shí),單片機(jī)才進(jìn)行硬件優(yōu)先級(jí)的判斷,且硬件優(yōu)先
    發(fā)表于 01-14 15:28 ?1次下載
    STM8S105硬件<b class='flag-5'>中斷</b>映射表和軟件<b class='flag-5'>中斷</b><b class='flag-5'>優(yōu)先級(jí)</b>位

    中斷優(yōu)先級(jí)處理的原則及配置 搶占優(yōu)先級(jí)和響應(yīng)優(yōu)先級(jí)的區(qū)別

    首先我們需要知道什么是中斷優(yōu)先級(jí)中斷優(yōu)先級(jí)是CPU響應(yīng)中斷的先后順序
    的頭像 發(fā)表于 05-18 15:10 ?2.6w次閱讀
    <b class='flag-5'>中斷</b><b class='flag-5'>優(yōu)先級(jí)</b>處理的原則及配置 搶占<b class='flag-5'>優(yōu)先級(jí)</b>和響應(yīng)<b class='flag-5'>優(yōu)先級(jí)</b>的區(qū)別

    如何使用 AXI Interrupt Controller完成含超16次中斷的布線

    本文主要講解在 PL 中從 IP 核到 PS 之間需要完成含超 16 次中斷的布線的情況下,該如何使用 AXI Interrupt Controller (INTC)。其中使用的
    的頭像 發(fā)表于 08-24 09:21 ?2923次閱讀

    freertos中斷優(yōu)先級(jí)在哪設(shè)置

    FreeRTOS是一個(gè)流行的實(shí)時(shí)操作系統(tǒng),它廣泛應(yīng)用于嵌入式系統(tǒng)開發(fā)。在FreeRTOS中,中斷優(yōu)先級(jí)是一個(gè)重要的概念,因?yàn)樗鼪Q定了中斷處理的順序和響應(yīng)時(shí)間。 1. 理解中斷
    的頭像 發(fā)表于 09-02 14:17 ?230次閱讀