Forum Discussion
Using IPs on a Verilog code
Hi,
I'm using an IP for a multiplier and an accumulator, and I'm quite unsure of how to use it in my Verilog code. I built a block diagram for it, but I need to control the number of times these 2 ips function, before they're reset.
To give a little background, I want the multiplier to multiply n number of values sets, and send them to the accumulator, which will accumulate the the n number of values sent, and send the final value to the output buffer.
Could someone kindly guide me on the steps to be taken? Thanks a bunch!
Best Regards,
Shainy
6 Replies
- sstrell
Super Contributor
I think folks on this board are going to want to see the code you have so far and then can help you edit or finish it.
- Shainy
New Contributor
Hi Sstrell,
Thank you for your reply! I'm actually a bit lost on how to use the ip I've created on my verilog code. I tried looking for ways and examples on the internet, but I was not able to. Am I to use it as a library, or a module, or a function, or am I supposed to instantiate it in a module?
Thanks,
Shainy
- sstrell
Super Contributor
Simple instantiation. The IP Parameter Editor (or older Megawizard Plug-In Manager) generate instantiation templates to help you instantiate the IP in your code. Look for _inst files or, in the IP Parameter Editor, you can go to the Generate menu and look at the instantiation templates there.
- Shainy
New Contributor
Will try this. Thank you so much!
- CheepinC_altera
Regular Contributor
- CheepinC_altera
Regular Contributor
Hi,
As I understand it, it has been some time since I last heard from you. This thread will be transitioned to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you.