hwtBuildsystem.common package

Submodules

hwtBuildsystem.common.cmdResult module

class hwtBuildsystem.common.cmdResult.TclCmdResult(cmd, resultText, errors, criticalWarnings, warnings, infos)[source]

Bases: object

Parsed result of comand over cli

ANY_COLOR = '((\x1b\\[0m)?(\x1b\\[0;(\\d+)m)?\\s*)?'
OPT_MSG_NUMBER = '(\\s*\\(\\d+\\))?'
static extractMsgs(msg, regex, err_str_group_i: int, listOfMsgs: List[str])[source]
classmethod fromStdoutStr(cmd, text)[source]
raiseOnErrors()[source]
regex_critWarn = re.compile('((\x1b\\[0m)?(\x1b\\[0;(\\d+)m)?\\s*)?CRITICAL WARNING(\\s*\\(\\d+\\))?: (.*)')
regex_err = re.compile('((\x1b\\[0m)?(\x1b\\[0;(\\d+)m)?\\s*)?ERROR(\\s*\\(\\d+\\))?: (.*)')
regex_info = re.compile('((\x1b\\[0m)?(\x1b\\[0;(\\d+)m)?\\s*)?INFO(\\s*\\(\\d+\\))?: (.*)')
regex_invalidCmd = re.compile('(invalid command name ".*")')
regex_warn = re.compile('((\x1b\\[0m)?(\x1b\\[0;(\\d+)m)?\\s*)?WARNING(\\s*\\(\\d+\\))?: (.*)')
exception hwtBuildsystem.common.cmdResult.TclToolErr[source]

Bases: Exception

hwtBuildsystem.common.executor module

class hwtBuildsystem.common.executor.ToolExecutor(workerCnt: int | None = None)[source]

Bases: object

An abstract class for a tool executors. Tool executor is an object which controlls some external tool in real time on command-output basis.

exeCmd(cmd) TclCmdResult[source]
getVersion()[source]
project(root, name: str) SynthesisToolProject[source]

hwtBuildsystem.common.project module

class hwtBuildsystem.common.project.SynthesisToolProject(executor: ToolExecutor, path: str, name: str)[source]

Bases: object

report()[source]

hwtBuildsystem.common.tcl module

class hwtBuildsystem.common.tcl.CommonTcl[source]

Bases: object

static exit()[source]