corelogic: fix signal exports
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 18 Dec 2011 20:54:28 +0000 (21:54 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 18 Dec 2011 20:54:28 +0000 (21:54 +0100)
migen/corelogic/divider.py
migen/corelogic/roundrobin.py

index f411b92ff9fde30e5ec319f5c9c11b8e24fe74aa..fb2214754fa402896230a65b94027abcf55c9f99 100644 (file)
@@ -4,12 +4,12 @@ class Inst:
        def __init__(self, w):
                self.w = w
                
-               start_i = Signal()
-               dividend_i = Signal(BV(w))
-               divisor_i = Signal(BV(w))
-               ready_o = Signal()
-               quotient_o = Signal(BV(w))
-               remainder_o = Signal(BV(w))
+               self.start_i = Signal()
+               self.dividend_i = Signal(BV(w))
+               self.divisor_i = Signal(BV(w))
+               self.ready_o = Signal()
+               self.quotient_o = Signal(BV(w))
+               self.remainder_o = Signal(BV(w))
        
        def get_fragment(self):
                w = self.w
index 850fbd2f0c5835dc899d0476758e0bb8c32c64bc..af1e057ddaace2aee4e2b27b24e72ba6a6d03fd9 100644 (file)
@@ -4,8 +4,8 @@ class Inst:
        def __init__(self, n):
                self.n = n
                self.bn = bits_for(self.n-1)
-               request = Signal(BV(self.n))
-               grant = Signal(BV(self.bn))
+               self.request = Signal(BV(self.n))
+               self.grant = Signal(BV(self.bn))
        
        def get_fragment(self):
                cases = []