You are here

Control reg being removed from cyfitter.h | Cypress Semiconductor

Control reg being removed from cyfitter.h

Summary: 2 Replies, Latest post by Bob Marlowe on 12 Aug 2015 05:21 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
user_463311141's picture
30 posts

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

user_14586677's picture
7646 posts

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.

user_1377889's picture
9268 posts

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


Log in to post new comments.