Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16592 Discussions

AD Converter and SOPC Builder

Altera_Forum
Honored Contributor II
1,351 Views

Hi, 

I have one question about the AD Converter.How can I implement the AD Converter in the Nios 2 System at the SOPC Builder.I dont know what component i must use. I´m new in programming a Nios 2 System. 

 

I am using the DE0-Nano Board. 

 

thx for helping me
0 Kudos
11 Replies
Altera_Forum
Honored Contributor II
477 Views

There is no such component for this task. Create Your own. You'll find templates in SOPC. 

 

P.S. I'd suggest to use Qsys.
0 Kudos
Altera_Forum
Honored Contributor II
477 Views

Thank you for your answer. I will try to create my own component.  

 

But for any help or tips to create this component I´m very thankful.
0 Kudos
Altera_Forum
Honored Contributor II
477 Views

Read manual. Use templates. Very easy to do :)

0 Kudos
Altera_Forum
Honored Contributor II
477 Views

So I read the maual und try to use templates.Maybe it is easy but I don´t get it.I know what I want to do but I have at the Moment no Idea how I can. Is there perhaps an manuel like this for the SD-Ram somewhere? 

 

https://instruct1.cit.cornell.edu/courses/ece576/de2/tut_de2_sdram_verilog.pdf 

 

The last part of my project is to implement the ADC. 

I think I must use an Avalon MM Slave for this but I am not sure. 

Then I need an Chip Select output for the ADC and one Input for the Data. 

Perhaps you can give me some Tips or can told me if an Avalon MM Slave the right way to do this. 

 

thx
0 Kudos
Altera_Forum
Honored Contributor II
477 Views

I would use Avalon-ST. But it's just my opinion.

0 Kudos
Altera_Forum
Honored Contributor II
477 Views

thx, maybe you can give me some more informations??

0 Kudos
Altera_Forum
Honored Contributor II
477 Views

any other suggestions ???

0 Kudos
Altera_Forum
Honored Contributor II
477 Views

Again: read the docu!

0 Kudos
Altera_Forum
Honored Contributor II
477 Views

Hi, it is not like I want you write the code. 

I read the docu, the manual of the SOPC Builder,do a Online Class of the SOPC Builder ans other pdfs. 

But in the following pdf 

 

http://www.altera.com/literature/ug/ug_embedded_ip.pdf 

 

under Point 8 it´s written when you have a SPI Connection you must/can use the Avalon MM Interface.On the DE0-Nano there is an ADC128S022 with a SPI Interface.  

Iam confused what I must or can use because its new for me and I don´t want to go the wrong way. 

I know how a SPI Connection works but I dont know how I can implement in an Softcore Nios 2 Processor at the SOPC Builder. 

 

Have a nice weekend.
0 Kudos
Altera_Forum
Honored Contributor II
477 Views

Wow, I feel your pain! I really hate "RTFM" replies when I have spent weeks trying to grind my way through hundreds of pages only to find that I went down the wrong path or I just can't understand what it is trying to tell me. I too am trying to implement the A/D on the Terasic DE0 NANO. I am even less familiar than you with how to do much of anything at this point. Did you ever find any step by step tutorial or doc.

0 Kudos
Altera_Forum
Honored Contributor II
477 Views

Hi, 

no I never found an manual like this. I took the code out of the Demo-ACD an tried to improve the code. 

It work but not very well. It works very slow but it worked. 

 

Good luck .... and nice weekend
0 Kudos
Reply