hwt/serializer/systemC/statements.py
def HWProcess(cls, proc, ctx):
        """
        Serialize HWProcess instance

        :param scope: name scope to prevent name collisions
        """
        body = proc.statements
        childCtx = ctx.withIndent()
        statemets = [cls.asHdl(s, childCtx) for s in body]
        proc.name = ctx.scope.checkedName(proc.name, proc)

        return cls.methodTmpl.render(
            indent=getIndent(ctx.indent),
            name=proc.name,
            statements=statemets
        )
def HWProcess(cls, proc, ctx):
        body = proc.statements
        childCtx = ctx.withIndent()
        statemets = [cls.asHdl(s, childCtx) for s in body]
        proc.name = ctx.scope.checkedName(proc.name, proc)

        return cls.methodTmpl.render(
            indent=getIndent(ctx.indent),
            name=proc.name,
            statements=statemets
        )
def HWProcess ( cls , proc , ctx ) : body = proc . statements childCtx = ctx . withIndent ( ) statemets = [ cls . asHdl ( s , childCtx ) for s in body ] proc . name = ctx . scope . checkedName ( proc . name , proc ) return cls . methodTmpl . render ( indent = getIndent ( ctx . indent ) , name = proc . name , statements = statemets )
Serialize HWProcess instance

        :param scope: name scope to prevent name collisions
Serialize HWProcess instance