usb3_pipe/test/test_ltssm.py

23 lines
489 B
Python
Raw Normal View History

2019-09-27 06:29:43 +02:00
# This file is Copyright (c) 2019 Florent Kermarrec <florent@enjoy-digital.fr>
# License: BSD
import unittest
from migen import *
2019-09-27 07:09:53 +02:00
from usb3_pipe import ltssm
2019-09-27 06:29:43 +02:00
class TestLTSSM(unittest.TestCase):
2019-09-27 07:36:07 +02:00
def test_ltssm_syntax(self):
fsm = ltssm.LTSSM()
2019-09-27 07:09:53 +02:00
def test_ss_inactive_fsm_syntax(self):
fsm = ltssm.SSInactiveFSM()
2019-09-27 07:00:43 +02:00
def test_rx_detect_fsm_syntax(self):
2019-09-27 07:09:53 +02:00
fsm = ltssm.RXDetectFSM()
2019-09-27 07:00:43 +02:00
2019-09-27 06:29:43 +02:00
def test_polling_fsm_syntax(self):
2019-09-27 07:09:53 +02:00
fsm = ltssm.PollingFSM()