hwtLib.examples.hObjLists package

Example of usage of HObjList for HwIO instances.

Submodules

hwtLib.examples.hObjLists.listOfHwIOs0 module

class hwtLib.examples.hObjLists.listOfHwIOs0.ListOfHwIOsSample0(hdlName: str | None = None)[source]

Bases: HwModule

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

HDL params:
  • DATA_WIDTH - default value 8 of type int

HDL IO:
  • clk - of type hwt.hwIOs.std.HwIOClk with dtype=<HBits, 1bit> - SLAVE

  • rst_n - of type hwt.hwIOs.std.HwIORst_n with dtype=<HBits, 1bit, n> - SLAVE

  • a - of type hwt.hwIOs.hwIOArray.HwIOArray - SLAVE

  • b - of type hwt.hwIOs.hwIOArray.HwIOArray - MASTER

schematic
__annotations__ = {}
class hwtLib.examples.hObjLists.listOfHwIOs0.ListOfHwIOsSample0ConcatOnly(hdlName: str | None = None)[source]

Bases: HwModule

Same thing as ListOfHwIOsSample0SliceOnly but direction of interfaces is opposite

HDL params:
  • DATA_WIDTH - default value 8 of type int

HDL IO:
  • clk - of type hwt.hwIOs.std.HwIOClk with dtype=<HBits, 1bit> - SLAVE

  • rst_n - of type hwt.hwIOs.std.HwIORst_n with dtype=<HBits, 1bit, n> - SLAVE

  • a0 - of type hwt.hwIOs.std.HwIODataVld - SLAVE

  • a1 - of type hwt.hwIOs.std.HwIODataVld - SLAVE

  • a2 - of type hwt.hwIOs.std.HwIODataVld - SLAVE

  • b - of type hwt.hwIOs.hwIOArray.HwIOArray - MASTER

schematic
__annotations__ = {}
class hwtLib.examples.hObjLists.listOfHwIOs0.ListOfHwIOsSample0SliceOnly(hdlName: str | None = None)[source]

Bases: HwModule

Sample unit with HwIOArray 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:
  • clk - of type hwt.hwIOs.std.HwIOClk with dtype=<HBits, 1bit> - SLAVE

  • rst_n - of type hwt.hwIOs.std.HwIORst_n with dtype=<HBits, 1bit, n> - SLAVE

  • a - of type hwt.hwIOs.hwIOArray.HwIOArray - SLAVE

  • b0 - of type hwt.hwIOs.std.HwIODataVld - MASTER

  • b1 - of type hwt.hwIOs.std.HwIODataVld - MASTER

  • b2 - of type hwt.hwIOs.std.HwIODataVld - MASTER

schematic
__annotations__ = {}
class hwtLib.examples.hObjLists.listOfHwIOs0.ListOfHwIOsSample0TC(methodName='runTest')[source]

Bases: SimTestCase

__annotations__ = {}
_classSetupFailed = False
_class_cleanups = []
tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_ListOfHwIOsSample0ConcatOnly_simplePass()[source]
test_ListOfHwIOsSample0SliceOnly_simplePass()[source]
test_ListOfHwIOsSample0_simplePass()[source]

hwtLib.examples.hObjLists.listOfHwIOs1 module

class hwtLib.examples.hObjLists.listOfHwIOs1.ListOfHwIOsSample1(hdlName: str | None = None)[source]

Bases: HwModule

Example unit which contains two submodules (m0 and m1) and two HwIOArray of interfacess (a and b) first items of this interfaces are connected to m0 second to m1

HDL params:
  • DATA_WIDTH - default value 8 of type int

HDL IO:
  • clk - of type hwt.hwIOs.std.HwIOClk with dtype=<HBits, 1bit> - SLAVE

  • rst_n - of type hwt.hwIOs.std.HwIORst_n with dtype=<HBits, 1bit, n> - SLAVE

  • a - of type hwt.hwIOs.hwIOArray.HwIOArray - SLAVE

  • b - of type hwt.hwIOs.hwIOArray.HwIOArray - MASTER

