Scott,
Thanks for the info. Did you roll your own because you could not get the supplied functions working? I am trying to use the supplied functions to save time. For some reason the ASMI is not very well documented in the NIOS II kit. There are no examples and I cant seem to get the library to link in. I seem to be missing a step or an include or whatever that allows the underlying code to be included and linked in. The altera_avalon_asmi is present in the Nios II Device Drivers tree in the IDE, but I have to put an explicit include in my source file to get a compile:
# include "
C:\altera\kits\nios2\components\altera_avalon_asmi\sdk\asmi_struct.h"