Parameter declarations can be taken (imported) from other script files by using the declaration
params from SCRIPT [except NAMES] [default NAME = VALUE ...]
All parameter (but not result) declarations from the given script will be used as if they had been declared in the importing script.
The optional except clause will exclude one or more
comma-separated parameters.
Example: if the script a.simics contains:
decl {
params from "b.simics" except y
param x : int
result r : string
}
and b.simics contains:
decl {
param y : int = 10
param z : bool = TRUE
result s : string
}
then a.simics will behave as if it had been written:
decl {
param z : bool = TRUE
param x : int
result r : string
}
The default value of imported parameters can be overridden by
adding default clauses. Example:
params from "hardware-setup.simics"
default ram_size = 256
default cpu_freq = 3.58e6
There is also a substitute declaration that is reserved for Simics
internal use.