Re: [myhdl-list] Migen logic design toolbox - now with simulator
Brought to you by:
jandecaluwe
From: Jan C. <jan...@mu...> - 2012-03-19 13:09:24
|
On 19/03/12 12:30, Jan Decaluwe wrote: ... > > But Migen uses the same type of assignment for 2 things > which semantically could not be more different, and > hides that difference in an object constructor. No > excuses here. This is horrible! > > Apart from all this, and even more importantly, what > is missing is support for typical procedural modeling. > Consider the following combinatorial circuit in MyHDL: > > def MsbDetector(pos, a): > """Return the bit position of the msb.""" > > @always_comb > def logic(): > pos.next = 0 > for i in downrange(len(a)): > if a[i] == 1: > pos.next = i > break > > return logic Thanks, these are the first two technical points in the discussion which I have been able to understand. Jan Coombs |