Cov txheej txheem:

Tsim ntawm Programmable Interrupt Controller hauv VHDL: 4 Cov Kauj Ruam
Tsim ntawm Programmable Interrupt Controller hauv VHDL: 4 Cov Kauj Ruam

Video: Tsim ntawm Programmable Interrupt Controller hauv VHDL: 4 Cov Kauj Ruam

Video: Tsim ntawm Programmable Interrupt Controller hauv VHDL: 4 Cov Kauj Ruam
Video: Kev Chim Ntawm Neeg Thiab Dab ( Part 51 ) muaj koob pauj kev chim . 2024, Hlis ntuj nqeg
Anonim
Tsim ntawm Programmable Interrupt Controller hauv VHDL
Tsim ntawm Programmable Interrupt Controller hauv VHDL

Kuv dhau los ntawm cov lus teb uas kuv tau txais hauv blog no. Ua tsaug rau cov saib rau kuv blog thiab txhawb kuv kom qhia kuv qhov kev paub nrog koj. Lub sijhawm no, Kuv tab tom nthuav qhia qhov tsim ntawm lwm qhov kev nthuav dav peb pom hauv txhua SOCs - cuam tshuam Kev Tswj.

Peb yuav tsim qhov yooj yim tab sis muaj zog Programmable Interrupt Controller. Nws yog qhov kev teeb tsa tau ua tiav thiab ntsuas qhov tsim tau uas tuaj yeem nqa tau hla txhua lub platform. Kuv tsim qhov no tom qab nyeem ntau ntawm qee qhov cuam tshuam cuam tshuam cov tswj vaj huam sib luag tawm muaj xws li NVIC, 8259a, RISC-V PLIC, Microblaze's INTC thiab lwm yam. nrog kev pab los ntawm Interrupt Controller.

Kauj ruam 1: Kev qhia tshwj xeeb

Hauv qab no yog cov lus qhia tshwj xeeb ntawm IP:

  • AHB3-Lite interface.
  • Static configurable tsis:

    • Tsis muaj qhov cuam tshuam sab nraud; txhawb nqa txog 63 cuam tshuam.
    • Tsis muaj qib tseem ceeb; txhawb nqa txog 63 qib.
    • Tsis muaj zes qib; txhawb nqa txog 8 qib kev ua zes. 
    • Npav dav; 32o64 ib.
  • Thoob plaws ntiaj teb thiab hauv zos npog ntsej muag cuam tshuam.
  • Dynamically configurable qib tseem ceeb rau txhua qhov cuam tshuam.
  • Ob hom kev ua haujlwm - Hom Zes Ua Ntej thiab Hom Ua Ntej Ua Ntej.
  • Txhawb nqa-qib siab rhiab cuam tshuam.

RISC-V PLIC cov lus qhia tshwj xeeb tau tshoov siab cuam tshuam kev sib tuav tes tau siv hauv kev tsim.

Kev cuam tshuam ua ntej tso tawm yog kev tshoov siab los ntawm 8259a

Lwm yam nyeem: Microblaze INTC, NVIC

Kauj ruam 2: Txheej txheem cej luam ntawm PIC

Txheej txheem cej luam ntawm PIC
Txheej txheem cej luam ntawm PIC

Programmable Interrupt Controller (PIC) tau txais ntau qhov cuam tshuam los ntawm cov khoom siv sab nraud thiab sib koom ua ke rau hauv ib qho cuam tshuam rau cov zis rau lub hom phiaj ua haujlwm.

PIC raug tswj los ntawm kev tswj hwm thiab cov xwm txheej sau npe. Txhua PIC cov ntawv sau npe tau cim tseg, thiab nkag mus tau los ntawm AHB3-Lite npav npav.

Lub txhab nyiaj sau npe suav nrog teeb tsa kev teeb tsa, qhib kev rau npe, tseem tos cov npe, cov npe hauv kev pabcuam, cov npe tseem ceeb thiab tus lej ID, uas yog ib txwm cuam tshuam hauv Kev Tswj.

Kev teeb tsa sau npe siv los teeb tsa hom kev ua haujlwm ntawm PIC. Nws tuaj yeem ua haujlwm nyob rau hauv Hom Siab Zaum lossis Hom Ua Ntej Ua Ntej.

Txhua qhov cuam tshuam tuaj yeem raug xaiv ua ntej thiab npog ib tus zuj zus. Kev npog ntsej muag thoob ntiaj teb ntawm txhua qhov cuam tshuam kuj tseem txhawb nqa.

Lub txhab nyiaj sau npe cuam tshuam nrog Qhov Tseem Ceeb Daws Teeb Meem thiab BTC (Binary-Tree-Comparator) txhawm rau daws qhov tseem ceeb ntawm kev ncua kev cuam tshuam tseem ceeb thiab lees paub cuam tshuam rau cov txheej txheem raws li. Tus lej ID muaj tus ID ntawm qhov tseem ceeb tshaj plaws uas tseem tab tom cuam tshuam.

Kauj Ruam 3: RTL Tsim thiab Siv

RTL Tsim thiab Siv
RTL Tsim thiab Siv

PIC tsim kev nyuaj siab ntawm kev txo qis qis ntawm kev daws teeb meem ua ntej, uas yog lub sijhawm tseem ceeb tshaj plaws ntawm kev tsim qauv. Txij li qhov kev tsim kho daws qhov muaj feem thib ib zaug hauv ib teev, kev ua haujlwm tsis zoo nrog qhov nce ntawm cov peev txheej nrog Log2 nyuaj.

Kev tsim qauv tau ua tiav tiav thiab sijhawm txheeb xyuas qhov ua tau raws cov hauv qab no ntawm Artix-7 FPGAs.

  • Mus txog 15 qhov chaw: 100 MHz
  • Mus txog 63 qhov chaw: 50 MHz

Kev cuam tshuam kev ncua sijhawm ntxiv los ntawm PIC ib leeg yog 3 teev mus (Tsis suav nrog lub sijhawm hloov pauv ntawm Tus Txheej Txheem thiab thawj ISR cov lus qhia nqa lub sijhawm).

Kauj Ruam 4: Cov Lus Tseem Ceeb thiab Cov Ntaub Ntawv Txuas

Cov Lus Tseem Ceeb:

  • Yog tias AHB3-Lite interface tsis xav tau, koj tuaj yeem hloov cov qauv saum toj kawg nkaus thiab siv lub cev pob txha tsim ntawm PIC. Txawm li cas los xij lub rooj sib tw ntsuas tau muab rau IP nrog AHB3-Lite Interface.
  • PIC IP v1.0 yog lub tshuab nqa tau tag, liab qab RTL tsim.
  • Muaj peev xwm txheeb xyuas kom ua haujlwm ntawm ob hom.

Cov ntaub ntawv txuas nrog:

  • Tsim cov lej thiab cov ntawv xeem hauv VHDL.
  • Cov ntaub ntawv IP tag nrho.

Nws yog qhov qhib-tsim tsim … Xav siv dawb …

Rau txhua qhov lus nug, txhua lub sijhawm:

Muj Raj

Pom zoo: