Altera_Forum
Honored Contributor
12 years agoProblens with Sfixed
Firstly sorry for my English, I used a translator.
I'm using the library sfixed used to do mathematical calculations, and because it synthesizes. I'm in trouble and perform the following calculation: 2 ^ 2.22 = 4.6589; sfixed: s <= to_sfixed (2 ** (2.22), 20, -20) -- worked! I wanted to put a variable in place of 2:22, thus: x <=to_fixed (2.22,20, -20); s <= to_sfixed (2 **(x), 20, -20); returns me the following error: # ** Error: C:/altera/Projetos/expoente/expoente.vhdl(112): No feasible entries for infix operator "**".# ** Error: C:/altera/Projetos/expoente/expoente.vhdl(112): No feasible entries for subprogram "to_sfixed".# ** Error: C:/altera/Projetos/expoente/expoente.vhdl(115): VHDL Compiler exiting att, João Pedro