HDL components:
schematic
__annotations__ = {}
class hwtLib.examples.hObjLists.listOfHwIOs1.ListOfHwIOsSample1TC(methodName='runTest')[source]

Bases: SimTestCase

__annotations__ = {}
_classSetupFailed = False
_class_cleanups = []
classmethod setUpClass()[source]

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

test_simplePass()[source]
class hwtLib.examples.hObjLists.listOfHwIOs1.SimpleSubHwModule1(hdlName: str | None = None)[source]

Bases: HwModule

HDL params:
  • DATA_WIDTH - default value 8 of type int

HDL IO:
  • c - of type hwt.hwIOs.std.HwIODataVld - SLAVE

  • d - of type hwt.hwIOs.std.HwIODataVld - MASTER

schematic
__annotations__ = {}

hwtLib.examples.hObjLists.listOfHwIOs2 module

class hwtLib.examples.hObjLists.listOfHwIOs2.ListOfHwIOsSample2(hdlName: str | None = None)[source]

Bases: HwModule

Example unit which contains two subunits (m0 and m1) and two HwIOArray of HwIO (a and b) first items of this interfaces are connected to m0 second to m1

HDL params:
  • DATA_WIDTH - default value 8 of type int

  • USE_STRB - default value True of type bool

HDL IO:
  • clk - of type hwt.hwIOs.std.HwIOClk with dtype=<HBits, 1bit> - SLAVE

  • rst_n - of type hwt.hwIOs.std.HwIORst_n with dtype=<HBits, 1bit, n> - SLAVE

  • a - of type hwt.hwIOs.hwIOArray.HwIOArray - SLAVE

  • b - of type hwt.hwIOs.hwIOArray.HwIOArray - MASTER

HDL components:
schematic
__annotations__ = {}
class hwtLib.examples.hObjLists.listOfHwIOs2.ListOfHwIOsSample2TC(methodName='runTest')[source]

Bases: SimTestCase

__annotations__ = {}
_classSetupFailed = False
_class_cleanups = []
classmethod setUpClass()[source]

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

test_simplePass()[source]
class hwtLib.examples.hObjLists.listOfHwIOs2.SimpleSubHwModule1(hdlName: str | None = None)[source]

Bases: HwModule

HDL params:
  • DATA_WIDTH - default value 8 of type int

  • USE_STRB - default value True of type bool

HDL IO:
schematic
__annotations__ = {}

hwtLib.examples.hObjLists.listOfHwIOs3 module

class hwtLib.examples.hObjLists.listOfHwIOs3.ListOfHwIOsSample3(hdlName: str | None = None)[source]

Bases: HwModule

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

HDL params:
  • ADDR_WIDTH - default value 32 of type int

  • DATA_WIDTH - default value 64 of type int

HDL IO:
  • clk - of type hwt.hwIOs.std.HwIOClk with dtype=<HBits, 1bit> - SLAVE

  • rst_n - of type hwt.hwIOs.std.HwIORst_n with dtype=<HBits, 1bit, n> - SLAVE

  • a - of type hwt.hwIOs.hwIOArray.HwIOArray - SLAVE

  • b - of type hwt.hwIOs.hwIOArray.HwIOArray - MASTER

schematic
__annotations__ = {}
class hwtLib.examples.hObjLists.listOfHwIOs3.ListOfHwIOsSample3TC(methodName='runTest')[source]

Bases: SimTestCase

