Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20688 Discussions

nios II driver develop

Altera_Forum
Honored Contributor II
1,286 Views

Hello,everyone: 

 

 

I want to develop LCD(320x240) driver.But how can I? I find that the 17x2 character lcd driver doesn't using verilog or vhdl,just using c language.However,i also find some driver in DE2 using C language and verilog or VHDL.why?I don't know why? 

 

 

The following example is about user logic,but I can't underatand the role of .c files in this example. 

Can some on explain the ralationship between the vhdl files and the .c files and the role of these files in this example.  

https://www.alteraforum.com/forum/attachment.php?attachmentid=1378
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
477 Views

Hi wh, 

 

I think those files come from or are (at least) related to AN-333, which you can find here (http://www.altera.com/literature/lit-an.jsp). Reads/Writes (in C) translate into transactions between masters (like the Nios II) and slaves (like the PWM component) on the Avalon-MM "bus". The HDL (VHDL in your case) then translates these transactions into "actions" in your hardware. 

 

Reading the AN-333 document will help you to understand this better. 

 

Cheers, and Enjoy! 

 

- Brendan
0 Kudos
Altera_Forum
Honored Contributor II
477 Views

Hello,Brendan 

I 'm sorry.The file has been moved away and i can't get it. 

Do you have a copy about it. 

You know ,The sopc builder in quaratus II in DE2 has a lot of components,such UART,SDRAM controller,jtag uart.All of the components need driver.But how altera company develops these drivers and integrates these drivers in sopc builder. 

Can you give me some reference. 

Do you know some books about it. 

Waitting for your reply.Thank you very much 

 

-wh
0 Kudos
Altera_Forum
Honored Contributor II
477 Views

 

--- Quote Start ---  

i also find some driver in DE2 using C language and verilog or VHDL.why?I don't know why? 

--- Quote End ---  

 

 

--- Quote Start ---  

how altera company develops these drivers and integrates these drivers in sopc builder. 

Can you give me some reference. 

--- Quote End ---  

 

here (http://www.altera.com/literature/lit-nio2.jsp) is all necessary literature. 

look at part "Creating a Custom Device Driver for the HAL" in "Nios II Software Developer's Handbook".
0 Kudos
Altera_Forum
Honored Contributor II
477 Views

Right... I didn't point you at the actual application note (AN 333), but rather the (literature) page where you can download it and the examples that come with it. Just search through the page for "333" and you should be able to see what I mean. 

 

yura-w's advice to read through those documents is also worthwhile. 

 

Cheers and Good luck! 

 

- Brendan
0 Kudos
Reply