Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aliases for bus naming #69

Open
gbowers4 opened this issue Nov 20, 2023 · 0 comments
Open

Aliases for bus naming #69

gbowers4 opened this issue Nov 20, 2023 · 0 comments

Comments

@gbowers4
Copy link

Bus naming is very strict - users may have an in-house standard for bus suffixes - an optional alias arg has been useful for changing this

_signals = ["valid", "data", "startofpacket", "endofpacket"]

the above is the standard - we have been using something similar to:

_aliases = {
    "startofpacket": "sop",
    "endofpacket": "eop"
}

def __init__(self, entity, name, clock, config={}, **kwargs):
    AVSTDriver.__init__(self, entity, name, clock, config=config, aliases=self._aliases, **kwargs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant