Enable generation of a test bench



Generate test bench code.

'off' (default)

Do not generate test bench code


To generate a test bench for your HDL filter code, use the generatehdl function and set the GenerateHDLTestbench property to 'on', as shown in the following example.

 generatehdl(Hlp, 'GenerateHDLTestbench', 'on')

    Note:   You should replace calls to generatetb in your scripts with calls to generatehdl, enabling test bench generation with the GenerateHDLTestbench property, as shown in the preceding example.

    In Release R2011a, the generatetb function will continue to operate, but will display a warning message when it is called.

Was this topic helpful?