Altera_Forum
Honored Contributor
16 years agoHow to use a custom component
Hi,
My teacher asks me to write directly from NIOS in the memory of chip. The addresses of the chip are multiplexed and the ports are bidir. I have written a state machine in vhdl and create a custom component (avalon tristate slave). I have tried to read and write in registry like that :// write
*(custom_component_base + addr) = data;
// read
dataread = *(custom_component_base + addr); but it doesn't work. NIOS IDE dislike the star and says : error: invalid type argument of `unary *' Do you know how to do that ? Thank you, Mig