Forum Discussion
Altera_Forum
Honored Contributor
16 years agotransfer from nios to 64-bit component
Hello, I am currently working on my own slave component. I've written and tested the 32-bit input version and it worked well. Now I have 64-bit input version. I know that nios cpu handles 32-...
Altera_Forum
Honored Contributor
16 years agoJason,
You don't set byteenable -- it's done for you automatically by the master/fabric. Your slave just has to handle it properly. A 64 bit transfer will look much like you described it. First, your NIOS program issues a 32 bit write to SLAVE_ADDR+0x0. Your slave will see a write to 0x0 with byteenable set to 0000_1111. Next, your NIOS program issues another 32 bit write to SLAVE_ADDR+0x4. Your slave will see a write to 0x0 with byteenable set to 1111_0000.