Forum Discussion
Altera_Forum
Honored Contributor
15 years ago@Tricky-Thanks for your reply. Could you clarify a few questions of mine:
1. Do I have to set this parameter "pipeline" while instantiating the megafunction in my code? I was thinking that any parameters for the megafunctions are set automatically using the megawizard plugin manager at the time of adding the megafunction to your design. 2. What are the acceptable values for the the parameter "pipeline"? For example for the altfp_mult (floating point multiplication) megafunction, would I have to set "parameter pipeline=5" as this was the latency I chose using the drop-down box while adding this megafunction to my project with the plugin manager. I'm guessing then that the following would be an apt way to set the parameter and instantiate the megafunction in my code: float_multiply_megafunc # ( .pipeline(5) //setting the parameter ) instance0 ( .aclr ( aclr ), .clock ( clk ), .dataa ( x ), .datab ( y ), .nan ( nan ), .overflow ( overflow ), .result ( result ), .underflow ( underflow ), .zero ( zero ) ); Thanks for your help.