Forum Discussion
Altera_Forum
Honored Contributor
14 years agoQuestion about Custom User HDL
Hi,
I try to implement a VHDL code as custom user HDL. The component that i need to release is an algorithme that determine the five greatest value for 16 input in one clock cycle. I compile this project with modelsim it wok fine and i synthesize it through quartus II. Now i try to integrate it with my design through SOPC builder. I add it as a new component as illustrate on the attached file. My question is how can i acces to each input or output for my design. For example i need to write a value on input 0. And read this value on max1 output. Please help me.:(12 Replies
- Altera_Forum
Honored Contributor
--- Quote Start --- Your image is unreadable. Have you actually designed this component as an SOPC Component? i.e., does it have an Avalon-MM slave interface to write the values and then enable the calculation of the five largest values. What is the point of this algorithm? How many bits do each value have? Where do these samples come from? Rather than calculate the five highest values, I think keeping the five highest values are you write would be more efficient, i.e., the Avalon-MM slave keeps the five largest values written to it, regardless of how many values are written. That way you can DMA a block of data to a single memory location, and then go and read the five greatest values. Cheers, Dave --- Quote End --- Hi thank you for your reply, I synthetize my design through quartus II, and on the SOPC builder i add a new component and i call my HDL design. After this he appear to me the next window witch i will relate the signal of my design to tha avalon interface. I am not sur about the link that i make because it appear to me some warning. My design have 16 input value coding in 16 bits. In reality it come from the RAM through the Nios II processor. If it is possible to relate my design directly with RAM it will be very good, beacuse i don't have any idea that's possible or no. On my application i need to get the five greatest value of the first 16 memory value. Every time i will make the same think but on the next 16 value. I hope that it is clear. Actually i just sysnthetize my design and i'am blocked on this step. How should i connect the input to the vavlon, because as i mentionned above, i am not sur about the link that i make this is first. Second after i connect my custom instruction to the niosII, how i know the adress of every input and output. Thank you - Altera_Forum
Honored Contributor
--- Quote Start --- I try to implement a VHDL code as custom user HDL. The component that i need to release is an algorithme that determine the five greatest value for 16 input in one clock cycle. I compile this project with modelsim it wok fine and i synthesize it through quartus II. Now i try to integrate it with my design through SOPC builder. I add it as a new component as illustrate on the attached file. My question is how can i acces to each input or output for my design. For example i need to write a value on input 0. And read this value on max1 output. Please help me.:( --- Quote End --- Your image is unreadable. Have you actually designed this component as an SOPC Component? i.e., does it have an Avalon-MM slave interface to write the values and then enable the calculation of the five largest values. What is the point of this algorithm? How many bits do each value have? Where do these samples come from? Rather than calculate the five highest values, I think keeping the five highest values are you write would be more efficient, i.e., the Avalon-MM slave keeps the five largest values written to it, regardless of how many values are written. That way you can DMA a block of data to a single memory location, and then go and read the five greatest values. Cheers, Dave