Re: [myhdl-list] FW: MyHDL help
Brought to you by:
jandecaluwe
|
From: Jan D. <ja...@ja...> - 2007-10-06 21:44:09
|
Narasimhan, Sarath (Sarath) wrote: > Jan > I am having problems when passing lists of signals to functions > decorated by @always_comb > See below > Sarath > -----Origin al Message----- > From: Narasimhan, Sarath (Sarath) > Sent: Friday, October 05, 2007 6:57 PM > To: Narasimhan, Sarath (Sarath); 'ja...@ja...' > Subject: RE: MyHDL help > > Jan > > Attached are sample files that show that list(s) don't appear to work > properly for example simple_int_list.py and simple.py have lists and > the print function within the combinatorial process only enters once > versus simple_int.py which enters everytime the counter changes value. > > Does your decorators support lists of signals within parameters of > functions. always_comb currently only searches for names that correspond to signals. In particular, lists of signals are not be handled. > Is there a potential work around Yes, explicitly using the list in a sensitivity list. For example: @always(*list_of_signals) .... Note the * to "splice" the list into individual signals. Regards, Jan -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Kaboutermansstraat 97, B-3000 Leuven, Belgium From Python to silicon: http://myhdl.jandecaluwe.com |