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

Can't use type parameter #958

Closed
nananapo opened this issue Sep 10, 2024 · 2 comments · Fixed by #1016
Closed

Can't use type parameter #958

nananapo opened this issue Sep 10, 2024 · 2 comments · Fixed by #1016
Labels
bug Something isn't working

Comments

@nananapo
Copy link
Contributor

module Top #(
    param param_type : type = logic,
) {
    type type_type = logic<32>;

    struct struct_type {
        a: logic,
    }

    inst m: ModuleA #(
      T1: param_type, // ok
      T2: type_type, // ng
      T3: struct_type, // ng
      T4: logic // ng
    );
}

module ModuleA #(
    param T1: type = logic,
    param T2: type = logic,
    param T3: type = logic,
    param T4: type = logic,
) {}
@dalance dalance added the bug Something isn't working label Sep 10, 2024
@dalance
Copy link
Collaborator

dalance commented Sep 12, 2024

T2 and T3 will be fixed by #962.
T4 requires more consideration in #960.

@nananapo
Copy link
Contributor Author

$size(data_type) also results in same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants