Jump to content


error while compilating project using float


  • You cannot reply to this topic
5 replies to this topic

#1 Robin

    Member

  • Members
  • PipPip
  • 7 posts

Posted 05 September 2008 - 12:34 AM

HI:
I have built a project using Templates: One-process testbench(floating). in CoDeveloper, it is all ok!
But, when i compile it in Quartus II, it encounted an error, here is the error message:

Error (10482): VHDL error at impulse_float.vhd(1201): object "altfp_convert" is used but not declared

How to solve it??


Regards,
Robin

#2 RalphBodenner

    Advanced Member

  • Admin
  • PipPipPip
  • 348 posts

Posted 05 September 2008 - 03:42 PM

Hi Robin,

Have you included the impulse_float.vhd file in your Quartus project? CoDeveloper would have exported it to an "impulse_lib" subdirectory of the Quartus project.

Which version of Quartus are you using?

Regards,
Ralph
Ralph Bodenner
Impulse Accelerated Technologies, Inc.

#3 Robin

    Member

  • Members
  • PipPip
  • 7 posts

Posted 06 September 2008 - 11:55 PM

QUOTE (RalphBodenner @ Sep 6 2008, 07:42 AM) <{POST_SNAPBACK}>
Hi Robin,

Have you included the impulse_float.vhd file in your Quartus project? CoDeveloper would have exported it to an "impulse_lib" subdirectory of the Quartus project.

Which version of Quartus are you using?

Regards,
Ralph

Thanks.
I use Quartus II 7.2.
In the folder called "impulse_lib", there are not only impulse_float.vhd, but also many VHDLs about float, like:fp_div_lut1.vhd or fp_div.vhd, etc....
I have included all of them in my Quartus project.
I use notepad watching the code of these VHDLs, but all of them is a messy code, not vhdl code, except impulse_float.vhd. is that right??
but yesterday, I delete the code about altfp_convert in impulse_float.vhd, it works! no error!

Another question: dose Altera floating-point library support double precision types?

Regards,
Robin

#4 RalphBodenner

    Advanced Member

  • Admin
  • PipPipPip
  • 348 posts

Posted 10 September 2008 - 06:02 PM

I'm glad to hear it's working now. I believe the altfp_convert cores are not supported in Quartus II 7.2--only in 8.0 or later. Therefore, type conversion to/from floating-point types is only supported with Quartus 8.

The "messy code" you saw is due to the fact that those files are encrypted by Altera, for use only with a valid Quartus license.

The Altera floating-point library does support double precision. Please make sure the "Allow double-precision types and operators" option is checked in the Impulse C project options.

Regards,
Ralph
Ralph Bodenner
Impulse Accelerated Technologies, Inc.

#5 Robin

    Member

  • Members
  • PipPip
  • 7 posts

Posted 12 September 2008 - 01:01 AM

QUOTE (RalphBodenner @ Sep 11 2008, 10:02 AM) <{POST_SNAPBACK}>
The Altera floating-point library does support double precision. Please make sure the "Allow double-precision types and operators" option is checked in the Impulse C project options.

Regards,
Ralph


But, when I use double, I encounted an error:
Error (10395): VHDL Conditional Signal Assignment error at HelloWorld_mem_comp.vhd(331): conditional waveforms must have same number of elements

I just simply replaced float to double, In float situation, it works well!
Is it my Quartus II version(7.2) that caused this error ??

Regards,
Robin

#6 RalphBodenner

    Advanced Member

  • Admin
  • PipPipPip
  • 348 posts

Posted 15 September 2008 - 11:19 AM

Hi Robin,

Could you send the complete Impulse C project and source code files that demonstrate the problem to support@impulsec.com? We can then try to reproduce and diagnose the problem.

Thanks,
Ralph
Ralph Bodenner
Impulse Accelerated Technologies, Inc.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users