You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{cc = cond::$cond.code, op = $instr.opcode, flags = 0}
454
456
assembly ExtendId ($instr.id, $cond.str) =
@@ -493,14 +495,22 @@ This leads to a specification with multiple higher-order macro arguments.
493
495
VADL provides the possibility of passing configuration information to the macro system using the command line.
494
496
Currently, this mechanism is kept very simple and is restricted to elements of type `Id`.
495
497
To prepare a configurable macro variable a default model of type `Id` has to be defined.
496
-
Listing \r{macro_configuration} shows such a variable of name `Arch`, with the default setting `Aarch32`.
497
-
Without any passed configurations the instantiation of `Arch` results in the identifier `Aarch32`.
498
-
If VADL receives the command line option `-m` or `--model` followed by the string `"Arch=Aarch64"`, the value of `Arch` is overridden.
499
-
If `Arch` is instantiated given the previous command line option, it would result in `Aarch64`.
498
+
Listing \r{macro_configuration} shows such a variable of name `Size`, with the default setting `Arch32`.
499
+
Without any passed configurations the instantiation of `Size` results in the identifier `Arch32`.
500
+
If VADL receives the command line option `-m` or `--model` followed by the string `"Size=Arch64"`, the value of `Arch` is overridden.
501
+
If `Arch` is instantiated given the previous command line option, it would result in `Arch64`.
500
502
In combination with conditional expansion, see Section \r{macro_match} and Listing \r{match_macro}, this simple mechanism already provides powerful configuration capabilities.
Similarly to model passing in the command line it is possible to pass models as an argument to import declarations as demonstrated in Listing \r{macro_import}.
511
+
512
+
\listing{macro_import, Import with Macro Argument}
0 commit comments