File write of time & date

N

nivparsons

Guest
How do I get the real time and date in a test bench so I can put it in my results file, which gets written out as part of the testing?
 
On 12 Jun., 21:20, nivparsons <kevparsons.gro...@ntlworld.com> wrote:
How do I get the real time and date in a test bench so I can put it in my results file, which gets written out as part of the testing?
real date and time is not part of vhdl language, so you need to get
this function using foreign language interface (fli) and external
functions. In modelsim it is called pli instead of fli.

bye Thomas
 
On 12/06/2012 20:20, nivparsons wrote:
How do I get the real time and date in a test bench so I can put it in my results file, which gets written out as part of the testing?
You might want to search this newsgroup as it has been discussed a
number of times.

I prefer to use a bit of Tcl to force the date from my script onto some
signals. Here is a simple example:

http://www.ht-lab.com/freeutils/date2hdl/date2hdl.html

Good luck,
Hans.
www.ht-lab.com
 
On Wednesday, June 13, 2012 5:14:06 PM UTC+1, HT-Lab wrote:
On 12/06/2012 20:20, nivparsons wrote:
How do I get the real time and date in a test bench so I can put it in my results file, which gets written out as part of the testing?


You might want to search this newsgroup as it has been discussed a
number of times.

I prefer to use a bit of Tcl to force the date from my script onto some
signals. Here is a simple example:

http://www.ht-lab.com/freeutils/date2hdl/date2hdl.html

Good luck,
Hans.
www.ht-lab.com
Actually, you can do it withthe modelsim.utils library. There are time & date functions there, very useful.
 

Welcome to EDABoard.com

Sponsor

Back
Top