You are here

Can someone explain flowstates to me? | Cypress Semiconductor

Can someone explain flowstates to me?

Summary: 1 Reply, Latest post by NIKL on 19 Aug 2013 08:58 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
kgregory's picture
2 posts



I just started designing for the FX2LP device (CY7C68014A) and I'm trying to implement something fairly similar to the GPIF-master FIFO example that was included with the DVK. The two modifications I want to make are 1) change the waveforms a bit and 2) include both single reads/writes as well as fifo reads/writes with different waveforms for each.

After reading through the ap note included with the design as well as a variety of ap notes on the website, one thing I still can't understand is how the waveforms drawn in the GPIF designer tool map into the flowstates[36] table. Specifically, I need to understand if/how I need to modify code such as the method below for setting up the write flowstates if I, say, delete a state from the original waveform. In addition, some of the comments in the "global flowstate register initializations" section are only adding to my confusion.

void Setup_FLOWSTATE_Write ( void )

   FLOWSTATE = FlowStates[27];  // 1000 0001b - FSE=1, FS[2:0]=001


   FLOWEQ0CTL = FlowStates[29]; // CTL0 = 0 when flow condition equals zero (data flows)


  FLOWEQ1CTL = FlowStates[30]; // CTL0 = 1 when flow condition equals one (data does not flow)



NIKL's picture
Cypress Employee
283 posts


I am sure you already gone through "Introduction to GPIF" app note (

Pls check if you have gone through "SRAM interface with FX2LP" app note ( This has both Fifo read/write waveforms.

You do not have to worry about gpif.c. Make any changes you want to GPIF waveform in gpif designer and then generate a .c file to include in the project.

You can try and experiment with the waveforms or you can always create tech support case if you think you need to speed things up.

If you have any more questions please post here.




Log in to post new comments.