On Sun, 29 Oct 2006 11:18:05 +0100
Attila Kinali <[EMAIL PROTECTED]> wrote:

> Moin,
> 
> Also a small comment from my side on a very common mistake:
> 
> On Tue, 17 Oct 2006 13:14:44 -0400
> "Timothy Miller" <[EMAIL PROTECTED]> wrote:
> 
> > always @(posedge clock or posedge reset) begin
> >     if (reset) begin
> [reset code]
> >     end
> >     else begin
> [functional code]
> >     end
> > end
> 
> 

Just to state the obvious, the right thing to do is to
use synchronus reset:

always @(posedge clock) begin <- no reset in the sensitivity list
   if (reset) begin
      [reset code]
   end
   else begin
      [functional code]
   end
end


                                Attila Kinali

-- 
Lotus Notes ist eine verteilte Datenbankapplikation,
als Sample ist eine miese Groupware dabei ;)
                       -- Lukas Beeler
_______________________________________________
Open-graphics mailing list
[email protected]
http://lists.duskglow.com/mailman/listinfo/open-graphics
List service provided by Duskglow Consulting, LLC (www.duskglow.com)

Reply via email to