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:
HwModuleSample 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
- __annotations__ = {}¶
- class hwtLib.examples.hObjLists.listOfHwIOs0.ListOfHwIOsSample0ConcatOnly(hdlName: str | None = None)[source]¶
Bases:
HwModuleSame thing as
ListOfHwIOsSample0SliceOnlybut 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
- __annotations__ = {}¶
- class hwtLib.examples.hObjLists.listOfHwIOs0.ListOfHwIOsSample0SliceOnly(hdlName: str | None = None)[source]¶
Bases:
HwModuleSample 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
- __annotations__ = {}¶
hwtLib.examples.hObjLists.listOfHwIOs1 module¶
- class hwtLib.examples.hObjLists.listOfHwIOs1.ListOfHwIOsSample1(hdlName: str | None = None)[source]¶
Bases:
HwModuleExample 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:
- __annotations__ = {}¶
- class hwtLib.examples.hObjLists.listOfHwIOs1.ListOfHwIOsSample1TC(methodName='runTest')[source]¶
Bases:
SimTestCase- __annotations__ = {}¶
- _classSetupFailed = False¶
- _class_cleanups = []¶
- 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
- __annotations__ = {}¶
hwtLib.examples.hObjLists.listOfHwIOs2 module¶
- class hwtLib.examples.hObjLists.listOfHwIOs2.ListOfHwIOsSample2(hdlName: str | None = None)[source]¶
Bases:
HwModuleExample 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:
- __annotations__ = {}¶
- class hwtLib.examples.hObjLists.listOfHwIOs2.ListOfHwIOsSample2TC(methodName='runTest')[source]¶
Bases:
SimTestCase- __annotations__ = {}¶
- _classSetupFailed = False¶
- _class_cleanups = []¶
- 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:
c - of type hwtLib.amba.axi4s.Axi4Stream - SLAVE
d - of type hwtLib.amba.axi4s.Axi4Stream - MASTER
- __annotations__ = {}¶
hwtLib.examples.hObjLists.listOfHwIOs3 module¶
- class hwtLib.examples.hObjLists.listOfHwIOs3.ListOfHwIOsSample3(hdlName: str | None = None)[source]¶
Bases:
HwModuleSample 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
- __annotations__ = {}¶
- class hwtLib.examples.hObjLists.listOfHwIOs3.ListOfHwIOsSample3TC(methodName='runTest')[source]¶
Bases:
SimTestCase- __annotations__ = {}¶
- _classSetupFailed = False¶
- _class_cleanups = []¶
- class hwtLib.examples.hObjLists.listOfHwIOs3.ListOfHwIOsSample3b(hdlName: str | None = None)[source]¶
Bases:
ListOfHwIOsSample3Sample 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
- __annotations__ = {}¶
hwtLib.examples.hObjLists.listOfHwIOs4 module¶
- class hwtLib.examples.hObjLists.listOfHwIOs4.ListOfHwIOsSample4(hdlName: str | None = None)[source]¶
Bases:
HwModuleExample 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
- __annotations__ = {}¶
- class hwtLib.examples.hObjLists.listOfHwIOs4.ListOfHwIOsSample4TC(methodName='runTest')[source]¶
Bases:
SimTestCase- __annotations__ = {}¶
- _classSetupFailed = False¶
- _class_cleanups = []¶
- 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
- __annotations__ = {}¶
- 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
- __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
- __annotations__ = {}¶