Re: [myhdl-list] Floating Point MEP
Brought to you by:
jandecaluwe
From: Tom D. <td...@di...> - 2012-04-24 13:58:38
|
Hi, A couple of quick comments; We have had the discussion about being able to group signals. That would be a good thing to have, I would use it for complex numbers all the time. It only really matters at the top level I/O, as conversion and simulation will choke. I pass around an object of a complex class to make internal connections and that works great, then break them out at the top level. My other 2 cents is, for something as complex as a floating point operator, say multiply I don't think you would have much luck overriding the operator as in: c = a * b I think you really want a module instantiation, since you want to be able to pass parameters along with the signals. Such as number of pipelines, type of rounding and so on. That would lead to a much more worth while library component. Tom On 04/24/2012 05:53 AM, Christopher Lozinski wrote: > Here is a MEP for floating point numbers. > > http://wiki.myhdlclass.com:8080/FloatingPoint > > The basic idea is to create a new signal type, float, out of sign, > mantissa and exponent signals. In MyHDL model the calculation using > python floating point operators with the appropriate delay. When > exporting it call an existing Verilog or VHDL library. The big change > is that MyHDL would need to understand hierarchical signals. Maybe it > is not that hard. When dealing with a signal in a sensitivity list, > MyHDL would first check it it were hierarchical, if it were, MyHDL > would add all of the sub signals to the sensitivity list. And from > there MyHDL could continue operating as before. > > If you are interested, I invite you to read the details in the MEP. > > http://wiki.myhdlclass.com:8080/FloatingPoint > > -- > Regards > Christopher Lozinski > > Check out my iPhone apps TextFaster and EmailFaster > http://textfaster.com > > Expect a paradigm shift. > http://MyHDL.org > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list |