Re: [myhdl-list] fixbv to current version of myhdl
Brought to you by:
jandecaluwe
From: Jose M. G. C. <ch...@gm...> - 2015-05-02 18:47:22
|
Dear Christopher, I have given a quick glance to resize. Have you though on the possibility to use Decimal? It provides similar functionality for rounding, and allows to have a larger number of bits than float. Best, Jose M. > El 02/05/2015, a las 20:01, Christopher Felton <chr...@gm...> escribió: > >> On 5/2/15 11:27 AM, Henry Gomersall wrote: >>> On 02/05/15 16:47, Christopher Felton wrote: >>> On 5/2/15 8:55 AM, Edward Vidal wrote: >>>>> Chris, >>>>> Athttp://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. >> >> How does it work? > > Here is the `model` how I thought it should > work: > https://github.com/cfelton/myhdl/blob/mep111_fixbv/myhdl/_resize.py > >> >> I've been playing with the routines in flopoco >> (https://gforge.inria.fr/scm/?group_id=1030), which (among other nicely >> portable tools) has a nice tool for resizing - actually it's a zero >> counter and a shift left, so the essence of a resize. > > I am not familiar with flopoco but someone else > mentioned it on IRC as well. I will look at it > when I get a chance :) > > Creating the resize for a given set of types isn't > too difficult. The difficulty is having a single > resize function that can accept any type. > >> >> It's the next thing I'm going to be implementing so it would be great to >> combine effort on this. I'm not currently using fixbv, but a kind of >> meta type of an intbv and a separate exponent. > > The `fixbv` uses `intbv` as the base class. There > are multiple mailing-list conversations about the > `fixbv`: > > http://article.gmane.org/gmane.comp.python.myhdl/3242/match=fixbv > http://article.gmane.org/gmane.comp.python.myhdl/3265/match=fixbv > http://article.gmane.org/gmane.comp.python.myhdl/3385/match=fixbv > http://article.gmane.org/gmane.comp.python.myhdl/3412/match=fixbv > > (I see I didn't follow-up on your previous inquire > into MEP111 and resize, doh: > http://thread.gmane.org/gmane.comp.python.myhdl/3773/focus=3775 ) > > Regards, > Chris > > > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list |