hwtLib.peripheral.uart package¶
Submodules¶
hwtLib.peripheral.uart.intf module¶
- class hwtLib.peripheral.uart.intf.IP_Uart[source]¶
Bases:
IntfIpMeta- __annotations__ = {}¶
- library¶
- name¶
- vendor¶
- version¶
- class hwtLib.peripheral.uart.intf.Uart(masterDir=DIRECTION.OUT, hdlName: str | dict[str, str] | None = None, loadConfig=True)[source]¶
Bases:
HwIOBase UART interface, also known as Serial or COM.
- HDL IO:
rx - of type hwt.hwIOs.std.HwIOSignal with dtype=<HBits, 1bit> - UNKNOWN (Master=IN)
tx - of type hwt.hwIOs.std.HwIOSignal with dtype=<HBits, 1bit> - UNKNOWN
- __annotations__ = {}¶
hwtLib.peripheral.uart.rx module¶
- class hwtLib.peripheral.uart.rx.UartRx(hdlName: str | None = None)[source]¶
Bases:
HwModuleUART Rx channel controller
- HDL params:
CLK_FREQ - default value 100000000 of type int
BAUD - default value 115200 of type int
OVERSAMPLING - default value 16 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
dataOut - of type hwt.hwIOs.std.HwIODataVld - MASTER
rxd - of type hwt.hwIOs.std.HwIOSignal with dtype=<HBits, 1bit> - SLAVE
- __annotations__ = {}¶
hwtLib.peripheral.uart.tx module¶
- class hwtLib.peripheral.uart.tx.UartTx(hdlName: str | None = None)[source]¶
Bases:
HwModuleUART Tx channel controller
- HDL params:
CLK_FREQ - default value 100000000 of type int
BAUD - default value 115200 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
dataIn - of type hwt.hwIOs.std.HwIODataRdVld - SLAVE
txd - of type hwt.hwIOs.std.HwIOSignal with dtype=<HBits, 1bit> - MASTER
- __annotations__ = {}¶