soc/cores: adapt misoc i2c to litex
Also add misoc license information.
This commit is contained in:
parent
9dc3eefb7d
commit
a079da922a
|
@ -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 <andrew@motec.com.au>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
|
||||||
|
from migen import *
|
||||||
|
from litex.soc.interconnect import wishbone
|
||||||
|
|
||||||
|
|
||||||
|
# I2C-----------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"I2CMaster",
|
"I2CMaster",
|
||||||
|
|
|
@ -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 <andrew@motec.com.au>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from migen import *
|
from migen import *
|
||||||
from migen.fhdl.specials import Tristate
|
from migen.fhdl.specials import Tristate
|
||||||
|
|
||||||
from misoc.cores.i2c import *
|
from litex.soc.cores.i2c import *
|
||||||
|
|
||||||
|
|
||||||
class _MockPads:
|
class _MockPads:
|
||||||
|
|
Loading…
Reference in New Issue