Main Content


Create pixel-streaming control bus instance


pixelcontrolbus declares a bus instance in the workspace. This instance is required for HDL code generation. Call this function before you generate HDL code from Vision HDL Toolbox™ blocks.


collapse all

  • In the InitFcn callback function of your Simulink® model, include this line to declare a bus instance in the base workspace. If you create your model with the Vision HDL Toolbox model template, this is done for you.


    If you do not declare an instance of pixelcontrolbus in the base workspace, you might encounter this error when you generate HDL code in Simulink.

    Cannot resolve variable 'pixelcontrol'

Version History

Introduced in R2015a