I'm looking to use NIOS to:-take an incoming string from the UART which represents a number -use this to number to program 10 different 16bit registers that will feed custom counter-like logic outside the NIOS. I have the UART setup and C code written, but what is the best way to interface my NIOS and the custom logic? Should I use the PIO to setup a Data Address bus to write to each of these registers? Or is there a way to use a bridge to link internal NIOS registers to my custom logic?
The simplest solution is to wrap your custom logic into an Avalon MM slave, so you can read/write the register with common IORD/IOWR calls.If you don't want to control the user component as a MM Slave, you can use any other interface, serial port or whatever. The PIO solution is an option, but IMHO a very inefficient one.