B
Brian Drummond
Guest
On Mon, 28 Jul 2008 12:40:09 +0100, Brian Drummond
<brian_drummond@btconnect.com> wrote:
see I took your name in vain here, and..
.... it would of course be perfectly _possible_ to implement the same bug
in VHDL. It is my opinion that the "when" clause calls out to be
bracketed so it is less likely to happen, but that is merely opinion.
Of course, someone who conditioned themselves to bracketing ?: clauses
would also have avoided the ambiguity.
But I feel that VHDL's emphasis on expressing something precisely,
reduces the likelihood of getting it wrong; (worked in this case!) and
that saves time overall.
Yes,
- Brian
<brian_drummond@btconnect.com> wrote:
.... double apology required; sorry Jonathan, re-reading the thread, IOn Sat, 26 Jul 2008 06:04:01 -0700 (PDT), rickman <gnuarm@gmail.com
wrote:
Compare the two examples to this code...
BERTEn <= BERTSel and GenEn ? not SyncPOSSel : not GenPOSSel;
... the one-line Verilog implementation is either wrong, or confusing to
several industry experts! (I don't know which; I'm definitely not cut
out for Verilog)
I don't believe this was a deliberate plot on Jonathan's or Mike's part
to diss Verilog, but YMMV.
see I took your name in vain here, and..
.... it would of course be perfectly _possible_ to implement the same bug
in VHDL. It is my opinion that the "when" clause calls out to be
bracketed so it is less likely to happen, but that is merely opinion.
Of course, someone who conditioned themselves to bracketing ?: clauses
would also have avoided the ambiguity.
But I feel that VHDL's emphasis on expressing something precisely,
reduces the likelihood of getting it wrong; (worked in this case!) and
that saves time overall.
Yes,
comes out ahead?BERTEn <= BERTSel and GenEn ? not SyncPOSSel : not GenPOSSel;
is faster to write; but when you factor in the debugging time, which
- Brian