2020-08-23 09:40:21 -04:00
|
|
|
#
|
|
|
|
# This file is part of LiteX.
|
|
|
|
#
|
|
|
|
# Copyright (c) 2020 Florent Kermarrec <florent@enjoy-digital.fr>
|
|
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
2020-02-06 11:00:04 -05:00
|
|
|
|
|
|
|
import unittest
|
|
|
|
|
|
|
|
from migen import *
|
|
|
|
|
2020-03-12 09:54:41 -04:00
|
|
|
from litex.soc.cores.i2s import S7I2S
|
2020-02-06 11:00:04 -05:00
|
|
|
|
|
|
|
|
|
|
|
class TestI2S(unittest.TestCase):
|
|
|
|
def test_s7i2sslave_syntax(self):
|
|
|
|
i2s_pads = Record([("rx", 1), ("tx", 1), ("sync", 1), ("clk", 1)])
|
2020-03-12 09:54:41 -04:00
|
|
|
i2s = S7I2S(pads=i2s_pads, fifo_depth=256)
|
2020-02-06 11:00:04 -05:00
|
|
|
|