hwtLib.amba.axiLite_comp package

Submodules

hwtLib.amba.axiLite_comp.endpoint module

class hwtLib.amba.axiLite_comp.endpoint.AxiLiteEndpoint(structTemplate, intfCls=<class 'hwtLib.amba.axi4Lite.Axi4Lite'>, shouldEnterFn=None)[source]

Bases: hwtLib.abstract.busEndpoint.BusEndpoint

Delegate request from AxiLite interface to fields of structure write has higher priority

__init__(structTemplate, intfCls=<class 'hwtLib.amba.axi4Lite.Axi4Lite'>, shouldEnterFn=None)[source]
Parameters:
  • structTemplate – instance of HStruct which describes address space of this endpoint
  • intfCls – class of bus interface which should be used
  • shouldEnterFn – function(structField) return (shouldEnter, shouldUse) where shouldEnter is flag that means iterator over this interface should look inside of this actual object and shouldUse flag means that this field should be used (to create interface)
_getAddrStep()
Returns:how many bits is one unit of address (f.e. 8 bits for char * pointer, 36 for 36 bit bram)
_getWordAddrStep()
Returns:size of one word in unit of address
_impl()[source]

implementations

  • implement functionality of design there
  • called after _declr
readPart(awAddr, w_hs)[source]
writePart()[source]
writeRespPart(wAddr, respVld)[source]

hwtLib.amba.axiLite_comp.reg module

class hwtLib.amba.axiLite_comp.reg.AxiLiteReg(axiCls=<class 'hwtLib.amba.axi4Lite.Axi4Lite'>)[source]

Bases: hwt.synthesizer.unit.Unit

Register for AXI3/4/lite interface

__init__(axiCls=<class 'hwtLib.amba.axi4Lite.Axi4Lite'>)[source]

Initialize self. See help(type(self)) for accurate signature.

_config()[source]

Configure object parameters

  • setup all parameters on this object, use Param class instances to allow use of parameter inheritance
  • called in __init__ of class
_declr()[source]

declarations

  • do all declarations of externally accessible objects there (Interfaces)
  • _declr method is called after _config
  • if this object is Unit all interfaces are threaten as externally accessible interfaces if this object is Interface all subinterfaces are loaded
_impl()[source]

implementations

  • implement functionality of design there
  • called after _declr

Module contents