Re: [myhdl-list] Reset functionality "synthesis"
Brought to you by:
jandecaluwe
From: Ben <ben...@gm...> - 2012-07-03 17:04:15
|
On Jul 3, 2012, at 6:40 PM, Angel Ezquerra wrote: >>> how do you choose between synchronous and asynchronous reset? >> >> reset = ResetSignal(0, async=False) >> >> Note that you can change the reset style (and the >> active level) for the whole reset tree by merely >> changing the reset constructor. >> Changing styles has never been so easy! >> >>> Is asynchronous reset the default? >> >> Yes. > > Jan, > > given how contentious the asynchronous vs synchronous reset debate is I would argue that there should be no default value in this case, and that the reset type should always be set explicitly. I second this, and if one get tired of defining the 'synchronousity' at every reset signal, we could define some AsyncResetSignal and SyncResetSignal class that would do it for you ... Best, Benoît |