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

Adding Squareroot megafunction

Altera_Forum
Honored Contributor II
1,538 Views

Hello friends, 

I am a beginner in Quartus. I am using a Square root megafunction. The code is: 

sqroot<= mysqrt_alt_restoring_sqrt_cta sqr(.aclr(clear),.clken(clkenable),.clock(CLOCK_50),.rad(vz),.root_result(sqroot)); 

 

Its showing me the error that its expecting ";"  

I am not able to figure out why I am getting this error and if my format of writing is wrong.  

I am sorry taht this error may be really silly, but I am really not able to figure out why is it is arising.As teh line itself and the line after and before it end with ";" 

Please help. 

Thanks in advance.
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
785 Views

The text portion  

--- Quote Start ---  

sqroot<= 

--- Quote End ---  

is wrong. A module instantiation doesn't return nothing unlike a function or operator.
0 Kudos
Altera_Forum
Honored Contributor II
785 Views

What language are you trying to write?

0 Kudos
Altera_Forum
Honored Contributor II
785 Views

Thanks for the reply guys, 

 

Well I added <= to the code because, without that it was giving me an error that its expecting "<=" or ';"  

 

I am using Verilog.  

 

thanks
0 Kudos
Altera_Forum
Honored Contributor II
785 Views

The identifier sqroot must not be double-used.

0 Kudos
Reply