当前位置:网站首页>Axi DMA IP core operation process
Axi DMA IP core operation process
2022-06-24 21:09:00 【yindq1220】
Direct register mode
visit DMACR,SA,DA,length Register initialization DMA transmission , When the transfer is complete , Of related channels DMASR.IOC_Irq It works ( The premise is to enable the interrupt ,DMACR.IOC_IrqEn Can make ).
MM2S Channel start process :
- MM2S_DMACR.RS=1, function DMA
- Can make MM2S_DMACR.IOC_IrqEn and MM2S_DMACR.Err_IrqEn
- Configure valid MM2S_SA and MM2S_SA_MSB register
- Write a non-zero value to MM2S_LENGTH register , Start reading DDR Sent to the AXIS port . This value is the number of bytes read from memory
S2MM Channel start process :
- S2MM_DMACR.RS=1, function DMA
- Can make S2MM_DMACR.IOC_IrqEn and S2MM_DMACR.Err_IrqEn
- Configure valid S2MM_DA and S2MM_SA_MSB register
- Write a non-zero value to S2MM_LENGTH register , start-up AXIS Port data write DDR. This value must be greater than or equal to the number of bytes of a packet of data .
In direct register mode , The above startup process needs to be recycled , Every time I read and write , The above registers need to be reconfigured .
The end of each process , An interrupt notification will occur CPU Data operation completed , need CPU eliminate IOC_Irq Register interrupt flag .
SG Pattern
After configuring control registers and descriptors ,SG mode . Can greatly improve DMA performance .
MM2S Channel start process :
- To configure MM2S_CURDESC and MM2S_CURDESC_MSB register , Write the address of the start operator .
- To configure MM2S_DMACR.RS=1, function DMA
- register MM2S_DMACR.IOC_IrqEn and MM2S_DMACR.Err_IrqEn Can make
- To configure MM2S_TAILDESC and MM2S_TAILDESC_MSB, here DMA Start reading descriptors in memory
- DMA Automatically process operators and read memory data through AXIS Port output
S2MM Channel start process :
- To configure S2MM_CURDESC and S2MM_CURDESC_MSB register , Write the address of the start operator .
- To configure S2MM_DMACR.RS=1, function DMA
- register S2MM_DMACR.IOC_IrqEn and S2MM_DMACR.Err_IrqEn Can make
- To configure S2MM_TAILDESC and S2MM_TAILDESC_MSB, here DMA Start reading descriptors in memory
- DMA Automatically process operators and receive AXIS Port data is written to memory
The end of each process (DMA Received with EOF The operator of ),DMA Generate interrupt to CPU, need CPU eliminate IOC_Irq Register interrupt flag , Re operate the above process .
loop DMA Pattern
In this mode ,DMA Can handle the same buffer descriptor , There is no interruption . In this mode DMA Keep working , Unless an abnormal stop or reset occurs .
The key to this model is ,tail Descriptor pointing first The descriptor . Set up Cyclic BD Enable by 1( Need to be in DMA Configure before running ).
The rest of the process is the same as SG The pattern is the same .
边栏推荐
- Web automation: summary of special scenario processing methods
- 微信小程序中使用vant组件
- It was Tencent who jumped out of the job with 26k. It really wiped my ass with sandpaper. It gave me a hand
- 顺序表的基本操作
- Read all text from stdin to a string
- C langage pour le déminage (version simplifiée)
- Common member methods of the calendar class
- Rip/ospf protocol notes sorting
- Berkeley, MIT, Cambridge, deepmind et d'autres grandes conférences en ligne: vers une IA sûre, fiable et contrôlable
- Basic concepts and definitions of Graphs
猜你喜欢
微信小程序自定义tabBar
Record a deletion bash_ Profile file
Bean lifecycle flowchart
Combination mode -- stock speculation has been cut into leeks? Come and try this investment strategy!
大一女生废话编程爆火!懂不懂编程的看完都拴Q了
Design of routing service for multi Activity Architecture Design
伯克利、MIT、剑桥、DeepMind等业内大佬线上讲座:迈向安全可靠可控的AI
Limit summary (under update)
Several common command operations in win system
More than ten years' work experience is recommended at the bottom of the box: how much does it cost to find a job? See here! Brothers and sisters are recommended to collect and pay attention
随机推荐
Prototype mode -- clone monster Army
Typescript syntax
Popupwindow touch event transparent transmission scheme
Common data model (updating)
Web automation: web control interaction / multi window processing / Web page frame
Web automation: summary of special scenario processing methods
Berkeley, MIT, Cambridge, deepmind and other industry leaders' online lectures: towards safe, reliable and controllable AI
List set Introduction & common methods
Curl command
A/B测试助力游戏业务增长
Create a multithreaded thread class
Packaging_ Conversion between basic type and string type
Haitai Advanced Technology | application of privacy computing technology in medical data protection
After 5 months' test, it took 15K to come for an interview. When I asked, it was not worth even 5K. It was really
Batch capitalization of MySQL table names
More than ten years' work experience is recommended at the bottom of the box: how much does it cost to find a job? See here! Brothers and sisters are recommended to collect and pay attention
Simpledateformat thread unsafe
Memo mode - game archiving
JUnit unit test
科创人·味多美CIO胡博:数字化是不流血的革命,正确答案藏在业务的田间地头