From a079da922a092619ac7de0c3e550c7534e1baec7 Mon Sep 17 00:00:00 2001 From: Andrew Dennison Date: Fri, 13 Jan 2023 12:57:27 +1100 Subject: [PATCH] soc/cores: adapt misoc i2c to litex Also add misoc license information. --- litex/soc/cores/i2c.py | 17 +++++++++++++++-- test/test_i2c.py | 13 ++++++++++++- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/litex/soc/cores/i2c.py b/litex/soc/cores/i2c.py index 35f28d722..03eaff827 100644 --- a/litex/soc/cores/i2c.py +++ b/litex/soc/cores/i2c.py @@ -1,6 +1,19 @@ -from migen import * -from misoc.interconnect import wishbone +# +# This file is part of MiSoC and has been adapted/modified for Litex. +# +# Copyright 2007-2023 / M-Labs Ltd +# Copyright 2012-2015 / Enjoy-Digital +# Copyright from Misoc LICENCE file added above +# +# Copyright 2023 Andrew Dennison +# +# SPDX-License-Identifier: BSD-2-Clause +from migen import * +from litex.soc.interconnect import wishbone + + +# I2C----------------------------------------------------------------------------------------------- __all__ = [ "I2CMaster", diff --git a/test/test_i2c.py b/test/test_i2c.py index f58e5aca9..3c42ecfd3 100644 --- a/test/test_i2c.py +++ b/test/test_i2c.py @@ -1,9 +1,20 @@ +# +# This file is part of MiSoC and has been adapted/modified for Litex. +# +# Copyright 2007-2023 / M-Labs Ltd +# Copyright 2012-2015 / Enjoy-Digital +# Copyright from Misoc LICENCE file added above +# +# Copyright 2023 Andrew Dennison +# +# SPDX-License-Identifier: BSD-2-Clause + import unittest from migen import * from migen.fhdl.specials import Tristate -from misoc.cores.i2c import * +from litex.soc.cores.i2c import * class _MockPads: