Hi Slacker ,
I have a component and try to control it through the NIOS C program. I have been trying to write to a control register that I defined for my component.
For ex : I have a counter. Here are the files I have to make :
(1) Hardware files
counter_task_logic.v
counter_regs.v
counter_avalon_interface.v
(2) Software files
counter_regs.h (/inc)
counter_routines.h (/HAL/inc)
counter_routines.c (/HAL/src)
(3) Test Hardware file
counter_test.c
Then I packaged my counter to SOPC with (1) and (2) and used NIOS IDE to create program to check my counter.
I tried to follow the instruction in the reference I gave you some days ago but it seemed to me that it didn't work as I expected.
Could you tell me where my problem is ?
Thanks,
Quan