hwtLib.spi.intf.
QSPI
(masterDir=<DIRECTION.OUT: 1>, asArraySize=None, loadConfig=True)[source]¶Bases: hwtLib.spi.intf.SpiTristate
SPI interface with 4 tristate data wires
hwtLib.spi.intf.
Spi
(masterDir=<DIRECTION.OUT: 1>, asArraySize=None, loadConfig=True)[source]¶Bases: hwt.synthesizer.interface.Interface
Bare SPI interface (Serial peripheral interface)
_config
()[source]¶Configure object parameters
hwtLib.spi.intf.
SpiAgent
(intf, allowNoReset=False)[source]¶Bases: hwt.simulator.agentBase.SyncAgentBase
Simulation agent for SPI interface
Variables: |
|
---|
chipSelects, rxData and txData are lists of integers
BITS_IN_WORD
= 8¶__init__
(intf, allowNoReset=False)[source]¶Initialize self. See help(type(self)) for accurate signature.
hwtLib.spi.intf.
SpiTristate
(masterDir=<DIRECTION.OUT: 1>, asArraySize=None, loadConfig=True)[source]¶Bases: hwtLib.spi.intf.Spi
SPI interface where mosi and miso signal are merged into one tristate wire
hwtLib.spi.master.
SpiCntrlData
(masterDir=<DIRECTION.OUT: 1>, asArraySize=None, loadConfig=True)[source]¶Bases: hwtLib.handshaked.intfBiDirectional.HandshakedBiDirectional
HandshakedBiDirectional interface with last and slave signal added. If last=1 slave will be deselected and initial slave select wait will be. Slave selects the slave where data should be read from and written to.
hwtLib.spi.master.
SpiCntrlDataAgent
(intf)[source]¶Bases: hwtLib.handshaked.intfBiDirectional.HandshakedBiDirectionalAgent
hwtLib.spi.master.
SpiMaster
[source]¶Bases: hwt.synthesizer.unit.Unit
Master for SPI interface
Variables: |
|
---|---|
Attention: | this implementation expects that slaves are reading data on rising edge of SPI clk and data from slaves are ready on risign edge as well and SPI clk is kept high in idle (most of them does but there are some exceptions) |
_config
()[source]¶Configure object parameters
_declr
()[source]¶declarations