hwt.serializer.resourceAnalyzer package

Resource analyzer has serializer API, but it’s output is resource report.

Submodules

hwt.serializer.resourceAnalyzer.analyzer module

hwt.serializer.resourceAnalyzer.resourceTypes module

exception hwt.serializer.resourceAnalyzer.resourceTypes.ResourceError[source]

Bases: Exception

An error which means that the resource of this kind does not exists in current hardware.

class hwt.serializer.resourceAnalyzer.resourceTypes.ResourceFF[source]

Bases: RtlResourceType

class hwt.serializer.resourceAnalyzer.resourceTypes.ResourceLatch[source]

Bases: RtlResourceType

class hwt.serializer.resourceAnalyzer.resourceTypes.ResourceMUX(bitWidth, inputs)[source]

Bases: RtlResourceType

__init__(bitWidth, inputs)[source]
class hwt.serializer.resourceAnalyzer.resourceTypes.ResourceRAM(width, items, rwSync: int, rSync: int, wSync: int, rSync_wAsync: int, rwAsync: int, rAsync: int, wAsync: int, rAsync_wSync: int)[source]

Bases: RtlResourceType

Specifier of type of RAM like memory

__init__(width, items, rwSync: int, rSync: int, wSync: int, rSync_wAsync: int, rwAsync: int, rAsync: int, wAsync: int, rAsync_wSync: int)[source]
Parameters:
  • width – width of word in RAM/ROM

  • items – number of words in RAM/ROM

  • rwSync – count of read + write synchronous ports

  • rSync – count of read only synchronous ports

  • wSync – count of write only synchronous ports

  • rSync_wAsync – count of synchronous read + asynchronous write ports

  • rwAsync – count of read + write asynchronous ports

  • rAsync – count of read only asynchronous ports

  • wAsync – count of write only asynchronous ports

  • rAsync_wSync – count of asynchronous read + synchronous write ports

class hwt.serializer.resourceAnalyzer.resourceTypes.RtlResourceType[source]

Bases: object

A base class for resource type descriptions.

hwt.serializer.resourceAnalyzer.utils module