mibuild/altera: cleanup
authorSebastien Bourdeauducq <sb@m-labs.hk>
Mon, 20 Apr 2015 09:17:34 +0000 (17:17 +0800)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Mon, 20 Apr 2015 09:17:34 +0000 (17:17 +0800)
mibuild/altera/common.py

index 86c0cd2b363708abe639aaba49e6795d24e40764..56e206557bbbc203a1d248b78d1ff6436c1e0bf0 100644 (file)
@@ -1,14 +1,11 @@
-from migen.fhdl.std import (Instance, Module)
-from migen.genlib.io import (DifferentialInput, DifferentialOutput)
-
-
-__all__ = ['altera_special_overrides']
+from migen.fhdl.std import Instance, Module
+from migen.genlib.io import DifferentialInput, DifferentialOutput
 
 
 class QuartusDifferentialInputImpl(Module):
     def __init__(self, i_p, i_n, o):
         self.specials += Instance("ALT_INBUF_DIFF",
-                                  name='ibuf_diff',
+                                  name="ibuf_diff",
                                   i_i=i_p,
                                   i_ibar=i_n,
                                   o_o=o)
@@ -23,7 +20,7 @@ class QuartusDifferentialInput:
 class QuartusDifferentialOutputImpl(Module):
     def __init__(self, i, o_p, o_n):
         self.specials += Instance("ALT_OUTBUF_DIFF",
-                                  name='obuf_diff',
+                                  name="obuf_diff",
                                   i_i=i,
                                   o_o=o_p,
                                   o_obar=o_n)
@@ -34,6 +31,7 @@ class QuartusDifferentialOutput:
     def lower(dr):
         return QuartusDifferentialOutputImpl(dr.i, dr.o_p, dr.o_n)
 
+
 altera_special_overrides = {
     DifferentialInput: QuartusDifferentialInput,
     DifferentialOutput: QuartusDifferentialOutput