Re: [myhdl-list] address decoder in myHDL
Brought to you by:
jandecaluwe
From: Angel E. <ang...@gm...> - 2012-12-03 16:20:06
|
On Mon, Dec 3, 2012 at 3:21 PM, Christopher Felton <chr...@gm...> wrote: > 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 You are right. I tested it and I thought it worked. However I just tried it again and I got an error. It is a pity, it would have been neat if it were supported. Cheers, Angel |