Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
746 Views

Is there a method that I can implement a config register in my kernel?

Is there a method that I can implement a config register in my kernel?  

So I can change its value when the kernel task is running and my kernel can do some thing according to this config register.
0 Kudos
1 Reply
Highlighted
Valued Contributor III
3 Views

Hi, 

 

I'm not sure what is the best way to do it without stalling the pipeline and/or not continuously reading from global memory and thus eat up your bandwidth, but I have a suggestion for you. 

 

You could add a second kernel aside your first which simply communicates with the second via an Altera channel or an OpenCL pipe. You launch this kernel from the host when you want the change to happen, which sends a signal to your first kernel. 

 

How does that sound? 

 

Carl
0 Kudos