Main Content

hdlcleanup

Clear all HDL code generation states

    Description

    hdlcleanup clears all HDL code generation states preserved in the MATLAB session.

    Examples

    Clear Code Generation States

    The following command generates HDL code for the design under test (DUT) and the clears all the code generation states preserved in the MATLAB session.

    load_system('sfir_fixed');
    open_system('sfir_fixed/symmetric_fir');
    hdlset_param('sfir_fixed','ResourceReport','on');
    makehdl('sfir_fixed/symmetric_fir');
    hdlcleanup;

    Introduced in R2021a