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:58:01 -05:00
|
|
|
|
|
|
|
import unittest
|
|
|
|
|
|
|
|
from migen import *
|
|
|
|
|
|
|
|
from litex.soc.cores.spi_opi import S7SPIOPI
|
|
|
|
|
|
|
|
|
|
|
|
class TestI2S(unittest.TestCase):
|
|
|
|
def test_s7spiopi_syntax(self):
|
|
|
|
spi_opi_pads = Record([("dqs", 1), ("dq", 8), ("sclk", 1), ("cs_n", 1), ("ecs_n", 1)])
|
|
|
|
spi_opi = S7SPIOPI(pads=spi_opi_pads)
|
|
|
|
|