Replies: 2 comments
-
| 
         I am not sure if it is really easier to specify and understand the forbidden constraint, I am a friend of positive specifications. And in reality it will be necessary to specify both constraint expressions as two instructions will be defined with the opposite constraints if we have encoding subsumptions. We further should discuss if encoding constraints and group constraints can be specified similarly. In the following there are some examples: You just have to understand De Morgan's laws. We also should discuss if we need two annotations, one on the encoding and one on the instruction. The annotation on the encoding guarantees that this instruction is matched, if the constraint is fulfilled. Then an additional constraint can be added to the instruction like:  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         In the meeting today we decided to use a positive annotation. We came not to a clear decision with the name. I suggest to start with   | 
  
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
encodingdefinitions will have an optional annotation used by the decode tree generator to resolve conflicting encodings. We’re searching for a good name for such annotation.Consider the following example
AandBare conflicting, because an instruction with{ a = 0b10101, b = 0b01001 }would match both of them. However, we want thatAis matched for every fieldbthat is not0b01001. With this constraint, the conflict is resolved.@rascmatt and I think that it is in general easier to specify the condition the encoding mustn’t fulfill, than the condition it must fulfill. So we prefer to write
[ <name> : b = 0b01001 ]instead of[ ensure : b != 0b01001 ].We thought of several names for this annotation that should reflect what the annotation does.
If you have other suggestions please let us know.
There are only 8 options allowed, but we have other names like:
require,ensure,assert,constraint,legal,illegal,defined,undefined,reserved,forbid,allow,forbidden,allowed,valid,invalid,include,exclude.0 votes ·
Beta Was this translation helpful? Give feedback.
All reactions