Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
공지
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 토론

How to write directly to FPGA peripherals from SoC ??

ThangND
초급자
1,122 조회수

Hi,

I'm working on an Altera Cyclone V SoC. I'm attempting to write directly to FPGA peripherals from my SoC, however, the hwlib library only contains the function alt_write_word, which I understand that this function writes to the cache first before writing it to the main memory. In NIOS II, the built in function IOWR has already configured the memory so that the IOWR function writes directly to the FPGA peripherals. So, my question is, when I'm working with SoC, if the hwlib library doesn't provide such a function, how can I write directly to the FPGA peripherals ? Do I need to configure the memory type or what ?

0 포인트
1 솔루션
sstrell
명예로운 기여자 III
1,018 조회수

All this is set up in Platform Designer when you build the system that includes the HPS.  You set up the addressing for the FPGA components there, connected to one of the H2F bridges (normal traffic or lightweight).  Then the .sopcinfo file generated by Platform Designer is used to create the files needed to access the peripherals in software.

원본 게시물의 솔루션 보기

0 포인트
2 응답
sstrell
명예로운 기여자 III
1,019 조회수

All this is set up in Platform Designer when you build the system that includes the HPS.  You set up the addressing for the FPGA components there, connected to one of the H2F bridges (normal traffic or lightweight).  Then the .sopcinfo file generated by Platform Designer is used to create the files needed to access the peripherals in software.

0 포인트
EricMunYew_C_Intel
중재자
942 조회수

alt_write_word can write directly to an fpga peripheral attach to h2fbridge axi bus, which address mapping can be found in your Platform designer.


0 포인트
응답