[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [f-cpu] Coding for Synthesis



On Wed, Jul 10, 2002 at 11:51:51PM +0200, Michael Riepe wrote:
> On Wed, Jul 10, 2002 at 06:35:12PM +0200, Just an Illusion wrote:
> [...]
> > if rising_edge... is well but the syntax
> > 
> > if (clock_signal'event and clock_signal='1') then ...
> > 
> > is better (see synopsys recommendation coding style)
> 
> Since Synopsys understands either version, and the *correct*
> incantation reads
> 
> 	if clock_signal'event
> 		and clock_signal = '1'
> 		and clock_signal'last_value = '0' then ...

Oops... I forgot some () and to_X01() here and there. But now you get
the idea I guess...

-- 
 Michael "Tired" Riepe <Michael.Riepe@stud.uni-hannover.de>
 "All I wanna do is have a little fun before I die"
*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/