meta: expose Amaranth API via __all__

This commit is contained in:
Fischer Moseley 2024-08-03 13:18:58 -07:00
parent 0d15abe4d1
commit 3ba93efd2f
12 changed files with 23 additions and 26 deletions

View File

@ -1,8 +1,6 @@
from amaranth import *
from amaranth.lib import io
from manta import *
from manta.io_core import IOCore
from manta.uart import UARTInterface
from time import sleep

View File

@ -1,8 +1,6 @@
from amaranth import *
from amaranth.lib import io
from manta import *
from manta.logic_analyzer import LogicAnalyzerCore, TriggerModes
from manta.uart import UARTInterface
from time import sleep

View File

@ -1,8 +1,6 @@
from amaranth import *
from amaranth.lib import io
from manta import *
from manta.memory_core import MemoryCore
from manta.uart import UARTInterface
class UARTMemoryCoreExample(Elaboratable):

View File

@ -1,5 +1,20 @@
from manta.manta import Manta
from manta.uart import UARTInterface
from manta.ethernet import EthernetInterface
from manta.logic_analyzer import LogicAnalyzerCore, TriggerModes
from manta.io_core import IOCore
from manta.memory_core import MemoryCore
from manta.cli import main
__all__ = [
"Manta",
"UARTInterface",
"EthernetInterface",
"LogicAnalyzerCore",
"TriggerModes",
"IOCore",
"MemoryCore",
]
if __name__ == "__main__":
main()

View File

@ -1,4 +1,4 @@
from amaranth import *
from amaranth import Elaboratable
from amaranth.lib import data
from amaranth.sim import Simulator
from abc import ABC, abstractmethod

View File

@ -1,10 +1,5 @@
from manta import Manta
from manta.io_core import IOCore
from manta.memory_core import MemoryCore
from manta.logic_analyzer import LogicAnalyzerCore
from manta.uart import UARTInterface
from manta.ethernet import EthernetInterface
from amaranth import *
from manta import *
import tempfile
import os
import yaml

View File

@ -1,9 +1,8 @@
from manta import Manta
from amaranth import *
from amaranth.lib import io
from amaranth_boards.nexys4ddr import Nexys4DDRPlatform
from amaranth_boards.icestick import ICEStickPlatform
from manta.io_core import IOCore
from manta.uart import UARTInterface
from manta import *
from manta.utils import *
import pytest
from random import getrandbits

View File

@ -1,5 +1,5 @@
from amaranth import *
from manta.io_core import IOCore
from manta import *
from manta.utils import *
from random import getrandbits

View File

@ -2,9 +2,7 @@ from amaranth import *
from amaranth.lib import io
from amaranth_boards.nexys4ddr import Nexys4DDRPlatform
from amaranth_boards.icestick import ICEStickPlatform
from manta import Manta
from manta.logic_analyzer import LogicAnalyzerCore
from manta.uart import UARTInterface
from manta import *
from manta.utils import *
import pytest
import os

View File

@ -1,4 +1,4 @@
from amaranth.sim import Simulator
from amaranth import *
from manta.logic_analyzer import LogicAnalyzerCore
from manta.logic_analyzer.trigger_block import Operations
from manta.utils import *

View File

@ -2,10 +2,7 @@ from amaranth import *
from amaranth.lib import io
from amaranth_boards.nexys4ddr import Nexys4DDRPlatform
from amaranth_boards.icestick import ICEStickPlatform
from manta import Manta
from manta.memory_core import MemoryCore
from manta.io_core import IOCore
from manta.uart import UARTInterface
from manta import *
from manta.utils import *
import pytest
from random import getrandbits

View File

@ -1,4 +1,3 @@
from amaranth.sim import Simulator
from manta.ethernet import UDPSourceBridge
from manta.utils import *