__annotations__ = {}
_classSetupFailed = False
_class_cleanups = []
_test(dut: HwModule)[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.hObjLists.listOfHwIOs3.ListOfHwIOsSample3b(hdlName: str | None = None)[source]

Bases: ListOfHwIOsSample3

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

HDL params:
  • ADDR_WIDTH - default value 32 of type int

  • DATA_WIDTH - default value 64 of type int

HDL IO:
  • clk - of type hwt.hwIOs.std.HwIOClk with dtype=<HBits, 1bit> - SLAVE

  • rst_n - of type hwt.hwIOs.std.HwIORst_n with dtype=<HBits, 1bit, n> - SLAVE

  • a - of type hwt.hwIOs.hwIOArray.HwIOArray - SLAVE

  • b - of type hwt.hwIOs.hwIOArray.HwIOArray - MASTER

schematic
__annotations__ = {}

hwtLib.examples.hObjLists.listOfHwIOs4 module

class hwtLib.examples.hObjLists.listOfHwIOs4.ListOfHwIOsSample4(hdlName: str | None = None)[source]

Bases: HwModule

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

HDL IO:
  • clk - of type hwt.hwIOs.std.HwIOClk with dtype=<HBits, 1bit> - SLAVE

  • rst_n - of type hwt.hwIOs.std.HwIORst_n with dtype=<HBits, 1bit, n> - SLAVE

  • a - of type hwt.hwIOs.hwIOArray.HwIOArray - SLAVE

  • b - of type hwt.hwIOs.hwIOArray.HwIOArray - MASTER

schematic
__annotations__ = {}
_mkFieldInterface(structHwIO: HStruct, field: HStructField)[source]
static shouldEnterFn(field_path: TypePath)[source]
class hwtLib.examples.hObjLists.listOfHwIOs4.ListOfHwIOsSample4TC(methodName='runTest')[source]

Bases: SimTestCase

__annotations__ = {}
_classSetupFailed = False
_class_cleanups = []
_test(dut: HwModule)[source]
tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_ListOfHwIOsSample4b()[source]
test_ListOfHwIOsSample4b_HwIOIterations()[source]
test_ListOfHwIOsSample4c()[source]
test_ListOfHwIOsSample4d()[source]
class hwtLib.examples.hObjLists.listOfHwIOs4.ListOfHwIOsSample4b(hdlName: str | None = None)[source]

Bases: ListOfHwIOsSample4

HDL IO:
  • clk - of type hwt.hwIOs.std.HwIOClk with dtype=<HBits, 1bit> - SLAVE

  • rst_n - of type hwt.hwIOs.std.HwIORst_n with dtype=<HBits, 1bit, n> - SLAVE

  • a - of type hwt.hwIOs.hwIOArray.HwIOArray - SLAVE

  • b - of type hwt.hwIOs.hwIOArray.HwIOArray - MASTER

schematic
__annotations__ = {}
static shouldEnterFn(field_path)[source]
class hwtLib.examples.hObjLists.listOfHwIOs4.ListOfHwIOsSample4c(hdlName: str | None = None)[source]

Bases: ListOfHwIOsSample4b

HDL IO:
  • clk - of type hwt.hwIOs.std.HwIOClk with dtype=<HBits, 1bit> - SLAVE

  • rst_n - of type hwt.hwIOs.std.HwIORst_n with dtype=<HBits, 1bit, n> - SLAVE

  • a - of type hwt.hwIOs.hwIOArray.HwIOArray - SLAVE

  • b - of type hwt.hwIOs.hwIOArray.HwIOArray - MASTER

schematic
__annotations__ = {}
class hwtLib.examples.hObjLists.listOfHwIOs4.ListOfHwIOsSample4d(hdlName: str | None = None)[source]

Bases: ListOfHwIOsSample4b

HDL IO:
  • clk - of type hwt.hwIOs.std.HwIOClk with dtype=<HBits, 1bit> - SLAVE

  • rst_n - of type hwt.hwIOs.std.HwIORst_n with dtype=<HBits, 1bit, n> - SLAVE

  • a - of type hwt.hwIOs.hwIOArray.HwIOArray - SLAVE

  • b - of type hwt.hwIOs.hwIOArray.HwIOArray - MASTER

schematic
__annotations__ = {}