Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Need standard function to do (Bool and Vector)

 
Thread Tools Search this Thread
Old 06-17-2005, 06:56 PM   #1
Default Need standard function to do (Bool and Vector)


Hi,
I need a standard function name to do (Bool and Vector).

For example:

A(2 downto 0) <= (C1 and B1(2 downto 0))
or (C2 and B2(2 downto 0))
or (C3 and B3(2 downto 0));

C1, C2 and C3 are boolean.

Thank you.

Weng



Weng Tianxiang
  Reply With Quote
Old 06-18-2005, 06:27 PM   #2
David Bishop
 
Posts: n/a
Default Re: Need standard function to do (Bool and Vector)
Weng Tianxiang wrote:

> Hi,
> I need a standard function name to do (Bool and Vector).
>
> For example:
>
> A(2 downto 0) <= (C1 and B1(2 downto 0))
> or (C2 and B2(2 downto 0))
> or (C3 and B3(2 downto 0));
>
> C1, C2 and C3 are boolean.


You will find the new versions of the packages at:
http://www.eda.org/vhdl-200x/vhdl-20...ges/files.html

Looking at what has been done here, you can't do this with
"boolean_vector", but you can do this with bit and bit_vector.



David Bishop
  Reply With Quote
Old 06-21-2005, 01:01 AM   #3
Weng Tianxiang
 
Posts: n/a
Default Re: Need standard function to do (Bool and Vector)
David,
Thank you for your help.

I have used my definition of function BoolAndVector( ). What I had
hoped is replacing with a standard function might have gotten better
compilation and consequently better performance.

Now I know bit_vector is not what I want.

Weng



Weng Tianxiang
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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