Re: [myhdl-list] address decoder in myHDL
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2012-12-03 14:22:02
|
On 12/3/12 2:10 AM, Angel Ezquerra wrote: > You can use Python's three element comparison operator (e.g. x <= y > < z) on the synthesizable part. In particular you can turn > > if addr >= laddr and addr < haddr: > vsel = sel[ii] > > into: > > if laddr <= addr < haddr: > vsel = sel[ii] Chained comparisons are not supported by the converter. Although this is nice for modeling and testing it cannot be used for conversion. Regards, Chris |