Properties of Imported Function and Task
- An imported function shall complete their execution instantly and consume zero simulation time. Imported task can consume time.
- Imported function can have input, output, and inout arguments.
- The formal input arguments shall not be modified. If such arguments are changed within a function, the changes shall not be visible outside the function.
- Imported function shall not assume any initial values of formal output arguments. The initial value of output arguments is undetermined and implementation dependent.
- Imported function can access the initial value of a formal inout argument. Changes that the Imported function makes to a formal inout argument shall be visible outside the function.
- An Imported function shall not free the memory allocated by SystemVerilog code nor expect SystemVerilog code to free memory allocated by Foreign code or (Foreign Compiler).
- A call to an Imported task can result in suspension of the currently executing thread. This occurs when an Imported task calls an Exported task, and the Exported task executes a delay control, event control or wait statement. Thus it is possible for an Imported task to be simultaneously active in multiple execution threads.
- A Imported function or task can be equip with special properties called pure or context.
Read more about this topic: System Verilog DPI
Famous quotes containing the words properties of, properties, imported, function and/or task:
“A drop of water has the properties of the sea, but cannot exhibit a storm. There is beauty of a concert, as well as of a flute; strength of a host, as well as of a hero.”
—Ralph Waldo Emerson (18031882)
“A drop of water has the properties of the sea, but cannot exhibit a storm. There is beauty of a concert, as well as of a flute; strength of a host, as well as of a hero.”
—Ralph Waldo Emerson (18031882)
“Surely there must be some way to find a husband or, for that matter, merely an escort, without sacrificing ones privacy, self-respect, and interior decorating scheme. For example, men could be imported from the developing countries, many parts of which are suffering from a man excess, at least in relation to local food supply.”
—Barbara Ehrenreich (b. 1941)
“To make us feel small in the right way is a function of art; men can only make us feel small in the wrong way.”
—E.M. (Edward Morgan)
“The really efficient laborer will be found not to crowd his day with work, but will saunter to his task surrounded by a wide halo of ease and leisure.”
—Henry David Thoreau (18171862)