Re: [myhdl-list] Plans for 0.8 Release
Brought to you by:
jandecaluwe
From: Norbo <Nor...@gm...> - 2012-08-29 12:59:53
|
Am 29.08.2012, 04:04 Uhr, schrieb Christopher Felton <chr...@gm...>: > I am curious if there are any thoughts on a 0.8 target > release date. Are there *items* that are targeted for > 0.8 but not yet implemented? i was trying to implement a quite simple enhancment which concerns the usage of list or dicts that contain only constant ints or longs in conversion. It is known thhat the code below works in simulation. So the enhancment would be that the constants are also inserted in converted code if the content of the list or dict is a int or long value. this would only be for lists with ints or dictionarys with ints,or longs. tuple of int, list of bool and list of intbvs should stay untouched since they are used for other purposes. Being able to use this for converted code also is nice i think. Code example to show usage: CONSTLIST=[3,2,6] CONSTDICT={'Opcode_and':1,'Opcode_plus':3} def unit_Constout(i_data,o_outvalue): @always_comb def comb_logic(): if i_data==CONSTDICT['Opcode_and']: #CONSTLIST[0]: o_outvalue.next=0 elif i_data==CONSTDICT['Opcode_plus']: o_outvalue.next=0 else: o_outvalue.next=1 return instances() |