Forum Discussion
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- This is because you didnt create the ieee_proposed library in modelsim. Quartus is quite relaxed when it comes to libraries unless you specify them - it just searches all design units for the correct packages. as you might have guessed, ieee_proposed was just a placeholder name for the code before it was officially released, and still holds for the '93 compatible code. You can modify it if you wish to be ieee or work. But modelsim already has the fixed_point libraries (in 2008 format) in the ieee library. as for your code, resultado needs to be declared: resultado : out ufixed (3 downto -7); Otherwise you miss the carry bit (numbers never get smaller when added). --- Quote End --- Tricky thanks for fast response. I edited the downloaded files to not use IEEE_PROPOSED but just leave IEEE. Quartus Prime compiles without error, but Modelsim give several lines of this error # ** Error: C:........Downloads/altera/fixed_pkg_c.vhdl(1420): (vcom-1295) Function "to_ufixed" has already been defined in this region. # ** =====> Prior declaration of "to_ufixed" is at C:/Users/José/Downloads/altera/fixed_pkg_c.vhdl(1047). Similar to what happen to this user: http://www.alteraforum.com/forum/showthread.php?t=49993 What do you recommend to do? Also, I'd like to ask: If Quartus Prime is compiling good, it means the project is doing good? How can I see the result of the addition I'm doing?? is it trough modelsim?