سلام
من این برنامه رو نوشتم که یه فلیپ فلاپ T بسازم ولی از این خطش که با قرمز مشخص کردم ارور Operand می گیره ... ایرادش نمی دونم چیه کسی می تونه کمک کنه ؟
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
use IEEE.numeric_std.all;
use IEEE.numeric_bit.all;
---- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity TFlip_Flop is
Port ( clock : in STD_LOGIC;
clear : in std_logic;
T_Output : out STD_LOGIC);
end;
------------------------------------------------------------------------------------
architecture Behavioral of TFlip_Flop is
signal T_output_wire: std_logic;
begin
process(clock,clear)
begin
if clear='1' then
T_output_wire<='0';
elsif(clock'event and clock='1'
then
T_output_wire <= T_output_wire + 1;
end if;
end process;
T_Output <= T_output_wire;
end Behavioral;
وقتی برنامه رو سنتز می کنم این ارور می گیره :
Line 57. + can not have such operands in this context.
با وجود اینکه همه ی لایبرری های مورد نیاز رو use کردم ؟؟؟؟
من این برنامه رو نوشتم که یه فلیپ فلاپ T بسازم ولی از این خطش که با قرمز مشخص کردم ارور Operand می گیره ... ایرادش نمی دونم چیه کسی می تونه کمک کنه ؟
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
use IEEE.numeric_std.all;
use IEEE.numeric_bit.all;
---- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity TFlip_Flop is
Port ( clock : in STD_LOGIC;
clear : in std_logic;
T_Output : out STD_LOGIC);
end;
------------------------------------------------------------------------------------
architecture Behavioral of TFlip_Flop is
signal T_output_wire: std_logic;
begin
process(clock,clear)
begin
if clear='1' then
T_output_wire<='0';
elsif(clock'event and clock='1'

T_output_wire <= T_output_wire + 1;
end if;
end process;
T_Output <= T_output_wire;
end Behavioral;
وقتی برنامه رو سنتز می کنم این ارور می گیره :
Line 57. + can not have such operands in this context.
با وجود اینکه همه ی لایبرری های مورد نیاز رو use کردم ؟؟؟؟
دیدگاه