From 64b85e621e740b9b7a9bdb03749758c703fea6e1 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sun, 23 Aug 2020 16:06:55 +0200 Subject: [PATCH] add SPDX License identifier to header and specify file is part or LiteEth. Artix7/Ultrascale 1000BaseX is reused from MiSoC/LiteEthMini, specify it. --- examples/make.py | 7 +++++-- examples/targets/base.py | 7 +++++-- examples/targets/etherbone.py | 7 +++++-- examples/targets/stream.py | 7 +++++-- examples/targets/udp.py | 7 +++++-- examples/targets/udp_loopback/listener.py | 7 +++++-- examples/targets/udp_loopback/sender.py | 7 +++++-- examples/targets/udp_loopback/versa_ecp5.py | 9 ++++++--- examples/test/test_analyzer.py | 7 +++++-- examples/test/test_etherbone.py | 7 +++++-- examples/test/test_regs.py | 7 +++++-- examples/test/test_stream.py | 7 +++++-- examples/test/test_udp.py | 7 +++++-- examples/udp_s7phyrgmii.yml | 7 +++++-- examples/wishbone_mii.yml | 7 +++++-- liteeth/common.py | 7 +++++-- liteeth/core/__init__.py | 6 ++++++ liteeth/core/arp.py | 7 +++++-- liteeth/core/icmp.py | 7 +++++-- liteeth/core/ip.py | 7 +++++-- liteeth/core/udp.py | 7 +++++-- liteeth/crossbar.py | 7 +++++-- liteeth/frontend/etherbone.py | 7 +++++-- liteeth/frontend/stream.py | 7 +++++-- liteeth/gen.py | 11 +++++++---- liteeth/mac/__init__.py | 6 ++++++ liteeth/mac/common.py | 7 +++++-- liteeth/mac/core.py | 11 +++++++---- liteeth/mac/crc.py | 13 ++++++++----- liteeth/mac/gap.py | 11 +++++++---- liteeth/mac/last_be.py | 11 +++++++---- liteeth/mac/padding.py | 11 +++++++---- liteeth/mac/preamble.py | 11 +++++++---- liteeth/mac/sram.py | 11 +++++++---- liteeth/mac/wishbone.py | 9 ++++++--- liteeth/phy/a7_1000basex.py | 9 ++++++--- liteeth/phy/a7_gtp.py | 9 ++++++--- liteeth/phy/common.py | 7 +++++-- liteeth/phy/ecp5rgmii.py | 9 ++++++--- liteeth/phy/gmii.py | 7 +++++-- liteeth/phy/gmii_mii.py | 7 +++++-- liteeth/phy/k7_1000basex.py | 7 +++++-- liteeth/phy/ku_1000basex.py | 9 ++++++--- liteeth/phy/mii.py | 7 +++++-- liteeth/phy/model.py | 7 +++++-- liteeth/phy/pcs_1000basex.py | 7 +++++-- liteeth/phy/rmii.py | 7 +++++-- liteeth/phy/s6rgmii.py | 7 +++++-- liteeth/phy/s7rgmii.py | 7 +++++-- liteeth/phy/usrgmii.py | 7 +++++-- test/model/arp.py | 7 +++++-- test/model/dumps.py | 7 +++++-- test/model/etherbone.py | 7 +++++-- test/model/icmp.py | 7 +++++-- test/model/ip.py | 7 +++++-- test/model/mac.py | 7 +++++-- test/model/phy.py | 7 +++++-- test/model/udp.py | 7 +++++-- test/test_arp.py | 7 +++++-- test/test_etherbone.py | 7 +++++-- test/test_examples.py | 7 +++++-- test/test_gen.py | 7 +++++-- test/test_icmp.py | 7 +++++-- test/test_ip.py | 7 +++++-- test/test_mac_core.py | 7 +++++-- test/test_mac_wishbone.py | 7 +++++-- test/test_model.py | 7 +++++-- test/test_udp.py | 7 +++++-- 68 files changed, 365 insertions(+), 155 deletions(-) diff --git a/examples/make.py b/examples/make.py index 2447fbb..1a8874a 100755 --- a/examples/make.py +++ b/examples/make.py @@ -1,7 +1,10 @@ #!/usr/bin/env python3 -# This file is Copyright (c) 2015-2018 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2018 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import sys import os diff --git a/examples/targets/base.py b/examples/targets/base.py index c4e3ab9..9ace112 100644 --- a/examples/targets/base.py +++ b/examples/targets/base.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2019 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2019 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from litex.build.io import CRG from litex.build.xilinx.vivado import XilinxVivadoToolchain diff --git a/examples/targets/etherbone.py b/examples/targets/etherbone.py index 4bc6791..1665449 100644 --- a/examples/targets/etherbone.py +++ b/examples/targets/etherbone.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2019 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2019 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from liteeth.common import * from liteeth.frontend.etherbone import LiteEthEtherbone diff --git a/examples/targets/stream.py b/examples/targets/stream.py index 25091ba..d21b6c0 100644 --- a/examples/targets/stream.py +++ b/examples/targets/stream.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2019 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2019 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from liteeth.common import * from liteeth.frontend.stream import LiteEthUDPStreamer diff --git a/examples/targets/udp.py b/examples/targets/udp.py index 973cf3d..4dabd47 100644 --- a/examples/targets/udp.py +++ b/examples/targets/udp.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2019 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2019 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from liteeth.common import * diff --git a/examples/targets/udp_loopback/listener.py b/examples/targets/udp_loopback/listener.py index 5c6d6a6..062bceb 100755 --- a/examples/targets/udp_loopback/listener.py +++ b/examples/targets/udp_loopback/listener.py @@ -1,7 +1,10 @@ #!/usr/bin/env python3 -# This file is Copyright (c) 2019 Yehowshua Immanuel -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2019 Yehowshua Immanuel +# SPDX-License-Identifier: BSD-2-Clause import socket diff --git a/examples/targets/udp_loopback/sender.py b/examples/targets/udp_loopback/sender.py index cba27de..d217760 100755 --- a/examples/targets/udp_loopback/sender.py +++ b/examples/targets/udp_loopback/sender.py @@ -1,7 +1,10 @@ #!/usr/bin/env python3 -# This file is Copyright (c) 2019 Yehowshua Immanuel -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2019 Yehowshua Immanuel +# SPDX-License-Identifier: BSD-2-Clause import socket import time diff --git a/examples/targets/udp_loopback/versa_ecp5.py b/examples/targets/udp_loopback/versa_ecp5.py index a63101b..fd377af 100755 --- a/examples/targets/udp_loopback/versa_ecp5.py +++ b/examples/targets/udp_loopback/versa_ecp5.py @@ -1,8 +1,11 @@ #!/usr/bin/env python3 -# This file is Copyright (c) 2019 Yehowshua Immanuel -# This file is Copyright (c) 2019 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2019 Yehowshua Immanuel +# Copyright (c) 2019 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import sys diff --git a/examples/test/test_analyzer.py b/examples/test/test_analyzer.py index 4c674a7..bd467f4 100644 --- a/examples/test/test_analyzer.py +++ b/examples/test/test_analyzer.py @@ -1,7 +1,10 @@ #!/usr/bin/env python3 -# This file is Copyright (c) 2015-2018 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2018 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from litex import RemoteClient diff --git a/examples/test/test_etherbone.py b/examples/test/test_etherbone.py index 1625044..4ed3940 100644 --- a/examples/test/test_etherbone.py +++ b/examples/test/test_etherbone.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2018 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2018 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import socket import time diff --git a/examples/test/test_regs.py b/examples/test/test_regs.py index b7f75bf..cf2d25e 100644 --- a/examples/test/test_regs.py +++ b/examples/test/test_regs.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2018 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2018 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from litex import RemoteClient diff --git a/examples/test/test_stream.py b/examples/test/test_stream.py index 6059485..7a9df0f 100644 --- a/examples/test/test_stream.py +++ b/examples/test/test_stream.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2018 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2018 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import socket import threading diff --git a/examples/test/test_udp.py b/examples/test/test_udp.py index 647f9a1..920193f 100644 --- a/examples/test/test_udp.py +++ b/examples/test/test_udp.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2018 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2018 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import socket import time diff --git a/examples/udp_s7phyrgmii.yml b/examples/udp_s7phyrgmii.yml index badae13..97fc090 100644 --- a/examples/udp_s7phyrgmii.yml +++ b/examples/udp_s7phyrgmii.yml @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2020 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause # PHY ---------------------------------------------------------------------- phy: LiteEthS7PHYRGMII diff --git a/examples/wishbone_mii.yml b/examples/wishbone_mii.yml index 02533c0..648f8e2 100644 --- a/examples/wishbone_mii.yml +++ b/examples/wishbone_mii.yml @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2020 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause # PHY ---------------------------------------------------------------------- phy: LiteEthPHYMII diff --git a/liteeth/common.py b/liteeth/common.py index d5207a3..9830db1 100644 --- a/liteeth/common.py +++ b/liteeth/common.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2018 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2018 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from math import ceil diff --git a/liteeth/core/__init__.py b/liteeth/core/__init__.py index 153a29a..7dcb8e2 100644 --- a/liteeth/core/__init__.py +++ b/liteeth/core/__init__.py @@ -1,3 +1,9 @@ +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause + from liteeth.common import * from liteeth.mac import LiteEthMAC from liteeth.core.arp import LiteEthARP diff --git a/liteeth/core/arp.py b/liteeth/core/arp.py index d5dad1a..5c9e15f 100644 --- a/liteeth/core/arp.py +++ b/liteeth/core/arp.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2020 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from liteeth.common import * diff --git a/liteeth/core/icmp.py b/liteeth/core/icmp.py index 470524d..41f20f3 100644 --- a/liteeth/core/icmp.py +++ b/liteeth/core/icmp.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2020 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from liteeth.common import * diff --git a/liteeth/core/ip.py b/liteeth/core/ip.py index 0044b40..89c3b30 100644 --- a/liteeth/core/ip.py +++ b/liteeth/core/ip.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2020 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from liteeth.common import * from liteeth.crossbar import LiteEthCrossbar diff --git a/liteeth/core/udp.py b/liteeth/core/udp.py index 1f767f2..771d77f 100644 --- a/liteeth/core/udp.py +++ b/liteeth/core/udp.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2020 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from liteeth.common import * from liteeth.crossbar import LiteEthCrossbar diff --git a/liteeth/crossbar.py b/liteeth/crossbar.py index 524f866..b43e637 100644 --- a/liteeth/crossbar.py +++ b/liteeth/crossbar.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from collections import OrderedDict diff --git a/liteeth/frontend/etherbone.py b/liteeth/frontend/etherbone.py index 9a10970..038a3ae 100644 --- a/liteeth/frontend/etherbone.py +++ b/liteeth/frontend/etherbone.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2020 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause """ Etherbone diff --git a/liteeth/frontend/stream.py b/liteeth/frontend/stream.py index 3dde398..066e868 100644 --- a/liteeth/frontend/stream.py +++ b/liteeth/frontend/stream.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2020 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from liteeth.common import * diff --git a/liteeth/gen.py b/liteeth/gen.py index 0e59b80..ccb49a8 100755 --- a/liteeth/gen.py +++ b/liteeth/gen.py @@ -1,9 +1,12 @@ #!/usr/bin/env python3 -# This file is Copyright (c) 2015-2020 Florent Kermarrec -# This file is Copyright (c) 2020 Xiretza -# This file is Copyright (c) 2020 Stefan Schrijvers -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2020 Florent Kermarrec +# Copyright (c) 2020 Xiretza +# Copyright (c) 2020 Stefan Schrijvers +# SPDX-License-Identifier: BSD-2-Clause """ LiteEth standalone core generator diff --git a/liteeth/mac/__init__.py b/liteeth/mac/__init__.py index ebc5180..b2bf511 100644 --- a/liteeth/mac/__init__.py +++ b/liteeth/mac/__init__.py @@ -1,3 +1,9 @@ +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause + from liteeth.common import * from liteeth.mac.common import * from liteeth.mac.core import LiteEthMACCore diff --git a/liteeth/mac/common.py b/liteeth/mac/common.py index 463fd02..3a23f89 100644 --- a/liteeth/mac/common.py +++ b/liteeth/mac/common.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2020 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from liteeth.common import * from liteeth.crossbar import LiteEthCrossbar diff --git a/liteeth/mac/core.py b/liteeth/mac/core.py index f323bb6..e773bba 100644 --- a/liteeth/mac/core.py +++ b/liteeth/mac/core.py @@ -1,7 +1,10 @@ -# This file is Copyright (c) 2015-2020 Florent Kermarrec -# This file is Copyright (c) 2015-2017 Sebastien Bourdeauducq -# This file is Copyright (c) 2017-2018 whitequark -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2020 Florent Kermarrec +# Copyright (c) 2015-2017 Sebastien Bourdeauducq +# Copyright (c) 2017-2018 whitequark +# SPDX-License-Identifier: BSD-2-Clause from liteeth.common import * from liteeth.mac import gap, preamble, crc, padding, last_be diff --git a/liteeth/mac/crc.py b/liteeth/mac/crc.py index 3434e20..ed057d8 100644 --- a/liteeth/mac/crc.py +++ b/liteeth/mac/crc.py @@ -1,8 +1,11 @@ -# This file is Copyright (c) 2015-2020 Florent Kermarrec -# This file is Copyright (c) 2015 Sebastien Bourdeauducq -# This file is Copyright (c) 2017 whitequark -# This file is Copyright (c) 2018 Felix Held -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2020 Florent Kermarrec +# Copyright (c) 2015 Sebastien Bourdeauducq +# Copyright (c) 2017 whitequark +# Copyright (c) 2018 Felix Held +# SPDX-License-Identifier: BSD-2-Clause from functools import reduce from operator import xor diff --git a/liteeth/mac/gap.py b/liteeth/mac/gap.py index 1a41f8e..cf5ad4d 100644 --- a/liteeth/mac/gap.py +++ b/liteeth/mac/gap.py @@ -1,7 +1,10 @@ -# This file is Copyright (c) 2015-2020 Florent Kermarrec -# This file is Copyright (c) 2015-2017 Sebastien Bourdeauducq -# This file is Copyright (c) 2018 whitequark -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2020 Florent Kermarrec +# Copyright (c) 2015-2017 Sebastien Bourdeauducq +# Copyright (c) 2018 whitequark +# SPDX-License-Identifier: BSD-2-Clause import math diff --git a/liteeth/mac/last_be.py b/liteeth/mac/last_be.py index 79616f9..3fae1f0 100644 --- a/liteeth/mac/last_be.py +++ b/liteeth/mac/last_be.py @@ -1,7 +1,10 @@ -# This file is Copyright (c) 2015-2020 Florent Kermarrec -# This file is Copyright (c) 2015 Sebastien Bourdeauducq -# This file is Copyright (c) 2018 whitequark -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2020 Florent Kermarrec +# Copyright (c) 2015 Sebastien Bourdeauducq +# Copyright (c) 2018 whitequark +# SPDX-License-Identifier: BSD-2-Clause from liteeth.common import * diff --git a/liteeth/mac/padding.py b/liteeth/mac/padding.py index cb72018..2432873 100644 --- a/liteeth/mac/padding.py +++ b/liteeth/mac/padding.py @@ -1,7 +1,10 @@ -# This file is Copyright (c) 2015-2020 Florent Kermarrec -# This file is Copyright (c) 2015 Sebastien Bourdeauducq -# This file is Copyright (c) 2018 whitequark -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2020 Florent Kermarrec +# Copyright (c) 2015 Sebastien Bourdeauducq +# Copyright (c) 2018 whitequark +# SPDX-License-Identifier: BSD-2-Clause import math diff --git a/liteeth/mac/preamble.py b/liteeth/mac/preamble.py index 780dbab..54f5a95 100644 --- a/liteeth/mac/preamble.py +++ b/liteeth/mac/preamble.py @@ -1,7 +1,10 @@ -# This file is Copyright (c) 2015-2020 Florent Kermarrec -# This file is Copyright (c) 2015-2017 Sebastien Bourdeauducq -# This file is Copyright (c) 2017-2018 whitequark -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2020 Florent Kermarrec +# Copyright (c) 2015-2017 Sebastien Bourdeauducq +# Copyright (c) 2017-2018 whitequark +# SPDX-License-Identifier: BSD-2-Clause from liteeth.common import * diff --git a/liteeth/mac/sram.py b/liteeth/mac/sram.py index 6f957d2..ac075b8 100644 --- a/liteeth/mac/sram.py +++ b/liteeth/mac/sram.py @@ -1,7 +1,10 @@ -# This file is Copyright (c) 2015-2020 Florent Kermarrec -# This file is Copyright (c) 2015-2018 Sebastien Bourdeauducq -# This file is Copyright (c) 2017 whitequark -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2020 Florent Kermarrec +# Copyright (c) 2015-2018 Sebastien Bourdeauducq +# Copyright (c) 2017 whitequark +# SPDX-License-Identifier: BSD-2-Clause from liteeth.common import * diff --git a/liteeth/mac/wishbone.py b/liteeth/mac/wishbone.py index 7f99abc..5c6b892 100644 --- a/liteeth/mac/wishbone.py +++ b/liteeth/mac/wishbone.py @@ -1,6 +1,9 @@ -# This file is Copyright (c) 2015-2020 Florent Kermarrec -# This file is Copyright (c) 2015-2016 Sebastien Bourdeauducq -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2020 Florent Kermarrec +# Copyright (c) 2015-2016 Sebastien Bourdeauducq +# SPDX-License-Identifier: BSD-2-Clause from liteeth.common import * from liteeth.mac import sram diff --git a/liteeth/phy/a7_1000basex.py b/liteeth/phy/a7_1000basex.py index dca2c80..9deb9d3 100644 --- a/liteeth/phy/a7_1000basex.py +++ b/liteeth/phy/a7_1000basex.py @@ -1,6 +1,9 @@ -# This file is Copyright (c) 2018 Sebastien Bourdeauducq -# This file is Copyright (c) 2020 Florent Kermarrec -# License: BSD +# +# This file is part of MiSoC and has been adapted/modified for LiteEth. +# +# Copyright (c) 2018 Sebastien Bourdeauducq +# Copyright (c) 2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from migen import * from migen.genlib.resetsync import AsyncResetSynchronizer diff --git a/liteeth/phy/a7_gtp.py b/liteeth/phy/a7_gtp.py index 3458a43..f12d056 100644 --- a/liteeth/phy/a7_gtp.py +++ b/liteeth/phy/a7_gtp.py @@ -1,6 +1,9 @@ -# This file is Copyright (c) 2018 Sebastien Bourdeauducq -# This file is Copyright (c) 2020 Florent Kermarrec -# License: BSD +# +# This file is part of MiSoC and has been adapted/modified for LiteEth. +# +# Copyright (c) 2018 Sebastien Bourdeauducq +# Copyright (c) 2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from collections import namedtuple from math import ceil diff --git a/liteeth/phy/common.py b/liteeth/phy/common.py index 1738e9c..3c1bd00 100644 --- a/liteeth/phy/common.py +++ b/liteeth/phy/common.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2018 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2018 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from liteeth.common import * diff --git a/liteeth/phy/ecp5rgmii.py b/liteeth/phy/ecp5rgmii.py index eb254a5..b2e766c 100644 --- a/liteeth/phy/ecp5rgmii.py +++ b/liteeth/phy/ecp5rgmii.py @@ -1,6 +1,9 @@ -# This file is Copyright (c) 2019-2020 Florent Kermarrec -# This file is Copyright (c) 2020 Shawn Hoffman -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2019-2020 Florent Kermarrec +# Copyright (c) 2020 Shawn Hoffman +# SPDX-License-Identifier: BSD-2-Clause # RGMII PHY for ECP5 Lattice FPGA diff --git a/liteeth/phy/gmii.py b/liteeth/phy/gmii.py index 815eda1..a2ed1a0 100644 --- a/liteeth/phy/gmii.py +++ b/liteeth/phy/gmii.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2018 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2018 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from migen import * from migen.genlib.resetsync import AsyncResetSynchronizer diff --git a/liteeth/phy/gmii_mii.py b/liteeth/phy/gmii_mii.py index f3ee350..fa4b1ca 100644 --- a/liteeth/phy/gmii_mii.py +++ b/liteeth/phy/gmii_mii.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2018 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2018 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from migen import * from migen.genlib.cdc import PulseSynchronizer diff --git a/liteeth/phy/k7_1000basex.py b/liteeth/phy/k7_1000basex.py index 49f8a15..36084fc 100644 --- a/liteeth/phy/k7_1000basex.py +++ b/liteeth/phy/k7_1000basex.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2018-2020 Florent Kermarrec -# License: BSD +# +# This file is part of MiSoC and has been adapted/modified for LiteEth. +# +# Copyright (c) 2018-2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from migen import * from migen.genlib.resetsync import AsyncResetSynchronizer diff --git a/liteeth/phy/ku_1000basex.py b/liteeth/phy/ku_1000basex.py index c500c8f..1fdee52 100644 --- a/liteeth/phy/ku_1000basex.py +++ b/liteeth/phy/ku_1000basex.py @@ -1,6 +1,9 @@ -# This file is Copyright (c) 2018 Sebastien Bourdeauducq -# This file is Copyright (c) 2019-2020 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2018 Sebastien Bourdeauducq +# Copyright (c) 2019-2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from migen import * from migen.genlib.resetsync import AsyncResetSynchronizer diff --git a/liteeth/phy/mii.py b/liteeth/phy/mii.py index 5734cd6..15674a5 100644 --- a/liteeth/phy/mii.py +++ b/liteeth/phy/mii.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2018 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2018 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from migen import * from migen.genlib.resetsync import AsyncResetSynchronizer diff --git a/liteeth/phy/model.py b/liteeth/phy/model.py index 51438de..983c235 100644 --- a/liteeth/phy/model.py +++ b/liteeth/phy/model.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2018 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2018 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from migen import * diff --git a/liteeth/phy/pcs_1000basex.py b/liteeth/phy/pcs_1000basex.py index c666f1f..9ffba9b 100644 --- a/liteeth/phy/pcs_1000basex.py +++ b/liteeth/phy/pcs_1000basex.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2018 Sebastien Bourdeauducq -# License: BSD +# +# This file is part of MiSoC and has been adapted/modified for LiteEth. +# +# Copyright (c) 2018 Sebastien Bourdeauducq +# SPDX-License-Identifier: BSD-2-Clause from math import ceil diff --git a/liteeth/phy/rmii.py b/liteeth/phy/rmii.py index ae0ea96..4c2a90c 100644 --- a/liteeth/phy/rmii.py +++ b/liteeth/phy/rmii.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2018 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2018 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from migen import * from migen.genlib.cdc import MultiReg diff --git a/liteeth/phy/s6rgmii.py b/liteeth/phy/s6rgmii.py index 5f4c70a..ce6362a 100644 --- a/liteeth/phy/s6rgmii.py +++ b/liteeth/phy/s6rgmii.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2019-2020 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2019-2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause # RGMII PHY for Spartan6 Xilinx FPGA diff --git a/liteeth/phy/s7rgmii.py b/liteeth/phy/s7rgmii.py index 7394bb5..f5dc4c0 100644 --- a/liteeth/phy/s7rgmii.py +++ b/liteeth/phy/s7rgmii.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2020 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause # RGMII PHY for 7-Series Xilinx FPGA diff --git a/liteeth/phy/usrgmii.py b/liteeth/phy/usrgmii.py index 32bdc4e..aaa7c83 100644 --- a/liteeth/phy/usrgmii.py +++ b/liteeth/phy/usrgmii.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2020 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause # RGMII PHY for Ultrascale Xilinx FPGAs diff --git a/test/model/arp.py b/test/model/arp.py index 7ac44ab..a4f79e8 100644 --- a/test/model/arp.py +++ b/test/model/arp.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2019 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2019 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import math diff --git a/test/model/dumps.py b/test/model/dumps.py index af2a0cf..bfcbc03 100644 --- a/test/model/dumps.py +++ b/test/model/dumps.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2019 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2019 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import re diff --git a/test/model/etherbone.py b/test/model/etherbone.py index 499a079..4fbb7fb 100644 --- a/test/model/etherbone.py +++ b/test/model/etherbone.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2019 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2019 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import math diff --git a/test/model/icmp.py b/test/model/icmp.py index 3fa8542..faf5c90 100644 --- a/test/model/icmp.py +++ b/test/model/icmp.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2019 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2019 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import math diff --git a/test/model/ip.py b/test/model/ip.py index b32adf6..ea4e2c6 100644 --- a/test/model/ip.py +++ b/test/model/ip.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2019 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2019 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import math diff --git a/test/model/mac.py b/test/model/mac.py index e49cd80..efce857 100644 --- a/test/model/mac.py +++ b/test/model/mac.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2017 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2017 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import math import binascii diff --git a/test/model/phy.py b/test/model/phy.py index 5f2b0f2..c11904a 100644 --- a/test/model/phy.py +++ b/test/model/phy.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2019 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2019 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause from litex.soc.interconnect.stream_sim import * diff --git a/test/model/udp.py b/test/model/udp.py index 9057d1b..05aaabc 100644 --- a/test/model/udp.py +++ b/test/model/udp.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2019 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2019 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import math diff --git a/test/test_arp.py b/test/test_arp.py index 7801d86..cea9c11 100644 --- a/test/test_arp.py +++ b/test/test_arp.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2019 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2019 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import unittest diff --git a/test/test_etherbone.py b/test/test_etherbone.py index 67787b4..1d8c939 100644 --- a/test/test_etherbone.py +++ b/test/test_etherbone.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2018 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2018 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import unittest diff --git a/test/test_examples.py b/test/test_examples.py index c536778..61ade15 100644 --- a/test/test_examples.py +++ b/test/test_examples.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2019 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2019 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import unittest import os diff --git a/test/test_gen.py b/test/test_gen.py index 7b4a417..b6431b5 100644 --- a/test/test_gen.py +++ b/test/test_gen.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2019-2020 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2019-2020 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import unittest import os diff --git a/test/test_icmp.py b/test/test_icmp.py index ce867f0..9bb3af1 100644 --- a/test/test_icmp.py +++ b/test/test_icmp.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2018 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2018 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import unittest diff --git a/test/test_ip.py b/test/test_ip.py index 4b66371..8613162 100644 --- a/test/test_ip.py +++ b/test/test_ip.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2018 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2018 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import unittest diff --git a/test/test_mac_core.py b/test/test_mac_core.py index a7a8e89..3a1a648 100644 --- a/test/test_mac_core.py +++ b/test/test_mac_core.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2019 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2019 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import unittest diff --git a/test/test_mac_wishbone.py b/test/test_mac_wishbone.py index 65a542a..d05c6b7 100644 --- a/test/test_mac_wishbone.py +++ b/test/test_mac_wishbone.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2019 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2019 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import unittest diff --git a/test/test_model.py b/test/test_model.py index f1ece38..658db8e 100644 --- a/test/test_model.py +++ b/test/test_model.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2019 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2019 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import unittest diff --git a/test/test_udp.py b/test/test_udp.py index e83273b..92debe8 100644 --- a/test/test_udp.py +++ b/test/test_udp.py @@ -1,5 +1,8 @@ -# This file is Copyright (c) 2015-2018 Florent Kermarrec -# License: BSD +# +# This file is part of LiteEth. +# +# Copyright (c) 2015-2018 Florent Kermarrec +# SPDX-License-Identifier: BSD-2-Clause import unittest