cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
4,269 Views
Registered: ‎04-25-2016

genertating x<driver_name>_g.c files

Jump to solution

Hello,

 

I am in the process of writing an SDK driver for a Vivado IP Core and I am trying to follow the Xilinx structure/guidlines. While trying to write the initialization function, I ran into the following issue. IP Cores from Xilinx like UART, Timers or even the old EDK drivers all carry a _g.c file which is somehow generated by Vivado or SDK. I found that these IPs have a TCL file which is responsible for generating the _g.c file. 

 

My question is where do I have to actually tell the system how to create the _g.c file that I need for my IP? Do I have to create a TCL file like the one I found for the Timer IP Core (tmrctr.tcl)? If so, how do I inform the system about the existence of that file? Do I have to add it to the Vivado IP Packager?

 

Thank you,

Sergiu

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
7,700 Views
Registered: ‎07-31-2012

Hi,

 

Hope these links of creating driver for custom IP and software driver will help you.

https://silica.avnet.com/wps/wcm/connect/e2612871-ffdd-470e-b355-f12e0f570395/SILICA_Xilinx_Designing_a_custom_axi_slave_rev1.pdf?MOD=AJPERES&CVID=liIcQoZ&CVID=liIcQoZ

 

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2015_4/ug1138-generating-basic-software-platforms.pdf

 

Regards

Praveen


-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

3 Replies
Highlighted
Xilinx Employee
Xilinx Employee
4,241 Views
Registered: ‎08-01-2008
check these links it may help you
https://forums.xilinx.com/t5/Embedded-Development-Tools/SDK-include-custom-IP-peripheral-driver-files/td-p/250464
https://forums.xilinx.com/t5/Embedded-Processor-System-Design/Device-drivers-for-IP-cores-in-Vivado/td-p/383753
Thanks and Regards
Balkrishan
--------------------------------------------------------------------------------------------
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.
0 Kudos
Highlighted
Visitor
Visitor
4,233 Views
Registered: ‎04-25-2016

Hi

 

I read the threads that you provided and unfortunately I found no mention of the _g.c file I was asking about. 

 

I don't have any issues with exporting driver files or old driver versions like the ones discussed in those forum posts. What I am interested in is generating the *_g.c file which will become part of the IP core driver. The only place where I found that the file is mentioned is in this pdf: https://forums.xilinx.com/xlnx/attachments/xlnx/NewUser/23544/1/xilinx_drivers_guide.pdf. 

 

At page 5 under "Example file names" you can find the file mentioned as "Generated file controlling parameterized instances". I want to know the procedure for obtaining this file for my custom IP core.

 

Sergiu

 

Highlighted
Moderator
Moderator
7,701 Views
Registered: ‎07-31-2012

Hi,

 

Hope these links of creating driver for custom IP and software driver will help you.

https://silica.avnet.com/wps/wcm/connect/e2612871-ffdd-470e-b355-f12e0f570395/SILICA_Xilinx_Designing_a_custom_axi_slave_rev1.pdf?MOD=AJPERES&CVID=liIcQoZ&CVID=liIcQoZ

 

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2015_4/ug1138-generating-basic-software-platforms.pdf

 

Regards

Praveen


-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post