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

rand_mode - task called from a function #61

Open
svenka3 opened this issue Oct 16, 2023 · 0 comments
Open

rand_mode - task called from a function #61

svenka3 opened this issue Oct 16, 2023 · 0 comments

Comments

@svenka3
Copy link
Collaborator

svenka3 commented Oct 16, 2023

From: MikePopoloski/slang#482

Add a lint rule to check COMPAT

class C;
    rand int i;
    function void f();
        rand_mode(0);
        this.rand_mode(0);
        i.rand_mode(0);
    endfunction
endclass
module top;
    C c;
    function make();
        c = new();
        c.rand_mode(0);
    endfunction
    initial begin
        make();
    end
endmodule

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