Cov txheej txheem:
- Kauj ruam 1: Kev qhia tshwj xeeb
- Kauj ruam 2: Txheej txheem cej luam ntawm PIC
- Kauj Ruam 3: RTL Tsim thiab Siv
- Kauj Ruam 4: Cov Lus Tseem Ceeb thiab Cov Ntaub Ntawv Txuas
Video: Tsim ntawm Programmable Interrupt Controller hauv VHDL: 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
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
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
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:
Tsim ntawm Qhov Yooj Yim Plaub-Txoj Kev Teeb Tus Tswv Cache Tus Kws Tswj hauv VHDL: 4 Cov Kauj Ruam
Tsim ntawm Qhov Yooj Yim Plaub-Txoj Kev Teeb Tus Tswv Cache Koom Tes Hauv VHDL: Hauv kuv qhov kev qhia yav dhau los, peb tau pom yuav tsim tus qauv yooj yim ncaj qha mapped cache maub los li cas. Lub sijhawm no, peb txav mus ib kauj ruam ua ntej. Peb yuav tsim qhov yooj yim plaub txoj kev teeb tsa kev sib koom ua ke. Qhov Zoo? Tsawg tus nco, tab sis tus nqi ntawm perfo
Tsim ntawm I2C Master hauv VHDL: 5 Cov Kauj Ruam
Tsim ntawm I2C Tus Xib Hwb hauv VHDL: Hauv qhov kev qhia no, Tsim kom yooj yim I2C tus tswv hauv VHDL tau tham txog
Tsim ntawm SPI Master hauv VHDL: 6 Cov Kauj Ruam
Tsim ntawm SPI Master hauv VHDL: Hauv cov lus qhia no, peb yuav tsim tus SPI Bus Master los ntawm kos hauv VHDL
Tsim thiab Ua tiav ntawm Cov Txheej Txheem ntawm Kev Taw Qhia ntawm Photovoltaic Panels: 5 Cov Kauj Ruam
Tsim thiab Ua kom tiav ntawm Cov Txheej Txheem ntawm Kev Taw Qhia ntawm Photovoltaic Panels: Tsim thiab Ua tiav ntawm Cov Txheej Txheem ntawm Kev Taw Qhia ntawm Photovoltaic Panels
Cov lus qhia ntawm Kev Ua Kom Zoo Mock-Up ntawm Track Slide Tsim rau Nqa/Txo Hauv Pem Hauv Ntej-Mounted Footrests ntawm Lub Hwj Huam Log: 9 Kauj Ruam (nrog Duab)
Cov lus qhia ntawm Kev Ua Kom Tiav Mock-Up ntawm Track Slide Tsim rau Nqa/Sab Qaum Nruab Nrab-Mounted Footrests ntawm Lub Hwj Huam Lub Rooj Zaum: Lub hauv paus tau teeb tsa lub tog zaum kom nqa tau hauv qab lub rooj kom zoo, thiab qis dua kom siv tau. Ib lub tswv yim rau kev ua haujlwm ywj pheej ntawm kev tuav cov footrest thiab kev xa tawm tsis suav nrog lub rooj zaum fais fab lag luam, thiab PWC cov neeg siv tau qhia txog qhov xav tau