naps.data_structure package

Submodules

naps.data_structure.bundle module

class naps.data_structure.bundle.Bundle(name=None, src_loc_at=1)

Bases: object

connect_downstream(downstream, allow_partial=False, only=None, exclude=None)
connect_upstream(upstream, allow_partial=False, only=None, exclude=None)
property signals
class naps.data_structure.bundle.Direction(value)

Bases: enum.Enum

An enumeration.

DOWNWARDS = 0
T

alias of TypeVar(‘T’)

UPWARDS = 1

naps.data_structure.packed_struct module

naps.data_structure.packed_struct.packed_struct(cls)

A decorator that turns a class into a packed struct (similiar to dataclass)

naps.data_structure.packed_struct_test module

class naps.data_structure.packed_struct_test.DummyStruct(*args, **kwargs)

Bases: naps.data_structure.packed_struct.PackedStructBaseClass

a: unsigned(1)
b: unsigned(1)
c: unsigned(2)
class naps.data_structure.packed_struct_test.PackedStructTest(methodName='runTest')

Bases: unittest.case.TestCase

test_non_nmigen()

Module contents