mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
13 lines
400 B
Python
13 lines
400 B
Python
# This file is Copyright (c) 2019 Florent Kermarrec <florent@enjoy-digital.fr>
|
|
# License: BSD
|
|
|
|
import unittest
|
|
|
|
from migen import *
|
|
|
|
from litex.soc.cores.spi import SPIMaster
|
|
|
|
class TestSPI(unittest.TestCase):
|
|
def test_spi_master_syntax(self):
|
|
spi_master = SPIMaster(pads=None, data_width=32, sys_clk_freq=100e6, spi_clk_freq=5e6)
|
|
self.assertEqual(hasattr(spi_master, "pads"), 1)
|