cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
huktonfonix
Observer
Observer
2,573 Views
Registered: ‎09-08-2010

writing to registers on a custom peripheral

Hi.  I think I have a pretty basic question here.  I've built a new peripheral and imported it successfully into my Micorblaze design.  I'm on the spartan 3a starter kit, so I opened the SDK and used it to automatically create the peripheral test application.  (it goes through all of the peripherals and creates an application testing them).  Well, my new peripheral's base address and offset is listed in xparameters.h.  Was a basic application created for me accessing the read/write registers of my custom peripheral, or do I need to create one myself?  If so, which functions do I use to read/write to it?  I've read there are some functions called _mwrite() and _mread().  where do I find their definitions?  Thanks.

0 Kudos
Reply
2 Replies
maxman
Adventurer
Adventurer
2,550 Views
Registered: ‎09-30-2009

Hi,
Look through root directory of your project and find drivers catalog. All basic functions for your IP are created by libgen.
0 Kudos
Reply
huktonfonix
Observer
Observer
2,543 Views
Registered: ‎09-08-2010

Thank you! Found everything I needed in teh drivers folder.

0 Kudos
Reply