Forum Discussion
Altera_Forum
Honored Contributor
12 years agoPorting DE_NET2 to NIOSII running on Quartus 12.1sp1 and QSYS
Hi, I'm trying to port DE_NET2 to Quartus 12.1sp1 and QSYS. I have created in QSYS dm9000a component based on DM9000A_IF.v file. The code:
module DM9000A_IF( // HOST Side
...
Altera_Forum
Honored Contributor
12 years agoHi,
I was able to make it running. I have made no changes to NIOS code except changing this define:#define IO_data 4 Also in the code the DM9000A.C file was included, which is rather bad so I only included .h file and had to move ether_addr table to .C file from .h. In my DM9000A component i have changed iDATA and oDATA to 32 bit and simply assigned lower 16 bits to ENET_DATA. I also resized iCMD to 8 bits and found out that bit 4 goes up when I write. So i simply assigned this bit to ENET_CMD. Also I changed read wait and write wait to 3 clock cycles in my DM9000A component (it's related to 100MHz clock for NIOS). Best, madness