FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-20-2005, 09:41 AM
Athena
Guest
 
Posts: n/a
Default to write the driver for my own ip core

Hi All,

I have writen an IP core which is used for implementing an algorithm. Now I have to write the driver for my IP core which mainly transfers the data between the ip core and the plb bus.

But I don't know how to write a driver for an IP CORE. I don't have any related materials.

Who has the experiences of writing the drivers for your own IP core or has some documents about it?

Please help me.

Thank you very much.
Reply With Quote
  #2 (permalink)  
Old 10-20-2005, 10:25 AM
Johan Bernspång
Guest
 
Posts: n/a
Default Re: to write the driver for my own ip core

Athena wrote:
> Hi All,
>
> I have writen an IP core which is used for implementing an algorithm. Now I have to write the driver for my IP core which mainly transfers the data between the ip core and the plb bus.
>
> But I don't know how to write a driver for an IP CORE. I don't have any related materials.
>
> Who has the experiences of writing the drivers for your own IP core or has some documents about it?
>
> Please help me.
>
> Thank you very much.


Well, since you are going to write drivers for cores connected to the
PLB I suspect that you do have the EDK. There is a 'Device Driver
Programming Guide' in the Processor IP Reference Guide which gives you
the basic knowledge. You also have quite a few drivers in the
../EDK/sw/XilinxProcessorIPLib/drivers catalog of your EDK installation.
I've used them as examples when I have learned to write device drivers
for EDK. The included drivers in the EDK also gives you an idea on how
to write the .mdd and .tcl files.

Good luck.

cheers!

--
-----------------------------------------------
Johan Bernspång, [email protected]
Research engineer

Swedish Defence Research Agency - FOI
Division of Command & Control Systems
Department of Electronic Warfare Systems

www.foi.se

Please remove the x's in the email address if
replying to me personally.
-----------------------------------------------
Reply With Quote
  #3 (permalink)  
Old 10-20-2005, 03:01 PM
Eli Hughes
Guest
 
Posts: n/a
Default Re: to write the driver for my own ip core

Hmm.....


Is you question that you don't how how to format your c functions so
they conform to the Xilinx Driver 'standard'

or....

Is your problem that you don't know how to access your hardware at a
low-level?

-Eli



Johan Bernspång wrote:
> Athena wrote:
>
>> Hi All,
>>
>> I have writen an IP core which is used for implementing an algorithm.
>> Now I have to write the driver for my IP core which mainly transfers
>> the data between the ip core and the plb bus.
>>
>> But I don't know how to write a driver for an IP CORE. I don't have
>> any related materials.
>>
>> Who has the experiences of writing the drivers for your own IP core or
>> has some documents about it?
>>
>> Please help me.
>>
>> Thank you very much.

>
>
> Well, since you are going to write drivers for cores connected to the
> PLB I suspect that you do have the EDK. There is a 'Device Driver
> Programming Guide' in the Processor IP Reference Guide which gives you
> the basic knowledge. You also have quite a few drivers in the
> ./EDK/sw/XilinxProcessorIPLib/drivers catalog of your EDK installation.
> I've used them as examples when I have learned to write device drivers
> for EDK. The included drivers in the EDK also gives you an idea on how
> to write the .mdd and .tcl files.
>
> Good luck.
>
> cheers!
>

Reply With Quote
  #4 (permalink)  
Old 10-20-2005, 07:09 PM
Kunal
Guest
 
Posts: n/a
Default Re: to write the driver for my own ip core

Read 'Designing a Custom Processor Peripheral Using Xilinx EDK' - Part
3 and Part 4 available on the Xilinx website under techxclusives.
You'll get what you need.

Reply With Quote
  #5 (permalink)  
Old 10-21-2005, 10:08 AM
Athena
Guest
 
Posts: n/a
Default Re: to write the driver for my own ip core

Hi all,

Thank you for all your suggestions.

I have both ISE and EDK7.0.1. At first, I don't have any conception about how to connect my IP CPRE with the plb or opb bus. I just know one side is the ip core written in VHDL, and the other side should be some driver written in C.

I have read the drivers of Uartlite and spi, but I still couldn't be clear about how to connet the two sides. How to get the .tcl files?

The articles suggested by Kunal are very good. I am reading them at present. I will discuss my thinking with you later.

Thanks to all of you! Athena
Reply With Quote
  #6 (permalink)  
Old 10-22-2005, 05:18 PM
Paul Hartke
Guest
 
Posts: n/a
Default Re: to write the driver for my own ip core

The "Create and Import Peripheral Wizard" (chapter 4:
http://www.xilinx.com/ise/embedded/est_rm.pdf) is a good starting
point. Use the skeleton files created as a starting point for your own
custom core. An example device driver to access the custom core from
the procossor is generated as well.

Paul

Athena wrote:
>
> Hi all,
>
> Thank you for all your suggestions.
>
> I have both ISE and EDK7.0.1. At first, I don't have any conception about how to connect my IP CPRE with the plb or opb bus. I just know one side is the ip core written in VHDL, and the other side should be some driver written in C.
>
> I have read the drivers of Uartlite and spi, but I still couldn't be clear about how to connet the two sides. How to get the .tcl files?
>
> The articles suggested by Kunal are very good. I am reading them at present. I will discuss my thinking with you later.
>
> Thanks to all of you! Athena

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
tranif1 always a driver ? [email protected] Verilog 3 08-22-2008 01:27 AM
PCI driver for ARM processor Chanemou FPGA 0 07-27-2004 01:30 PM
device driver Tom FPGA 1 04-27-2004 10:18 AM
c++ lcd device driver 2vp4 Tom Tassignon FPGA 0 09-30-2003 09:28 AM


All times are GMT +1. The time now is 09:24 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved