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

[Constraint] Requirement for default constraint. #15

Open
yyb0205 opened this issue Oct 30, 2023 · 0 comments
Open

[Constraint] Requirement for default constraint. #15

yyb0205 opened this issue Oct 30, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@yyb0205
Copy link

yyb0205 commented Oct 30, 2023

Description

Wish PSSGen implement default constraint.

Definition of the feature located in LRM

PSS LRM 2.1, 16.1.10 Default value constraints

Example Code

action top {
    activity {
        do test with { en == 0; };
        do test;
    }
}
action test {
    rand bit en;
    constraint default en == 1;
    exec body ASM = """en = {{en}}""";
}

Expected Result or Behaviour

en = 0;
en = 1;
@yyb0205 yyb0205 added the enhancement New feature or request label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants