5 Replies Latest reply on Sep 25, 2018 6:19 PM by malleite_2452796

    PSOC Creator 4.2 synthesis optimization control

    malleite_2452796

      Hi,

       

      I have a design in PSoC Creator 4.2 (using PSoC5lp device) where I  need to switch off the synthesis optimization  of some digital blocks while keeping other optimized (a rare case where I need to preserve a delay adjustment).

       

      If I disable the optimization in “Projects->Build Setting-> Synthesis-> Synthesis Optimization Effort -> None “ and switch on

      the optimization per block using the directive in the .ctl file as, for example :

       

      ATTRIBUTE opt_level OF my_module_1 : module is 2 ;

      ATTRIBUTE opt_level OF my_module_2 : module is 0 ;

       

      it obeys my settings (my_module_1 is optimized and my_module_2 isn’t).

       

      Now, if  I try to set the optimization level 2 in the “Projects->Build Setting-> Synthesis-> Synthesis Optimization Effort -> Exaustive “ and try to switch off the optimization in the module by the .ctl file

       

      ATTRIBUTE opt_level OF my_module_2 : module is 0 ;

       

      it does not work as above, as it seems that the level 2 optimization overrides all control in the .ctl file.

       

      Is there a way to request only a few modules not to be optimized in a global optimization setting ?

       

      Many thanks for any hint ...

       

      Marco