资源描述:
《nios ii常用函数整理(nios ii commonly used function arrangement)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、niosii常用函数整理(NiosIIcommonlyusedfunctionarrangement)NIOSIIcommonlyusedfunctionarrangement2009-10-2809:49:02
2、:NiosII
3、subscriptionnameclassificationIOoperationfunctionPrototypeoffunction:IORD(BASE,REGNUM)Inputparameters:BASEbaseaddressregister,REGNUMoffsetregisterFunc
4、tionDescription:fromthebaseaddressfortheBASEdevicereadstheREGNUMoffsetregisterunitinsidevalue.Theregistervaluewithinthescopeoftheaddressbus.Returnvalue:-Prototypeoffunction:IOWR(BASE,REGNUM,DATA)Inputparameters:BASEbaseaddressregister,REGNUMoffsetregister,DATAdatat
5、obewrittenFunctionDescription:tooffsetwritedataintheREGNUMregister.Theregistervaluewithinthescopeoftheaddressbus.Returnvalue:-Prototypeoffunction:IORD_32DIRECT(BASE,OFFSET)Inputparameters:BASEbaseaddressregister,theregisteroffsetforOFFSETFunctionDescription:fromthe
6、addresspositionisdirectlyread32BitBASE+OFFSETdataintheregisterReturnvalue:-Prototypeoffunction:IORD_16DIRECT(BASE,OFFSET)Inputparameters:BASEbaseaddressregister,theregisteroffsetforOFFSETFunctionDescription:fromtheaddresspositionisdirectlyread16BitBASE+OFFSETdatain
7、theregisterReturnvalue:-Prototypeoffunction:IORD_8DIRECT(BASE,OFFSET)Inputparameters:BASEbaseaddressregister,theregisteroffsetforOFFSETFunctionDescription:fromtheaddresspositionisdirectlyread8BitBASE+OFFSETdataintheregisterReturnvalue:-Thefunctionprototype:IOWR_32D
8、IRECT(BASE,OFFSET,DATA)Inputparameters:BASEbaseaddressregister,REGNUMoffsetregister,DATAdatatobewrittenFunctionDescription:toaddresslocationdirectlyintothe32BitBASE+OFFSETregisterdataReturnvalue:-Thefunctionprototype:IOWR_16DIRECT(BASE,OFFSET,DATA)Inputparameters:B
9、ASEbaseaddressregister,REGNUMoffsetregister,DATAdatatobewrittenFunctionDescription:toaddresslocationdirectlyintothe16BitBASE+OFFSETregisterdataReturnvalue:-Thefunctionprototype:IOWR_8DIRECT(BASE,OFFSET,DATA)Inputparameters:BASEbaseaddressregister,REGNUMoffsetregist
10、er,DATAdatatobewrittenFunctionDescription:toaddresslocationdirectlyintothe8BitBASE+OFFSETregisterdataReturnvalue:-Dma:Thefunctionprototype:intalt