FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
5930 Discussions

Max 10 instability issues, what to check

RobertoP
Beginner
478 Views

Hi.

I have migrated an existing project from a cyclone 1 FPGA to a MAX10 FPGA.

I had no constraints, I have added just master clock that is a 32MHz clock. External signal can be asynchronous (from identical boards connected by wire and physical 485 Transceiver), and runs at 4MHz or less.

I solved some issues, related to:

  • uncorrect sampling of asynchronous signals (followed intel design guidelines and added a couple of flip flop to prevent metastability)
  • Used safe state machines compiler option to prevent that state machine get into an unknown state (observed in some case via GPIO and/or Signal Tap)

In this way I solved some strange behaviour. Notice that, before this fix, I get communication problems in some condition, ad just moving a pin, shorting a cable, inserting signal tap seemed to solved the issues, except that just touching something else and the issues get back again.

Last fix to increase stability is to set compiler option to have gray code for machine state.

What else can I do? I have looked at intel design guidelines and everything seems ok about clock and reset management. What else to look for? How gray code for machine states can improve stability?

 

Thank you, regards, roberto

0 Kudos
4 Replies
SyafieqS
Moderator
460 Views

Roberto,


Have you look at the Quartus Design optimization? This could help you to meets the design goals while reducing area, critical path delay, power consumption, and runtime.

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/ug/ug-qps-design-optimization.pdf


0 Kudos
RobertoP
Beginner
448 Views

Thank you Syafieq

Already seen.

  1. Is the reported behaviour a common issue in analogous situation? Never heard before?
  2. could gray code for machines state improove stability? Or it is just a lucky happening that this work?
  3. any other Quartus suggested optimization setting to mitigate described behaviour?
  4. any other VHDL code design aspect to pay attention for?

 

Thank you a lot,

Roberto

 

 

 

 

0 Kudos
RobertoP
Beginner
416 Views

Missing any other answer, I’ll try to define some points to check, in the hope that could helps any other user with similar issues.

Object: Migrating from old design (Cyclone 1) to new one (MAX10)

Problem: strange behaviours, unstability, FPGA do the same thing but whit random errors and blocking issues.

Solution:

  1. Migrate library components, as FIFO
  2. Check any new or modified pins and set for most conservative approach (High Z input explicitly set)
  3. Check Intel Design Guidelines (Eg: https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/ug/ug-qpp-design-recommendations.pdf ) and apply what is missing:
    1. Clock schemes
    2. Latching of external asynch signals
    3. Reset management
  4. Optimize for safe state machine, grey coding of states, optimize for stability

Migrating this way, my old design finally passed a quite severe testing procedure, involving also thermal testing at -30 and +64°C

Thank you,

Roberto

0 Kudos
SyafieqS
Moderator
391 Views

I’m glad that your question has been addressed, I now transition this thread to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you.


0 Kudos
Reply