naps.soc.pydriver package

Submodules

naps.soc.pydriver.driver_items module

class naps.soc.pydriver.driver_items.DriverData(data)

Bases: naps.soc.pydriver.driver_items.DriverItem

naps.soc.pydriver.driver_items.driver_init(function)
naps.soc.pydriver.driver_items.driver_method(function)
naps.soc.pydriver.driver_items.driver_property(function)

naps.soc.pydriver.generate module

naps.soc.pydriver.generate.gen_hardware_proxy_python_code(mmap: naps.soc.memorymap.MemoryMap, name='design', superclass='', top=True)str
naps.soc.pydriver.generate.generate_pydriver(top_memorymap, memory_accessor)
naps.soc.pydriver.generate.pydriver_hook(platform: nmigen.build.plat.Platform, top_fragment, sames: naps.soc.tracing_elaborate.ElaboratableSames)

naps.soc.pydriver.hardware_proxy module

class naps.soc.pydriver.hardware_proxy.BitwiseAccessibleInteger(value=0)

Bases: object

class naps.soc.pydriver.hardware_proxy.Blob(address: int, bit_start: int, bit_len: int)

Bases: object

Represents bigger address chunks that are not useful to express as BitwiseAccessibleInteger

address: int
bit_len: int
bit_start: int
class naps.soc.pydriver.hardware_proxy.HardwareProxy(memory_accessor: naps.soc.pydriver.hardware_proxy.MemoryAccessor)

Bases: object

class naps.soc.pydriver.hardware_proxy.MemoryAccessor

Bases: abc.ABC

base = 0
abstract read(addr)
abstract write(addr, value)
class naps.soc.pydriver.hardware_proxy.Value(address: int, bit_start: int, bit_len: int, decoder: dict, writable: bool, readable: bool, bit_mask: Optional[int] = None, word_aligned_inverse_bit_mask: Optional[int] = None)

Bases: object

Represents a Value that is automatically converted to / from an Integer

address: int
bit_len: int
bit_mask: int = None
bit_start: int
decoder: dict
readable: bool
word_aligned_inverse_bit_mask: int = None
writable: bool

naps.soc.pydriver.hardware_proxy_test module

class naps.soc.pydriver.hardware_proxy_test.BitwiseAccessibleIntegerTest(methodName='runTest')

Bases: unittest.case.TestCase

test_construct()
test_destruct()

naps.soc.pydriver.interactive module

Module contents