I want to measure the bandwidth of the usb 2.0. I have a board with cypress Fx2 and FPGA. I have developed the firm ware in keil C.Should I code something in Keil C to measure the bandwidth delivered by USB or how can I do it ? thanks punitha
thanks. I just want to test the performance of the USB
Unless there is any packet loss, the throughput performance is the same, regardless of the place where you attach a prove, though there may be temporarily fluctuation absorbed by buffers.
Or do you want to detect packet loss?
Tsuneo
thanks
There was a program in cypress "Bandwidth meter " to the test the speed of the PC and USB. I tried it and i was able to achieve 45MB/s as peak bandwidth. But it did not involve my firmware or the FPGA. It was just to test the speed of PC. but will i get the same bandwidth when I use my firmware to transfer data? . The program in the cypress does not transfer data to th outside world.
How about USB benchmark utility on PC? - USB Info - The original website seems to disappear - USB Performance Software www.usbperformance.com/.../
etc.
Software sniffers also have transfer statistics.
If you want to measure the traffic on the bus, a hardware bus analyzer is required.
Thanks ,
I have already measured the burst rate ( FX2 to FPGA).Now I want to measure speed from PC to board with my firmware and FPGA? Any idea of how to do it ?
Do you mean you want to measure the actual throughput of the setup? Then, hook a frequency counter or a digital scope with frequency function to the strobe signal of the FX2-FPGA interface. It should flip every byte (or word) transfer.
You may be able to built in similar function on the FPGA, and read it over JTAG - like Xilinx chip scope.
Of cource, you may be able to write a code for the FX2 core, but I'm not sure I can explain it for you easy enough :-)