<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>COUNT_OUT ma sirku 1bit, count_in 4bity, nemozes to 
priradit priamo.</FONT></DIV>
<DIV><FONT face=Arial size=2>Pouzi napr:</FONT></DIV>
<DIV><FONT face=Arial size=2>COUNT_OUT &lt;= count_in(0);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Milan</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=michalgregor@centrum.cz href="mailto:michalgregor@centrum.cz">Michal 
  HW</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=hw-list@hw.cz 
  href="mailto:hw-list@hw.cz">HW-News</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, July 20, 2005 2:49 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> CPLD syntax</DIV>
  <DIV><FONT face=Arial size=2></FONT><BR></DIV>
  <DIV><FONT face=Arial size=2>Zkousim neco kompilovat s CPLD dle 
  navodu:</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>library IEEE;<BR>use 
  IEEE.STD_LOGIC_1164.ALL;<BR>use IEEE.STD_LOGIC_ARITH.ALL;<BR>use 
  IEEE.STD_LOGIC_UNSIGNED.ALL;</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>---- Uncomment the following library declaration 
  if instantiating<BR>---- any Xilinx primitives in this code.<BR>--library 
  UNISIM;<BR>--use UNISIM.VComponents.all;</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>entity prvni is<BR>&nbsp;&nbsp;&nbsp; Port ( 
  CLOCK : in 
  std_logic;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  DIRECTION : in 
  std_logic;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  COUNT_OUT : out std_logic);<BR>end prvni;</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>architecture Behavioral of prvni is<BR>signal 
  count_int : std_logic_vector(0 to 3) := "0000";<BR>begin<BR>process (clock) 
  <BR>begin<BR>&nbsp;&nbsp; if CLOCK='1' and clock'event 
  then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if DIRECTION='1' then&nbsp;&nbsp; 
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; count_int &lt;= count_int 
  + 1;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; count_int &lt;= 
  count_int - 1;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if;<BR>&nbsp;&nbsp; end 
  if;<BR>end process;<BR>COUNT_OUT &lt;= count_int;<BR>end 
  Behavioral;</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Haze to chybu:</FONT></DIV>
  <DIV><FONT face=Arial size=2>ERROR:HDLParsers:800 - 
  "C:/A/xilinx/projekty/prvni.vhd" Line 49. Type of COUNT_OUT is incompatible 
  with type of count_int.<BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>Co stim? Je to podle navodu, jen misto Spartana 
  jsem tam dal 9500XC. Spartan nebyl v nabidce.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Michal Gregor</DIV></FONT>
  <DIV><FONT face=Arial size=2>&nbsp;</DIV></FONT>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV><BR><BR>__________ Informacia 
  od NOD32 1.1014 (20050301) __________<BR><BR>Tato sprava bola preverena 
  antivirusovym systemom NOD32.<BR><A 
  href="http://www.eset.sk">http://www.eset.sk</A><BR>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>HW-list mailing 
  list&nbsp; -&nbsp; sponsored by 
  www.HW.cz<BR>Hw-list@list.hw.cz<BR>http://list.hw.cz/mailman/listinfo/hw-list<BR><BR><BR>__________ 
  Informacia od NOD32 1.1014 (20050301) __________<BR><BR>Tato sprava bola 
  preverena antivirusovym systemom 
NOD32.<BR>http://www.eset.sk<BR><BR></BLOCKQUOTE></BODY></HTML>