2 Replies Latest reply on Aug 12, 2015 5:21 AM by JoMe_264151

    Control reg being removed from cyfitter.h


      I'm using the control regsister "DmaMsbReg" as the destination of a DMA transfer.  My custom component (MyOverlay) uses the value of this register on lines 251, 253 and 255 of MyOverlay.v.  However, the register is being removed from cyfitter.h.  Why?  It appears in cyfitter.h as the following:


      /* DmaMsbReg */


      #define DmaMsbReg_Sync_ctrl_reg__REMOVED 1u

        • 1. Re: Control reg being removed from cyfitter.h

          I turned off optimization to see what results would occur, design blew up


          on me, eg. would not fit resources. Unless someone else can see issue consider


          posting a CASE -




          To create a technical or issue case at Cypress -








          “Technical Support”


          “Create a Case”




          You have to be registered on Cypress web site first.




          Regards, Dana.

          • 2. Re: Control reg being removed from cyfitter.h

            Too bad, but Creator is right.


            You defined in verilog


                reg [1:0] byte_counter;     // Keeps track of current color byte (Y or Cr or Cb).


            and later you question


                        else if( byte_counter == 5 )  // Y(3)
                            color = DmaMSB[3:0];


            Since this could never ever be, it was optimized out, leaving no reference to DmaMSB in the file which allows for optimizing out the whole register.




            Happy coding