Re: [myhdl-list] newb question
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2008-02-10 09:20:39
|
Neal Becker wrote: > Hi. I just discovered myhdl. I'm very interested. > > Haven't tried any coding yet, just reading the docs - but I was immediately > struck by the thought that intbv is going to be awfully slow coded in > python - seems to cry out for a c++ implementation. Is this worth > pursuing? I believe it is. At this point it's the first optimization I would consider. There are a lot of attribute lookups that we could get rid off. Also, slice assignment is often used and probably slow. But this is just based on gut feeling - I have no quantitative data to back it up. Ideas on how to proceed: * design some profiling test to check whether it's worth the trouble and what to expect * intbv is really like a long, so best to start from Python's long module * perhaps best to use a Python in which int and long have completely converged? * on this occasion, review the intbv interface itself thoroughly, some changes may be worthwhile Jan -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Kaboutermansstraat 97, B-3000 Leuven, Belgium From Python to silicon: http://myhdl.jandecaluwe.com |