-from nmigen import *
+from nmigen import Elaboratable, Module, Signal, Array, Record
from nmigen.lib.coding import PriorityEncoder
-from ...csr import *
-from ...isa import *
+from ...csr import AutoCSR, CSR
+from ...isa import dcsr_layout, flat_layout
from ...wishbone import wishbone_layout
from .dmi import DebugReg, Command, Error, Version, cmd_access_reg_layout
-from nmigen.hdl.rec import *
+from nmigen.hdl.rec import DIR_FANIN, DIR_FANOUT
__all__ = ["jtag_layout", "JTAGReg", "dtmcs_layout", "dmi_layout"]
-from nmigen import *
-from nmigen.hdl.rec import *
+from nmigen import Elaboratable, Module, Record, Const
-from .dmi import *
+from .dmi import (DebugReg, DmiOp, RegMode,
+ abstractcs_layout, cmd_access_reg_layout, command_layout,
+ dmcontrol_layout, dmstatus_layout, flat_layout, sbcs_layout)
__all__ = ["DebugRegisterFile"]
-from nmigen import *
-from nmigen.hdl.rec import *
+from nmigen import Elaboratable, Module, Signal, Record
-from ...csr import *
-from ...isa import *
+from ...csr import AutoCSR, CSR
from ...wishbone import wishbone_layout
-from .controller import *
-from .dmi import *
-from .jtag import *
-from .regfile import *
-from .wbmaster import *
+from .controller import DebugController
+from .jtag import JTAGReg, dtmcs_layout, dmi_layout, jtag_layout
+from .regfile import DebugRegisterFile
+from .wbmaster import wishbone_layout, DebugWishboneMaster
+from jtagtap import JTAGTap
__all__ = ["DebugUnit"]
def elaborate(self, platform):
m = Module()
- from jtagtap import JTAGTap
tap = m.submodules.tap = JTAGTap(jtag_regs)
regfile = m.submodules.regfile = DebugRegisterFile(tap.regs[JTAGReg.DMI])
controller = m.submodules.controller = DebugController(regfile)
from functools import reduce
from operator import or_
-from nmigen import *
-from nmigen.hdl.rec import *
+from nmigen import Elaboratable, Module, Signal, Record
from ...wishbone import wishbone_layout
-from .dmi import *
+from .dmi import DebugReg
__all__ = ["BusError", "AccessSize", "DebugWishboneMaster"]