Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Check all bits set

Reply
Thread Tools

Check all bits set

 
 
aleksazr@gmail.com
Guest
Posts: n/a
 
      06-27-2012
On Wednesday, June 27, 2012 7:46:47 AM UTC+2, Ralf Hildebrandt wrote:
> Hi!
>
> > if WRaddr/="111111111111" then

>
> > How do I write this so I can easily
> > change the length of WRaddr?

>
> if (signed(WRaddr) /= -1) then -- check if all bits set
>
>
> I would recommend to add the comment, because if "-1" has no meaning for
> the usual behavior of WRaddr this code might confuse a colleague. On the
> other hand it is very clear to read and uses only very basic VHDL
> features (from Numeric_Std package).
>
> Ralf


Thats how I do things in C... cool, thanks
 
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
Read all of this to understand how it works. then check around on otherRead all of this to understand how it works. then check around on other thelisa martin Computer Support 2 08-18-2005 06:40 AM
select all check boxes at a time with check all [Javascript] [Chatakondu Gallery] Suresh Javascript 2 04-22-2004 03:47 PM
8 bits/ch vs 16 bits/ch in PS Terry Digital Photography 5 01-21-2004 06:59 PM
8-Bits vs 12 or 16 bits/pixel; When does more than 8 bits count ? Al Dykes Digital Photography 3 12-29-2003 07:08 PM
win XP 32 bits on a 64 bits processor.. Abbyss Computer Support 3 11-13-2003 12:39 AM



Advertisments