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

Problems with declaration SIGNED

Altera_Forum
名誉分销商 II
1,534 次查看

Firstly sorry for my English, I used a translator. 

I'm trying to declare a variable SIGNED , plus modelsim returns me the following error: "(vcom-1078) Identifier "signed" is not directly visible." 

 

 

library ieee ; 

use ieee.std_logic_1164.all ; 

use ieee.std_logic_arith.all ;  

use ieee.std_logic_unsigned.all ; 

use ieee.std_logic_signed.all ; 

 

ENTITY test IS 

PORT(  

clk : in std_logic; 

 

saida : out sfixed(5 downto -20) -- double 

 

); 

END test; 

 

ARCHITECTURE comportamento OF test IS 

 

 

 

 

signal B_signed : signed (3 downto 0) ; 

 

 

begin 

 

 

end comportamento; 

 

 

att, 

 

 

Joao Pedro
0 项奖励
3 回复数
Altera_Forum
名誉分销商 II
597 次查看

i have the library in modelsim

0 项奖励
Altera_Forum
名誉分销商 II
597 次查看

Use the numeric_std library: 

 

library ieee ; 

use ieee.std_logic_1164.all ; 

use iee.numeric_std.all;
0 项奖励
Altera_Forum
名誉分销商 II
597 次查看

thank you, worked

0 项奖励
回复