J
Jason Zheng
Guest
On Sun, 24 Feb 2008 16:17:50 +0000
Jonathan Bromley <jonathan.bromley@MYCOMPANY.com> wrote:
to say Cliff's guidelines are much easier to follow.
~Jason Zheng
--
Nirvana? That's the place where the powers that be and their friends
hang out. -- Zonker Harris
Jonathan Bromley <jonathan.bromley@MYCOMPANY.com> wrote:
Sorry, I missed your original posting on this.On Sun, 24 Feb 2008 07:45:16 -0800, Jason Zheng wrote:
Use of local variables can cause troubles too if that local variable
is assigned within the always block as the flip-flop, and that local
variable is shared by other blocks.
Was what I wrote so very unclear?
I thought this is not possible, at least in Verilog 1995 style.and just in case you missed it...
...BLOCKING assignment to variables
***** declared locally within the clocked process *****
Because they're declared locally, it is very unlikely that
you could mistakenly reference them from another process;
and, indeed, impossible when you come to synthesis.
I agree with you 100%. However, for the new-comers of Verilog, I haveFor Verilog bigots, the use of mixed blocking and nonblocking
assignment I described is painfully close to admitting that
VHDL got it right all along, because it is effectively the
same model that VHDL uses: variables in a process, signals
to communicate between processes.
to say Cliff's guidelines are much easier to follow.
~Jason Zheng
--
Nirvana? That's the place where the powers that be and their friends
hang out. -- Zonker Harris