Forum Discussion
Altera_Forum
Honored Contributor
11 years agoFPGA to HPS simple communication
Hello, In advance, sorry for my english (it's not my mother tongue). I'm a beginner into qsys and linux (1 month). I have experience on microcontrollers without OS. I work on a DE1-Soc ...
Altera_Forum
Honored Contributor
11 years agoHI!!
First, I really think its a better idea to use the DS5!! Well for your program you will first need to program a VHDL/Verilog module and add it to QSYS!(connect the irq to hps) Add the module in your dts with the reg parameters(memory map parameters) and irq (examplei2c0 irq =>>> interrupts = <0 158 4>; /*0=SPI 1=PPI, Altr_int nr - 32, 4=active High level sensitive GIC_CPU_MASK arm-gic.h (refer @ kernel arm/gic and arm cortex a9 docu 3.1.2)*/) Then you need to write a "Linux Kernel Module"!! insert the module and use it in your program!! The whole thing its not a easy task! but thats life! :) Here you can find a nice blog!!! https://zhehaomao.com/blog/fpga/2014/05/24/sockit-10.html bye und viel spass! ahh !! and dont forget to reserved the memory your writing to! (dts)