Altera_Forum
Honored Contributor
9 years agoNios Interfacing with W5300
Hello,
I want to perform a connection between Nios and Ethernet Module Wiznet W5300. Although connecting w5300 to pio would be easier for me I want to connect it directly to Avalon bus. Avalon MM Slave-translator seems an ideal candidate for that job. This is the first time a integrate an external component to Avalon bus. Actually I found a page where everything of the above was done before, here is the link http://qiita.com/kazunori279/items/287f956009fe022f1e33 Unfortunately the description is on Japannese but I gave it a try with Google translate. I managed to create a system based on the above description and code. The code compiles fine and runs ok. So in the beginning I write some values to the registers and read them back again. The Problem is whatever value I am trying to write on them the value that I read back is always zero, and that's the case with all registers. The problem seems to come with the configuration of Avalon AM Slave-Translator. I followed the recommendation of the above page but I am not sure if I put the correct values on Symbols/word field and bits/symbol field, cause there is no description about that. Can anyone suggest a value? Also any help from anyone who has already performed a connection between Nios and W5300 would be welcomed. I am using 16-bit direct mode connection. The code I am using can be found here https://github.com/kazunori279/hdllesson/tree/master/wiz Thanks