AR# 15190

8.2 System Generator for DSP - An error reports "Undefined function or variable" during generation

Description

In all System Generator versions, up to and including v8.2, the following error occurs during code generation when a variable exists in the "stop time" of the simulation parameters:

"System Generator ERROR

Error during generation: Undefined function or variable."

This error occurs even when the variable or function is correctly declared in the work space.

Solution

The System Generator cannot determine the value of variables or functions for the "stop time" of the simulation parameters during code generation. This problem occurs only during code generation and not during simulation. For code generation, the explicit value must be entered into "stop time."

AR# 15190
Date 12/15/2012
Status Active
Type General Article