mibuild/altera/common: use Altera instead of Quartus (coherency with xilinx/common)
This commit is contained in:
parent
5253b0c06e
commit
7363f00867
|
@ -2,7 +2,7 @@ from migen.fhdl.std import Instance, Module
|
||||||
from migen.genlib.io import DifferentialInput, DifferentialOutput
|
from migen.genlib.io import DifferentialInput, DifferentialOutput
|
||||||
|
|
||||||
|
|
||||||
class QuartusDifferentialInputImpl(Module):
|
class AlteraDifferentialInputImpl(Module):
|
||||||
def __init__(self, i_p, i_n, o):
|
def __init__(self, i_p, i_n, o):
|
||||||
self.specials += Instance("ALT_INBUF_DIFF",
|
self.specials += Instance("ALT_INBUF_DIFF",
|
||||||
name="ibuf_diff",
|
name="ibuf_diff",
|
||||||
|
@ -11,13 +11,13 @@ class QuartusDifferentialInputImpl(Module):
|
||||||
o_o=o)
|
o_o=o)
|
||||||
|
|
||||||
|
|
||||||
class QuartusDifferentialInput:
|
class AlteraDifferentialInput:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def lower(dr):
|
def lower(dr):
|
||||||
return QuartusDifferentialInputImpl(dr.i_p, dr.i_n, dr.o)
|
return AlteraDifferentialInputImpl(dr.i_p, dr.i_n, dr.o)
|
||||||
|
|
||||||
|
|
||||||
class QuartusDifferentialOutputImpl(Module):
|
class AlteraDifferentialOutputImpl(Module):
|
||||||
def __init__(self, i, o_p, o_n):
|
def __init__(self, i, o_p, o_n):
|
||||||
self.specials += Instance("ALT_OUTBUF_DIFF",
|
self.specials += Instance("ALT_OUTBUF_DIFF",
|
||||||
name="obuf_diff",
|
name="obuf_diff",
|
||||||
|
@ -26,13 +26,13 @@ class QuartusDifferentialOutputImpl(Module):
|
||||||
o_obar=o_n)
|
o_obar=o_n)
|
||||||
|
|
||||||
|
|
||||||
class QuartusDifferentialOutput:
|
class AlteraDifferentialOutput:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def lower(dr):
|
def lower(dr):
|
||||||
return QuartusDifferentialOutputImpl(dr.i, dr.o_p, dr.o_n)
|
return AlteraDifferentialOutputImpl(dr.i, dr.o_p, dr.o_n)
|
||||||
|
|
||||||
|
|
||||||
altera_special_overrides = {
|
altera_special_overrides = {
|
||||||
DifferentialInput: QuartusDifferentialInput,
|
DifferentialInput: AlteraDifferentialInput,
|
||||||
DifferentialOutput: QuartusDifferentialOutput
|
DifferentialOutput: AlteraDifferentialOutput
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue