| Author |
Message |
ck_nandy
Joined: 28 Apr 2008 Posts: 12
|
16 Jul 2008 11:59 microblaze |
|
|
|
hi
do anybody have idea about custom periperal in microblaze.
if so passs some information
|
|
| Back to top |
|
 |
saikat
Joined: 21 Oct 2005 Posts: 45 Helped: 4 Location: mumbai
|
18 Jul 2008 14:59 Re: microblaze |
|
|
|
| You have to make a OPB wrapper for making a custom peripheral which will communicate with microblaze. XPS has a tool for generating this wrapper. It will give you an interface for your peripheral.
|
|
| Back to top |
|
 |
ck_nandy
Joined: 28 Apr 2008 Posts: 12
|
24 Jul 2008 7:09 Re: microblaze |
|
|
|
hi
i hve generat a opb peripheral with help mannual.
i got the USER_LOGIC.VHDL
i dnt hve an idea of what to edit .
cn u help me
|
|
| Back to top |
|
 |
saikat
Joined: 21 Oct 2005 Posts: 45 Helped: 4 Location: mumbai
|
24 Jul 2008 14:07 Re: microblaze |
|
|
|
I have not really worked on any of such projects. But to my understanding, you can create your own peripheral using the interface (port-map) provided by the OPB wrapper. You will get clock, din, dout, address etc. signals in that wrapper. Your peripheral will occupy some memory spaces in the OPB address map. You can access your peripheral using the memory assigned to your peripheral from the C-code in microblaze.
If you are using microblaze and OPB wrapper for the first time, u can start with some LED blinking code in your peripheral. It will help you to understand the OPB wrapper and the interface. Once you are capable of establishing communication between microblaze and the peripheral using OPB bus, that too from C-code on microblaze, you can go ahead with more complex functionality in your peripheral.
Look for some sample project from Xilinx.
|
|
| Back to top |
|
 |