Re: [myhdl-list] fixbv to current version of myhdl
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2015-05-02 15:50:10
|
On 5/2/15 8:55 AM, Edward Vidal wrote: > Chris, > At http://dev.myhdl.org/meps/mep-111.html > Limitations no resize (function yet). > Is this still true? There is a resize function but it is not convertible at this point. I can make a convertible version but I didn't like how it worked out, been experimenting with other methods. The existing resize function can be used for modeling and testing at this point. > I see that you have a myhdl/_resize.py (in this merge). > > The steps you provided worked okay on my Ubuntu system. > > I will be trying on my Windows 8.1 box. > What does "develop" do when used in the setup.py? If you use: >> python setup.py develop The snapshot (repo) will be used and you will not need to do subsequent `setup.py installs` after updates. > > These are the results I get > python > Python 2.7.3 (default, Sep 26 2013, 20:03:06) > [GCC 4.6.3] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> from myhdl import * > >>> ww = (26,18) > >>> ca1 = fixbv(-1.586134342)[ww] > >>> x2 = fixbv(100.0)[ww] > >>> print ca1 > -1.585938 > >>> print ca1*x2 > -158.593750 I will walk through the above example, initial conversion, the operation etc. but I will need wait till later today. Regards, Chris |