Skip to content

Commit 217d4ea

Browse files
committed
Rename nMigen to Amaranth HDL.
1 parent d0e6c70 commit 217d4ea

23 files changed

+60
-54
lines changed

.coveragerc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[run]
22
branch = True
33
include =
4-
nmigen_soc/*
4+
amaranth_soc/*
55
omit =
6-
nmigen_soc/test/*
6+
amaranth_soc/test/*
77
*/__init__.py
88

99
[report]

LICENSE.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Copyright (C) 2019-2020 whitequark
2-
Copyright (C) 2019 M-Labs Limited
1+
Copyright (C) 2019-2021 Amaranth HDL contributors
32

43
Redistribution and use in source and binary forms, with or without modification,
54
are permitted provided that the following conditions are met:

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
# System on Chip toolkit for nMigen
1+
# System on Chip toolkit for Amaranth HDL
22

3-
## CPU and peripheral building blocks
3+
TODO
44

5-
TBD
5+
## License
66

7-
### License
8-
9-
nMigen is released under the very permissive two-clause BSD license. Under the terms of this license, you are authorized to use nMigen for closed-source proprietary designs.
7+
Amaranth is released under the very permissive two-clause BSD license. Under the terms of this license, you are authorized to use Amaranth for closed-source proprietary designs.
108

119
See [LICENSE.txt](LICENSE.txt) file for full copyright and license info.

amaranth_soc/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
try:
2+
try:
3+
from importlib import metadata as importlib_metadata # py3.8+ stdlib
4+
except ImportError:
5+
import importlib_metadata # py3.7- shim
6+
__version__ = importlib_metadata.version(__package__)
7+
except ImportError:
8+
# No importlib_metadata. This shouldn't normally happen, but some people prefer not installing
9+
# packages via pip at all, instead using PYTHONPATH directly or copying the package files into
10+
# `lib/pythonX.Y/site-packages`. Although not a recommended way, we still try to support it.
11+
__version__ = "unknown" # :nocov:
File renamed without changes.

nmigen_soc/csr/bus.py renamed to amaranth_soc/csr/bus.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import enum
2-
from nmigen import *
3-
from nmigen.utils import log2_int
2+
from amaranth import *
3+
from amaranth.utils import log2_int
44

55
from ..memory import MemoryMap
66

nmigen_soc/csr/event.py renamed to amaranth_soc/csr/event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# nmigen: UnusedElaboratable=no
1+
# amaranth: UnusedElaboratable=no
22

3-
from nmigen import *
3+
from amaranth import *
44

55
from . import Element, Multiplexer
66
from .. import event

nmigen_soc/csr/wishbone.py renamed to amaranth_soc/csr/wishbone.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from nmigen import *
2-
from nmigen.utils import log2_int
1+
from amaranth import *
2+
from amaranth.utils import log2_int
33

44
from . import Interface as CSRInterface
55
from ..wishbone import Interface as WishboneInterface

nmigen_soc/event.py renamed to amaranth_soc/event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import enum
22
from collections import OrderedDict
33

4-
from nmigen import *
4+
from amaranth import *
55

66

77
__all__ = ["Source", "EventMap", "Monitor"]

nmigen_soc/memory.py renamed to amaranth_soc/memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import bisect
22

3-
from nmigen.utils import bits_for
3+
from amaranth.utils import bits_for
44

55

66
__all__ = ["ResourceInfo", "MemoryMap"]

0 commit comments

Comments
 (0)