hwtLib.samples.mem package

Submodules

hwtLib.samples.mem.ram module

class hwtLib.samples.mem.ram.SimpleAsyncRam[source]

Bases: hwt.synthesizer.unit.Unit

Note that there is no such a thing in hw yet…

_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
class hwtLib.samples.mem.ram.SimpleSyncRam[source]

Bases: hwtLib.samples.mem.ram.SimpleAsyncRam

_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

hwtLib.samples.mem.reg module

note:everything in hwtLib.samples is just example and it is usually more elegant way to do this
class hwtLib.samples.mem.reg.AsyncResetReg[source]

Bases: hwtLib.samples.mem.reg.DReg

_impl()[source]

implementations

  • implement functionality of design there
  • called after _declr
class hwtLib.samples.mem.reg.DDR_Reg[source]

Bases: hwt.synthesizer.unit.Unit

_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
class hwtLib.samples.mem.reg.DReg[source]

Bases: hwt.synthesizer.unit.Unit

Basic d flip flop

Attention:using this unit is pointless because HWToolkit can automatically generate such a register for any interface and datatype
_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
class hwtLib.samples.mem.reg.DReg_asyncRst[source]

Bases: hwt.synthesizer.unit.Unit

_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
class hwtLib.samples.mem.reg.DoubleDReg[source]

Bases: hwt.synthesizer.unit.Unit

Attention:using DReg unit instance is pointless because it can be instantiated by _reg in this unit
_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
class hwtLib.samples.mem.reg.Latch[source]

Bases: hwt.synthesizer.unit.Unit

Example showing how to implement latch in hwt

_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
class hwtLib.samples.mem.reg.OptimizedOutReg[source]

Bases: hwtLib.samples.mem.reg.DReg

_impl()[source]

implementations

  • implement functionality of design there
  • called after _declr

hwtLib.samples.mem.rom module

class hwtLib.samples.mem.rom.SimpleRom[source]

Bases: hwt.synthesizer.unit.Unit

_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
class hwtLib.samples.mem.rom.SimpleSyncRom[source]

Bases: hwtLib.samples.mem.rom.SimpleRom

_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