test_i2c: allow unit test to run directly
This commit is contained in:
parent
5504cc626f
commit
64ccd6df1c
|
@ -1,3 +1,4 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# This file is part of MiSoC and has been adapted/modified for Litex.
|
# This file is part of MiSoC and has been adapted/modified for Litex.
|
||||||
#
|
#
|
||||||
|
@ -130,3 +131,6 @@ class TestI2C(unittest.TestCase):
|
||||||
yield from wait_idle()
|
yield from wait_idle()
|
||||||
|
|
||||||
run_simulation(dut, check(), special_overrides={Tristate: _MockTristate}, vcd_name="i2c.vcd")
|
run_simulation(dut, check(), special_overrides={Tristate: _MockTristate}, vcd_name="i2c.vcd")
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue