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

bug in smt8 matchloop - missing one of the mandatory parameters (mode) #207

Open
ThaoHuynhFsl opened this issue May 12, 2024 · 0 comments
Open
Assignees

Comments

@ThaoHuynhFsl
Copy link
Contributor

id match has two mandatory parameters and one optional:
repetition
How often the loop is executed when no match is found. If this is a number it specifies the number of repetitions. If it is a number with a time unit (such as ms), it specifies the maximum amount of time for which the loop executions run. This parameter corresponds to the repetition parameter of the pattern file.
Note that if a time is specified, the pattern file containing the match loop can only be called multiple times in the same operating sequence if the period is the same in all locations where it is called.
mode
Whether the pattern execution stops when the match loop fails (stopOnFail) or continues after the REPEATEND statement (continueOnFail). This parameter corresponds to the element of the pattern file.
If the execution of the pattern is stopped, its signals will no longer be used in the same operating sequence: All later elements that use at least one of these signals are skipped. Elements that do not use any of the pattern's signals are executed normally.
inverted
If the optional inverted keyword is added, the loop matches whenever a comparison fails. (See Match loop basics.) This parameter corresponds to the element of the pattern file.

Example 1
The DUT signals that the instruction will be applied on are specified in the id attribute of the element. In this example, a match instruction is used to start a match loop which is repeated 120 times. The continueOnFail assignment specifies to carry on with the test even if all repetitions of the match loop have failed. The compare vectors are generated using the genVec instruction. The matchRepeat instruction defines a wait loop with eight wait vectors. These vectors are repeated until SmarTest finishes evaluating the compare results:

@ThaoHuynhFsl ThaoHuynhFsl self-assigned this May 12, 2024
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