hwtBuildsystem.yosys.logParser package

Submodules

hwtBuildsystem.yosys.logParser.synthesis module

class hwtBuildsystem.yosys.logParser.synthesis.YosysSynthesisLogParser(text: str, topName: str)[source]

Bases: object

RE_CELLS = re.compile('^ *(.+) (\\d+)$')
Variables:

text – text of the log from yosys synthesis run

RE_INDENT = re.compile('^( *)')
RE_TABLE_HEADER_LINE = re.compile('^=== (.+) ===$')
getBasicResourceReport()[source]

A small report function which extracts the most important values from the tables contained in a report.

parse()[source]

Parse tables which do look like one in code bellow. :note: The items with some indents have key as a tuple of parents and self

e.g. (‘Number of cells’, ‘SB_LUT4’)

=== ExampleTop0 ===

   Number of wires:                 11
   Number of cells:                 14
     SB_CARRY                        6
     SB_LUT4                         8