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

refactoring identifier separator #65

Closed
dalance opened this issue Jan 10, 2023 · 0 comments
Closed

refactoring identifier separator #65

dalance opened this issue Jan 10, 2023 · 0 comments
Labels
lang Language design

Comments

@dalance
Copy link
Collaborator

dalance commented Jan 10, 2023

Now :: and . are used as identifier separator.

import PackageA::A;

module ModuleA (
    a: input PackageA::struct_t,
    b: modport InterfaceA.master,
) {
    assign a.memberA = b.funcA(1);
    assign b.portA = PackageA::parameterA;
}

Almost . is used for [instance/variable identifier].[member identifier] and :: is used for [type/definition identifier]::[member identifier].
But InterfaceA.master seems to be inconsistent.

How about InterfaceA::master? and is there another case?

import PackageA::A;

module ModuleA (
    a: input PackageA::struct_t,
    b: modport InterfaceA::master,
) {
    assign a.memberA = b.funcA(1);
    assign b.portA = PackageA::parameterA;
}
@dalance dalance added the lang Language design label Jan 10, 2023
dalance added a commit that referenced this issue Jan 16, 2023
dalance added a commit that referenced this issue Jan 16, 2023
@dalance dalance closed this as completed Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang Language design
Projects
None yet
Development

No branches or pull requests

1 participant