forked from M-Labs/artiq
1
0
Fork 0

ttl_serdes_7series: suppress diff_term in outputs

This commit is contained in:
Robert Jördens 2018-03-05 19:14:06 +00:00 committed by Robert Jordens
parent e356150ac4
commit 50298a6104
1 changed files with 16 additions and 4 deletions

View File

@ -26,10 +26,15 @@ class _OSERDESE2_8X(Module):
if pad_n is None: if pad_n is None:
self.comb += pad.eq(pad_o) self.comb += pad.eq(pad_o)
else: else:
self.specials += Instance("OBUFDS", self.specials += Instance("IOBUFDS_INTERMDISABLE",
p_DIFF_TERM="FALSE",
p_IBUF_LOW_PWR="TRUE",
p_USE_IBUFDISABLE="TRUE",
i_IBUFDISABLE=1,
i_INTERMDISABLE=1,
i_I=pad_o, i_I=pad_o,
o_O=pad, o_OB=pad_n) i_T=self.t_out,
io_IO=pad, io_IOB=pad_n)
class _ISERDESE2_8X(Module): class _ISERDESE2_8X(Module):
def __init__(self, pad, pad_n=None): def __init__(self, pad, pad_n=None):
@ -54,7 +59,14 @@ class _ISERDESE2_8X(Module):
if pad_n is None: if pad_n is None:
self.comb += pad_i.eq(pad) self.comb += pad_i.eq(pad)
else: else:
self.specials += Instance("IBUFDS", o_O=pad_i, i_I=pad, i_IB=pad_n) self.specials += Instance("IBUFDS_INTERMDISABLE",
p_DIFF_TERM="TRUE",
p_IBUF_LOW_PWR="TRUE",
p_USE_IBUFDISABLE="TRUE",
i_IBUFDISABLE=0,
i_INTERMDISABLE=0,
o_O=pad_i,
io_IO=pad, io_IOB=pad_n)
class _IOSERDESE2_8X(Module): class _IOSERDESE2_8X(Module):