Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > whether to_stdlogic type conversion exits???

Reply
Thread Tools

whether to_stdlogic type conversion exits???

 
 
creamu creamu is offline
Junior Member
Join Date: Apr 2008
Posts: 1
 
      04-09-2008
hi....
I have used to_stdlogic type conversion in my program but an error is occuring... xilinx is not considering to_stdlogic as reserved word and i am getting error as "OR can not have such operands in this context"

my program is


library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;

rx_buff_0_wrtn : OUT std_logic;
rx_buff_1_wrtn : OUT std_logic;
SIGNAL read_count : std_logic_vector(3 DOWNTO 0);


IF ((to_stdlogic(read_count="1010") OR ((NOT rx_buff_1_wrtn) AND (NOT rx_buff_0_wrtn))) = '1') THEN
read_count <= "0000";
 

Last edited by creamu; 04-09-2008 at 03:05 PM..
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Type conversion function for user defined type... zaeminkr@gmail.com C++ 1 05-16-2007 09:00 AM
conversion from const type* to type* allowed? Michal Nazarewicz C Programming 13 01-05-2007 01:54 PM
Conversion from type 'DBNull' to type 'String' is not valid Chris ASP .Net 2 05-11-2006 08:20 AM
conversion from type 'DBNull' to type 'float' is not valid ibiza ASP .Net 2 01-27-2006 09:57 PM
The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value. luna ASP .Net 1 02-13-2004 01:15 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57