CPLD syntax
Milan
milger@pobox.sk
Středa Červenec 20 15:06:08 CEST 2005
COUNT_OUT ma sirku 1bit, count_in 4bity, nemozes to priradit priamo.
Pouzi napr:
COUNT_OUT <= count_in(0);
Milan
----- Original Message -----
From: Michal HW
To: HW-News
Sent: Wednesday, July 20, 2005 2:49 PM
Subject: CPLD syntax
Zkousim neco kompilovat s CPLD dle navodu:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
---- Uncomment the following library declaration if instantiating
---- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity prvni is
Port ( CLOCK : in std_logic;
DIRECTION : in std_logic;
COUNT_OUT : out std_logic);
end prvni;
architecture Behavioral of prvni is
signal count_int : std_logic_vector(0 to 3) := "0000";
begin
process (clock)
begin
if CLOCK='1' and clock'event then
if DIRECTION='1' then
count_int <= count_int + 1;
else
count_int <= count_int - 1;
end if;
end if;
end process;
COUNT_OUT <= count_int;
end Behavioral;
Haze to chybu:
ERROR:HDLParsers:800 - "C:/A/xilinx/projekty/prvni.vhd" Line 49. Type of COUNT_OUT is incompatible with type of count_int.
Co stim? Je to podle navodu, jen misto Spartana jsem tam dal 9500XC. Spartan nebyl v nabidce.
Michal Gregor
__________ Informacia od NOD32 1.1014 (20050301) __________
Tato sprava bola preverena antivirusovym systemom NOD32.
http://www.eset.sk
------------------------------------------------------------------------------
_______________________________________________
HW-list mailing list - sponsored by www.HW.cz
Hw-list@list.hw.cz
http://list.hw.cz/mailman/listinfo/hw-list
__________ Informacia od NOD32 1.1014 (20050301) __________
Tato sprava bola preverena antivirusovym systemom NOD32.
http://www.eset.sk
------------- další část ---------------
HTML příloha byla odstraněna...
URL: http://list.hw.cz/pipermail/hw-list/attachments/20050720/ab398e00/attachment-0001.htm
Další informace o konferenci Hw-list