Skip to content

Commit 3187b42

Browse files
committed
nmigen => amaranth rename
1 parent 1cc215f commit 3187b42

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

gateware/arrow_deca.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import os
22
import subprocess
33

4-
from nmigen import *
5-
from nmigen.build import *
6-
from nmigen.vendor.intel import *
7-
from nmigen_boards.resources import *
4+
from amaranth import *
5+
from amaranth.build import *
6+
from amaranth.vendor.intel import *
7+
from amaranth_boards.resources import *
88

99
from luna.gateware.platform.core import LUNAPlatform, NullPin
1010

gateware/deca_mandelbrot.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
# SPDX-License-Identifier: CERN-OHL-W-2.0
55
import os
66

7-
from nmigen import *
8-
from nmigen.lib.fifo import AsyncFIFO
7+
from amaranth import *
8+
from amaranth.lib.fifo import AsyncFIFO
99

10-
from nmigen_library.debug.ila import StreamILA, ILACoreParameters
11-
from nmigen_library.stream import connect_stream_to_fifo, connect_fifo_to_stream
12-
from nmigen_library.io.max7219 import SerialLEDArray, NumberToSevenSegmentHex
10+
from amlib.debug.ila import StreamILA, ILACoreParameters
11+
from amlib.stream import connect_stream_to_fifo, connect_fifo_to_stream
12+
from amlib.io.max7219 import SerialLEDArray, NumberToSevenSegmentHex
1313

1414
from luna import top_level_cli
1515
from luna.usb2 import USBDevice, USBStreamInEndpoint, USBStreamOutEndpoint

gateware/fractalmanager.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
from nmigen import *
2-
from nmigen.build import Platform
3-
from nmigen.lib.coding import PriorityEncoder
1+
from amaranth import *
2+
from amaranth.build import Platform
3+
from amaranth.lib.coding import PriorityEncoder
44

5-
from nmigen_library.test import GatewareTestCase, sync_test_case
6-
from nmigen_library.stream import StreamInterface
5+
from amlib.test import GatewareTestCase, sync_test_case
6+
from amlib.stream import StreamInterface
77

88
from mandelbrot import Mandelbrot
99

gateware/mandelbrot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from nmigen import *
2-
from nmigen.build import Platform
3-
from nmigen_library.test import GatewareTestCase, sync_test_case
1+
from amaranth import *
2+
from amaranth.build import Platform
3+
from amlib.test import GatewareTestCase, sync_test_case
44

55
class Mandelbrot(Elaboratable):
66
def __init__(self, *, bitwidth=128, fraction_bits=120, test=False):

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pyusb
22
numpy
33
matplotlib
4-
git+https://github.com/nmigen/nmigen.git
5-
git+https://github.com/hansfbaier/usb2-highspeed-core.git
6-
git+https://github.com/hansfbaier/nmigen-library.git
4+
git+https://github.com/amaranth-lang/amaranth.git
5+
git+https://github.com/amaranth-community-unofficial/usb2-highspeed-core.git
6+
git+https://github.com/amaranth-community-unofficial/amlib.git

0 commit comments

Comments
 (0)