Skip to content

Auto-format integer constants used in tie-offs #232

@sgherbst

Description

@sgherbst

For the autowrap feature, it would be nice if tieoffs like this worked:

tieoffs = {
    'signal1': dict(value=42, width=8),
    'signal2': dict(value=0xcafe, width=16, format='hex')
}

generating something like this:

.signal1(8'd42),
.signal2(16'hcafe)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions