Forum Discussion
Altera_Forum
Honored Contributor
16 years agoProblem about How to read the data form the avalon bus with the component by myself
Thank you very much,
My problem is How to read the value of data from the avalon slave bus, due to the data is from my component. I build my component into the Nios at the SOPC Builder. I try to read the data in the NIOS II IDE, Dose anyoneunderstand my problem?? Does any could help me?? Thank you so much In the frigue, that is my interface of latch circuit in the NIOS II core I have tried to...define the IO function of latch like this "# define IORD_AVALON_LATCH_HIGH(base) IORD(base, 0)# define IOWR_AVALON_LATCH_HIGH(base, data) IOWR(base, 0, data)# define IORD_AVALON_LATCH_LOW(base) IORD(base, 1)# define IOWR_AVALON_LATCH_LOW(base, data) IOWR(base, 1, data) " Dose anyone could tell me I wrong or right ??? and give me some advice ??3 Replies
- Altera_Forum
Honored Contributor
I think that your writedata vector should be 32 bits wide
- Altera_Forum
Honored Contributor
--- Quote Start --- I think that your writedata vector should be 32 bits wide --- Quote End --- I think I knew that you meaning. But, My Circuit is workable. So, I think that doesn't affect my circuit. But still thanks your suggest. - Altera_Forum
Honored Contributor
It will work as long as the only values that you write with IOWR are 0 and 1. If you want to write different values you'll need more bits.