- Function to read data using AXI4: https://www.mathworks.com/help/soc/ref/socaximanager.readmemory.html
- Steps to access FPGA External Memory: https://www.mathworks.com/help//releases/R2021a/supportpkg/alterafpgaboards/ug/access-fpga-external-memory-using-matlab-as-axi-master.html
- Example to use MATLAB Function Block in Simulink: https://www.mathworks.com/help/simulink/ug/what-is-a-matlab-function-block.html
Read AXI4 address locations from Simulink
4 次查看(过去 30 天)
显示 更早的评论
How can I read a particular address location from the AXI4 interface within Simulink HDL coder? For example, if I have a reference design that includes the Altera System ID Peripheral Core and it is located at base address 0x0000_0080, how could I read the system ID (offset 0) into my Simulink model? Normally, in my C program I would use mmap() to map physical addressses in the Linux virtual memory space and create a pointer to the base address of the IP core. I don't know if MATLAB has an equivalent function or how can I map something from /dev/mem to the matlab program's address space?
0 个评论
采纳的回答
Sahas
2025-4-10
To read AXI4 address location from Simulink, you can use a MATLAB Function Block to write a function to capture the data at the required address. MATLAB's "readmemory" function reads the data from AXI4 memory-mapped locations.
For more information and steps, refer to the following MathWorks documentation links:
I hope this is beneficial!
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!