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
830709
Posts: 9
Registered: ‎06-26-2010
0

How to measure simulation time with system generator for hardware co-simulation?

I am using hardware co-simulation now , and I find xapp1031.pdf is very helpful. But I have a question that how to measure simulation time with system generator for hardware co-simulation?

Could anyone help me ?

Thanks!

Expert Contributor
eilert
Posts: 2,055
Registered: ‎08-14-2007

Re: How to measure simulation time with system generator for hardware co-simulation?

hi,

try this:

 

tic;

sim('mymodel.mdl'); % a model consisting of your hwcosim block

toc;

 

This way I made a comparision between hwcosim and software simulation, which can also be found in the xilinx forums.

 

Have a nice simulation

 Eilert

Visitor
830709
Posts: 9
Registered: ‎06-26-2010
0

Re: How to measure simulation time with system generator for hardware co-simulation?

Thank you very much!

I find it very helpful to me!

But I still have a question.

How can I measure the data trasmission time between PC and FPGA board?

Visitor
830709
Posts: 9
Registered: ‎06-26-2010
0

Re: How to measure simulation time with system generator for hardware co-simulation?

Hi, could you offer me the link of your example, Thank you!
Expert Contributor
eilert
Posts: 2,055
Registered: ‎08-14-2007
0

Re: How to measure simulation time with system generator for hardware co-simulation?

Hi,

there's no example available online.

But I think you have managed it now, since using a .m script is no big deal.

 

What interface are you using?

LAN? Use ethereal/wireshark.

JTAG? If not also covered by the above tool you might simply use an oscilloscope to inspect the TCL, TDI and TDO lines.

Or for a deeper inspection, and cheaper than an oscilloscope, there's another cool tool:

http://en.wikipedia.org/wiki/The_Bus_Pirate

 

Have a nice simulation

  Eilert

 

Visitor
830709
Posts: 9
Registered: ‎06-26-2010
0

Re: How to measure simulation time with system generator for hardware co-simulation?

Thank you very much! I will try it now. By the way , I am using JTGA.