hwtLib.examples.hdlObjLists package

Example of usage of HObjList for Interface instances.

Submodules

hwtLib.examples.hdlObjLists.listOfInterfaces0 module

class hwtLib.examples.hdlObjLists.listOfInterfaces0.ListOfInterfacesSample0(hdl_name_override: Optional[str] = None)[source]

Bases: Unit

Sample unit with HObjList of interfaces (a and b) which is not using items of these HObjList of interfacess and connects list directly to another list

HDL params
  • DATA_WIDTH - default value 8 of type int

HDL IO
schematic
class hwtLib.examples.hdlObjLists.listOfInterfaces0.ListOfInterfacesSample0ConcatOnly(hdl_name_override: Optional[str] = None)[source]

Bases: Unit

Same thing as ListOfInterfacesSample0SliceOnly but direction of interfaces is oposite

HDL params
  • DATA_WIDTH - default value 8 of type int

HDL IO
schematic
class hwtLib.examples.hdlObjLists.listOfInterfaces0.ListOfInterfacesSample0SliceOnly(hdl_name_override: Optional[str] = None)[source]

Bases: Unit

Sample unit with HObjList of interfaces a and three of output interfaces b each interface is connected manually

HDL params
  • DATA_WIDTH - default value 8 of type int

HDL IO
schematic
class hwtLib.examples.hdlObjLists.listOfInterfaces0.ListOfInterfacesSample0TC(methodName='runTest')[source]

Bases: SimTestCase

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_ListOfInterfacesSample0ConcatOnly_simplePass()[source]
test_ListOfInterfacesSample0SliceOnly_simplePass()[source]
test_ListOfInterfacesSample0_simplePass()[source]

hwtLib.examples.hdlObjLists.listOfInterfaces1 module

class hwtLib.examples.hdlObjLists.listOfInterfaces1.ListOfInterfacesSample1(hdl_name_override: Optional[str] = None)[source]

Bases: Unit

Example unit which contains two subuints (u0 and u1) and two HObjList of interfacess (a and b) first items of this interfaces are connected to u0 second to u1

HDL params
  • DATA_WIDTH - default value 8 of type int

HDL IO
HDL components
schematic
class hwtLib.examples.hdlObjLists.listOfInterfaces1.ListOfInterfacesSample1TC(methodName='runTest')[source]

Bases: SimTestCase

classmethod setUpClass()[source]

Hook method for setting up class fixture before running tests in the class.

test_simplePass()[source]
class hwtLib.examples.hdlObjLists.listOfInterfaces1.SimpleSubunit(hdl_name_override: Optional[str] = None)[source]

Bases: Unit

HDL params
  • DATA_WIDTH - default value 8 of type int

HDL IO
schematic

hwtLib.examples.hdlObjLists.listOfInterfaces2 module

class hwtLib.examples.hdlObjLists.listOfInterfaces2.ListOfInterfacesSample2(hdl_name_override: Optional[str] = None)[source]

Bases: Unit

Example unit which contains two subunits (u0 and u1) and two HObjList of interfacess (a and b) first items of this interfaces are connected to u0 second to u1

HDL params
  • DATA_WIDTH - default value 8 of type int

  • USE_STRB - default value True of type bool

HDL IO
HDL components
schematic
class hwtLib.examples.hdlObjLists.listOfInterfaces2.ListOfInterfacesSample2TC(methodName='runTest')[source]

Bases: SimTestCase

classmethod setUpClass()[source]

Hook method for setting up class fixture before running tests in the class.

test_simplePass()[source]
class hwtLib.examples.hdlObjLists.listOfInterfaces2.SimpleSubunit(hdl_name_override: Optional[str] = None)[source]

Bases: Unit

HDL params
  • DATA_WIDTH - default value 8 of type int

  • USE_STRB - default value True of type bool

HDL IO
schematic

hwtLib.examples.hdlObjLists.listOfInterfaces3 module

class hwtLib.examples.hdlObjLists.listOfInterfaces3.ListOfInterfacesSample3(hdl_name_override: Optional[str] = None)[source]

Bases: Unit

Sample unit with HObjList of interfaces (a and b) which is not using items of these HObjList of interfacess

HDL params
  • ADDR_WIDTH - default value 32 of type int

  • DATA_WIDTH - default value 64 of type int

HDL IO
schematic
class hwtLib.examples.hdlObjLists.listOfInterfaces3.ListOfInterfacesSample3TC(methodName='runTest')[source]

Bases: SimTestCase

_test(u)[source]
tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_resources()[source]
test_resources_b()[source]
test_simplePass()[source]
test_simplePass_b()[source]
class hwtLib.examples.hdlObjLists.listOfInterfaces3.ListOfInterfacesSample3b(hdl_name_override: Optional[str] = None)[source]

Bases: ListOfInterfacesSample3

Sample unit with HObjList of interfaces (a and b) which is not using items of these HObjList of interfacess

HDL params
  • ADDR_WIDTH - default value 32 of type int

  • DATA_WIDTH - default value 64 of type int

HDL IO
schematic

hwtLib.examples.hdlObjLists.listOfInterfaces4 module

class hwtLib.examples.hdlObjLists.listOfInterfaces4.ListOfInterfacesSample4(hdl_name_override: Optional[str] = None)[source]

Bases: Unit

Example with HObjList of interfaces where interfaces are instances of StructIntf which is interface dynamically generated from c-like structure description

HDL IO
schematic
_mkFieldInterface(structIntf: HStruct, field: HStructField)[source]
static shouldEnterFn(field_path: TypePath)[source]
class hwtLib.examples.hdlObjLists.listOfInterfaces4.ListOfInterfacesSample4TC(methodName='runTest')[source]

Bases: SimTestCase

_test(u)[source]
tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_ListOfInterfacesSample4b()[source]
test_ListOfInterfacesSample4b_intfIterations()[source]
test_ListOfInterfacesSample4c()[source]
test_ListOfInterfacesSample4d()[source]
class hwtLib.examples.hdlObjLists.listOfInterfaces4.ListOfInterfacesSample4b(hdl_name_override: Optional[str] = None)[source]

Bases: ListOfInterfacesSample4

HDL IO
schematic
static shouldEnterFn(field_path)[source]
class hwtLib.examples.hdlObjLists.listOfInterfaces4.ListOfInterfacesSample4c(hdl_name_override: Optional[str] = None)[source]

Bases: ListOfInterfacesSample4b

HDL IO
schematic
class hwtLib.examples.hdlObjLists.listOfInterfaces4.ListOfInterfacesSample4d(hdl_name_override: Optional[str] = None)[source]

Bases: ListOfInterfacesSample4b

HDL IO
schematic