Re: [myhdl-list] Object Oriented Modelling
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2012-05-02 21:16:23
|
On 04/30/2012 07:06 PM, Christopher Lozinski wrote: > Here are my comments on the Object Oriented Queue Model in the > documentation. > > wiki.myhdlclass.com:8080/ObjectModels To quote from your page: "I thought that all MyHDL generators had to have a decorator." This is wrong, and I went back to the manual to check what it says. I think it is quite clear. It states explicitly that the basic MyHDL elements are generators. Decorators are just a (very convenient) way to create them for a number of common cases. Once again, I think the confusion comes from a basic misunderstanding: the difference between general modeling and conversion/synthesis. However, the manual is explicit about this in the chapter about conversion. I quote: """ For pure modeling, it doesn’t matter how generators are created. However, in convertible code they should be created using one of the MyHDL decorators: instance(), always() or always_comb(). """ -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Python as a HDL: http://www.myhdl.org VHDL development, the modern way: http://www.sigasi.com World-class digital design: http://www.easics.com |