Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12408 Discussions

HAL Driver for custom component

Altera_Forum
Honored Contributor I
1,022 Views

Hai, 

I am trying to create a custom component and access it in Qsys.Can anyone please tell me how to create the HAL driver files (BSP Project )like .c,.h,_sw.tcl for the custom module? 

I have gone through the Altera's documents but i am not able to understand further in that.Can anyone please help me in creating this? 

Please reply. 

 

Regards 

manjurgl
0 Kudos
3 Replies
Altera_Forum
Honored Contributor I
67 Views

The easiest is to create your own .h and .c files for your custom component and include it in your project folder. In those files include system.h so that you can pull your component parameters (address, interrupt id, etc.). Also include io.h so that you can use the IORD and IOWR functions. That way you can write/read directly to your component's registers.

Altera_Forum
Honored Contributor I
67 Views

Hi, 

 

maybe a sample fits your need. 

 

It is a base implementation of some IO-Reads and IO-Writes for the VIP-Mixer from the Altera VIP-Suite which is wrapped by myself.
Altera_Forum
Honored Contributor I
67 Views

Thank you all... 

What are the things to be mentioned in the .h file...I read that _INSTANCE AND _INIT need to be mentioned in .h file. 

How to define this and the struct?
Reply