![]() |
|
|
|||||||
![]() |
VHDL - What does "others : begin NO" mean? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 |
|
|
|
#3 |
|
Posts: n/a
|
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 |
|
|
|
#4 |
|
Posts: n/a
|
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 |
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |