From Python to silicon
 

Differences

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

Link to this comparison view

meps:mep-104 [2008/07/05 12:12]
thomastraber
meps:mep-104 [2008/07/10 07:23] (current)
thomastraber
Line 44: Line 44:
 class ClockGenerator(Block): class ClockGenerator(Block):
  
-    output = Output(bool())+    output = Signal(bool())
        
     def __init__(self,period=2):     def __init__(self,period=2):
Line 63: Line 63:
 class And(Block): class And(Block):
  
-    output = Output(bool())+    output = Signal(bool())
  
     @always_comb     @always_comb
Line 76: Line 76:
 class ToggleFF(Block): class ToggleFF(Block):
  
-    q = Output(bool(0))+    q = Signal(bool(0)) 
 +    output = q
                            # Input a is not defined at the time we are instantiating the class.                             # Input a is not defined at the time we are instantiating the class. 
     @always("a.posedge")   # Therefore we use the string.     @always("a.posedge")   # Therefore we use the string.
meps/mep-104.txt · Last modified: 2008/07/10 07:23 by thomastraber
 
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