From Python to silicon
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

meps:mep-100 [2011/05/04 15:15]
lozinski
meps:mep-100 [2011/05/18 16:10] (current)
jandecaluwe old revision restored
Line 8: Line 8:
  
 ===== Background ===== ===== Background =====
- 
-Decorators are just a way to simplify the python code.  There are three types of Decorators.  @always indicates a module which is driven by a clock signal or by a reset.   @always_comb indicates a module which is driven by changes in the inputs.  @instance, is just used for convenience in test scripts, since test scripts need to participate in the simulation framework.   
-Onto the software description of decorators.   
  
 Python 2.4 introduced a new feature called //decorators//. A decorator consists of special syntax in front of a function declaration. It refers to a decorator function. The decorator function automatically transforms the declared function into some other callable object.  Python 2.4 introduced a new feature called //decorators//. A decorator consists of special syntax in front of a function declaration. It refers to a decorator function. The decorator function automatically transforms the declared function into some other callable object. 
meps/mep-100.txt ยท Last modified: 2011/05/18 16:10 by jandecaluwe
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki