Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Visitor
maheshhegde1988
Posts: 5
Registered: ‎03-13-2012
0
Accepted Solution

Methods to check FPGA Functionality and I/O pins of FPGA

Hi All,

I want to check FPGA functionality & I/O pins functionality using "Selftest application" on my board. Which methods i can use to check these in my Selftest application?Please give some ideas.

 

Thanks.

 

 

Thanking You,
Mahesh Hegde
Expert Contributor
eilert
Posts: 2,058
Registered: ‎08-14-2007
0

Re: Methods to check FPGA Functionality and I/O pins of FPGA

Hi Mahesh,

for checking the internal function (of your design) you could build some BIST module.

Read the integrated circuits section of

   http://en.wikipedia.org/wiki/Built-in_self-test

to get an idea.

 

Checking the I/Os is another thing. There you are leaving the FPGA and need stimuli and response controll outside the device. During board production this is normally done using In-Circuit testers and using the JTAG interface of ICs for checking the connections and I/O drivers.

 

If you design your board yourself you could use something like a second FPGA in parallel so both devices can check each other. But this method would be kind of complicated and costly too.

Another method would be to stimulate the already attached hardware outside the board and look for expected return signals. (e.g. doing some dummy read/writes on some external memory. If the readback is correct, the I/O drivers work.)

This method is cheaper, but very board specific and the tests are sometimes limited depending on the kind of attached hardware. (e.g. how to verify that the Txd output works? There's no standard return path. Or you spend a second I/O pin as input to sense Txd. But what if the sense input fails, while Txd works fine? Much effort for nothing or just an increase of failure points?)

 

So, what's your goal in detail?

 

 

Have a nice synthesis

  Eilert

 

 

Expert Contributor
gszakacs
Posts: 5,253
Registered: ‎08-14-2007
0

Re: Methods to check FPGA Functionality and I/O pins of FPGA

A common approach to signals that go off board is to build a loop-back cable for testing.

Then you can drive signals out and check that they properly loop back to the cabled

loopback pin.

 

-- Gabor

-- Gabor
Visitor
maheshhegde1988
Posts: 5
Registered: ‎03-13-2012
0

Re: Methods to check FPGA Functionality and I/O pins of FPGA

Hi,

Thanks for replies.I am planning to Selftest the board without connecting any loopback cable externally. As you suggested i can move in this path. 

 

  1.  FPGA IO pins 1 to 50 are connected to FPGA IO pins 51 to 100 externally(with loopback connector) using a connector
  2.  Load FPGA File
  3.  Toggle pin 1 and check pin 51 status
  4.  Toggle pin 2 and check pin 52 status
  5.  Same is done for all 50 pins
  6.  Results are displayed in GUI which is displaying on PC.

 But i think it's difficult to use loopback cable in larger families of FPGA (I/O pins will be more so connector size is also very small). because i should see connector compatibility. if i start doing compatibility to the connectors to connect loopback cable, number of connectors in the board will become more. So again board size will become increase.

Is there any better way to check the I/O functionality / short between I/O's / dameges of I/O pin?

  

Thanking You,
Mahesh Hegde
Expert Contributor
eilert
Posts: 2,058
Registered: ‎08-14-2007
0

Re: Methods to check FPGA Functionality and I/O pins of FPGA

Hi Mahesh,

what is the scenario behind this approach?

Is it for quality inspection after production of the board, or is it for board health monitoring after deployment at the point of work/custumer?

 

I doubt that your approach is benefitial to any of the above.

- Board manufacturers should have professional in circuit testers to ensure production quality. No need to invent this wheel again.

- Increasing the complexity of a board and/or using a larger device with twice the I/Os  creates more possible points of failure, and how do you monitor it if the failure happens in your interface pins to the PC? Also, if the test runs just once (e.g. after power up) and then the board works for hours or longer, failures could appear just then (e.g. due to thermal changes) so what's the test good for?

 

Think about when you want to catch what kind of errors.

And also what's happening after or in between of tests.

This also helps you to determine what kind of extra tools (loopback cables etc.) might be required for your tests.

Also it makes some difference wether your tests have to be implemented besides the functional design or if you have to load a different bitfile for it.

 

Have a nice synthesis

   Eilert

Visitor
maheshhegde1988
Posts: 5
Registered: ‎03-13-2012
0

Re: Methods to check FPGA Functionality and I/O pins of FPGA

Hi,

      Thank you for all your replies. I am going to use Loopback cable to test the I/O pins of FPGA. But one doubt i have is "2 or 3 I/O pins gone wrong because of some reason. Can i display this message while Selftest application is running 'This I/O's is not working' instead of displaying 'FPGA part is not working'. Is this very much difficult? 

Thanking You,
Mahesh Hegde
Expert Contributor
eilert
Posts: 2,058
Registered: ‎08-14-2007
0

Re: Methods to check FPGA Functionality and I/O pins of FPGA

Hi Mahesh,

If you are able to display anything somehow after testing it should not bee too complicated to select the result string according to some conditions. You could even do sthg. like this:

Core Function: OK    -  IO Test: Fail

Core Function: Fail   -  IO Test: OK

 

So you have both infos in one string and only replace OK and Fail according to the test results

 

Have a nice synthesis

  Eilert