Skip to content

Failed when use casting in a equal expression to constraint a random variable #44

@LeeKaiXuan

Description

@LeeKaiXuan

Description

When use casting in a equal expression to constraint a random variable, PSSGen reports a method is not implemented.

Scenario Code

action wrapper {
    rand bit msb;
    activity {
        do example with { val == ((bit [4])msb << 3); };
    }
}
action example {
    rand bit [4] val;
    exec body ASM =
"""
val = {{val}}
""";
}

Expected Output or Behaviour

val = 8

Error Message from PSSGen or JAVA (Optional)

PSSExpression.isRandomable(), Ln15: PSSCastExpression.isRandomable() is not implemented

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions