File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
- from migen .fhdl .std import (Instance , Module )
2
- from migen .genlib .io import (DifferentialInput , DifferentialOutput )
3
-
4
-
5
- __all__ = ['altera_special_overrides' ]
1
+ from migen .fhdl .std import Instance , Module
2
+ from migen .genlib .io import DifferentialInput , DifferentialOutput
6
3
7
4
8
5
class QuartusDifferentialInputImpl (Module ):
9
6
def __init__ (self , i_p , i_n , o ):
10
7
self .specials += Instance ("ALT_INBUF_DIFF" ,
11
- name = ' ibuf_diff' ,
8
+ name = " ibuf_diff" ,
12
9
i_i = i_p ,
13
10
i_ibar = i_n ,
14
11
o_o = o )
@@ -23,7 +20,7 @@ def lower(dr):
23
20
class QuartusDifferentialOutputImpl (Module ):
24
21
def __init__ (self , i , o_p , o_n ):
25
22
self .specials += Instance ("ALT_OUTBUF_DIFF" ,
26
- name = ' obuf_diff' ,
23
+ name = " obuf_diff" ,
27
24
i_i = i ,
28
25
o_o = o_p ,
29
26
o_obar = o_n )
@@ -34,6 +31,7 @@ class QuartusDifferentialOutput:
34
31
def lower (dr ):
35
32
return QuartusDifferentialOutputImpl (dr .i , dr .o_p , dr .o_n )
36
33
34
+
37
35
altera_special_overrides = {
38
36
DifferentialInput : QuartusDifferentialInput ,
39
37
DifferentialOutput : QuartusDifferentialOutput
You can’t perform that action at this time.
0 commit comments