Rename nMigen to Amaranth HDL.

This commit is contained in:
whitequark 2021-12-10 05:39:50 +00:00
parent 0b28a97ca0
commit 909a3b8be7
200 changed files with 14493 additions and 14451 deletions

View file

@ -1,5 +1,5 @@
from nmigen import *
from nmigen.cli import main
from amaranth import *
from amaranth.cli import main
class ALU(Elaboratable):

View file

@ -1,5 +1,5 @@
from nmigen import *
from nmigen.cli import main
from amaranth import *
from amaranth.cli import main
class Adder(Elaboratable):

View file

@ -1,5 +1,5 @@
from nmigen import *
from nmigen.cli import main
from amaranth import *
from amaranth.cli import main
class ClockDivisor(Elaboratable):

View file

@ -1,6 +1,6 @@
from nmigen import *
from nmigen.lib.cdc import FFSynchronizer
from nmigen.cli import main
from amaranth import *
from amaranth.lib.cdc import FFSynchronizer
from amaranth.cli import main
i, o = Signal(name="i"), Signal(name="o")

View file

@ -1,5 +1,5 @@
from nmigen import *
from nmigen.cli import main
from amaranth import *
from amaranth.cli import main
class Counter(Elaboratable):

View file

@ -1,6 +1,6 @@
from nmigen import *
from nmigen.sim import *
from nmigen.back import verilog
from amaranth import *
from amaranth.sim import *
from amaranth.back import verilog
class Counter(Elaboratable):

View file

@ -1,5 +1,5 @@
from nmigen import *
from nmigen.cli import main
from amaranth import *
from amaranth.cli import main
class UARTReceiver(Elaboratable):

View file

@ -1,5 +1,5 @@
from nmigen import *
from nmigen.cli import main
from amaranth import *
from amaranth.cli import main
class GPIO(Elaboratable):

View file

@ -1,5 +1,5 @@
from nmigen import *
from nmigen.cli import main
from amaranth import *
from amaranth.cli import main
class System(Elaboratable):

View file

@ -1,5 +1,5 @@
from nmigen import *
from nmigen.cli import main
from amaranth import *
from amaranth.cli import main
class RegisterFile(Elaboratable):

View file

@ -1,5 +1,5 @@
from nmigen import *
from nmigen.cli import main
from amaranth import *
from amaranth.cli import main
class ParMux(Elaboratable):

View file

@ -1,5 +1,5 @@
from nmigen import *
from nmigen.cli import main
from amaranth import *
from amaranth.cli import main
m = Module()

View file

@ -1,5 +1,5 @@
from nmigen import *
from nmigen.cli import main
from amaranth import *
from amaranth.cli import main
class FlatGPIO(Elaboratable):

View file

@ -1,4 +1,4 @@
from nmigen import *
from amaranth import *
class UART(Elaboratable):
@ -103,7 +103,7 @@ if __name__ == "__main__":
args = parser.parse_args()
if args.action == "simulate":
from nmigen.sim import Simulator, Passive
from amaranth.sim import Simulator, Passive
sim = Simulator(uart)
sim.add_clock(1e-6)
@ -141,6 +141,6 @@ if __name__ == "__main__":
sim.run()
if args.action == "generate":
from nmigen.back import verilog
from amaranth.back import verilog
print(verilog.convert(uart, ports=ports))

View file

@ -1,8 +1,8 @@
# If the design does not create a "sync" clock domain, it is created by the nMigen build system
# If the design does not create a "sync" clock domain, it is created by the Amaranth build system
# using the platform default clock (and default reset, if any).
from nmigen import *
from nmigen_boards.ice40_hx1k_blink_evn import *
from amaranth import *
from amaranth_boards.ice40_hx1k_blink_evn import *
class Blinky(Elaboratable):

View file

@ -2,8 +2,8 @@
# explicitly, which overrides the default behavior. Any other clock domains could also be
# independently created in addition to the main "sync" domain.
from nmigen import *
from nmigen_boards.ice40_hx1k_blink_evn import *
from amaranth import *
from amaranth_boards.ice40_hx1k_blink_evn import *
class BlinkyWithDomain(Elaboratable):