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

Reply

VHDL - What does "others : begin NO" mean?

 
Thread Tools Search this Thread
Old 06-17-2007, 06:53 PM   #1
Default What does "others : begin NO" mean?


const NO : boolean := false;
activeFlag_x = (others : begin NO);

I know what "(others => '0')" means, but I can't figure out the above?
Is it simply saying 'fill all bits with the repeating bitpattern 'NO'?




Altera User
  Reply With Quote
Old 06-18-2007, 07:04 PM   #2
Mike Treseler
 
Posts: n/a
Default Re: What does "others : begin NO" mean?
Altera User wrote:
> const NO : boolean := false;
> activeFlag_x = (others : begin NO);
>
> I know what "(others => '0')" means, but I can't figure out the above?


Neither can I.
VHDL has no const class.
'begin' is misused.

Find a better example.

-- Mike Treseler


Mike Treseler
  Reply With Quote
Old 06-18-2007, 09:35 PM   #3
Jonathan Bromley
 
Posts: n/a
Default Re: What does "others : begin NO" mean?
On Sun, 17 Jun 2007 10:53:02 -0700, "Altera User"
<> wrote:

>const NO : boolean := false;
>activeFlag_x = (others : begin NO);
>
>I know what "(others => '0')" means, but I can't figure out the above?


It means that either
a) someone has made a few bad keystrokes on a smart text
editor that has keyboard shortcuts for VHDL keywords, or
b) someone has used a badly flawed template file (and yes,
such things do exist), or
c) someone was coding whilst making use of (in Peter Cook's
unforgettable phrase) recreational pharmaceuticals.

I suspect the line should have said

activeFlag_x := (others => NO);

but it's really anyone's guess.

The really interesting question is: how is it that someone
allowed code like this, which has no chance of getting past
any compiler, leak out from their text editor into the wild?
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services

Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK

http://www.MYCOMPANY.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.


Jonathan Bromley
  Reply With Quote
Old 06-19-2007, 02:05 AM   #4
Mark McDougall
 
Posts: n/a
Default Re: What does "others : begin NO" mean?
Jonathan Bromley wrote:

> It means that either


(d) Someone is using a pre-processor on their VHDL code.

> The really interesting question is: how is it that someone
> allowed code like this, which has no chance of getting past
> any compiler, leak out from their text editor into the wild?


See above.

(But in truth, I suspect that (a)-(c) are more likely!)

Regards,

--
Mark McDougall, Engineer
Virtual Logic Pty Ltd, <http://www.vl.com.au>
21-25 King St, Rockdale, 2216
Ph: +612-9599-3255 Fax: +612-9599-3266


Mark McDougall
  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

Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: How to begin these certifications..... Alfredo MCITP 0 02-16-2009 10:12 PM
RE: How to begin these certifications..... CyberTech MCITP 0 02-06-2009 09:58 PM
Looking to begin the process for MCTS on Windows 2008 Derek Schauland MCTS 0 07-22-2008 06:38 PM
VERY WIRED BEHAVIOR OF NERO 7.7.5.1 tanyaru@hotmail.com DVD Video 4 04-06-2007 08:45 AM
Let the format war(s) begin ! WinField DVD Video 0 04-20-2006 02:04 AM




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