Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Re: boolean to std_logic

Reply
Thread Tools

Re: boolean to std_logic

 
 
David R Brooks
Guest
Posts: n/a
 
      12-31-2003
"valentin tihomirov" <(E-Mail Removed)> wrote:

:Is there any standard package that can convert TRUE to '1' and FALSE to '0'?
:Should I write my function? Why there isn't implicit sythax of that?
:

There are a number of standard functions for this, in the various
libraries.
Example: ieee.numeric_extra.to_std_logic()

There isn't "implicit syntax" because VHDL is a strongly-typed
language. You can only change one type to another explicitly. (Some
day, that will save your life

 
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
convert boolean to std_logic manolis kaliorakis VHDL 2 12-17-2011 05:58 PM
Subtle difference between boolean value and boolean comparison? Metre Meter Javascript 7 08-06-2010 08:40 PM
difference between 'boolean' and 'java.lang.Boolean' J Leonard Java 4 01-19-2008 02:56 AM
boolean to std_logic valentin tihomirov VHDL 3 01-05-2004 04:48 PM
Synthesis of STD_LOGIC Christopher Bunk VHDL 2 07-04-2003 07:08 AM



Advertisments