Re: [myhdl-list] How to make MyHDL Object-Oriented
Brought to you by:
jandecaluwe
From: Tom D. <td...@di...> - 2012-05-04 01:10:30
|
I use classes for all the modules I plan on re-using. Very useful. The beauty of Python classes are even a hardware guy can understand how to use them. On 05/03/2012 06:45 PM, Christopher Lozinski wrote: > Thanks enormously to Andy Stone for pointing out that MyHDL, while in > Python is not object-oriented. There is no hardware module class, just > a generator, and decorator which are functional approaches. > > No wonder I was not able to 'get' MyHDL. I very much think in > object-oriented terms. Many years ago I wrote object-oriented > manufacturing simulations of NCR's ASIC manufacturing plant. It was a > roaring success. > > The difference in mind-set is just enormous between a functional model, > and an object-oriented model. But I certainly do not want to get into a > fight over it. > > So here is my proposal for what I need to do. > > http://wiki.myhdlclass.com:8080/OOHDL > > For those who were not able to access the wiki, please let me know. One > person reported a problem, mostly he figured out it is because he is > behind a corporate firewall. > |