Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/languages In directory vz-cvs-3.sog:/tmp/cvs-serv3808
Modified Files: iverilog.info iverilog.patch Log Message: iverilog: Corrected tf_getlongsimtime() to match behaviour of other simulators. Patch forwarded by Iztok Jeras. >From bf1901bb2b5820548cdaa93119cc74a579c1a0af Mon Sep 17 00:00:00 2001 From: Martin Whitaker <mailing-l...@martin-whitaker.me.uk> Date: Tue, 11 Oct 2011 21:16:26 +0100 Subject: [PATCH] Corrected tf_getlongsimtime() to match behaviour of other simulators. The PLI tf_getlongsimtime() function is a non-standard function provided for compatibility with some commercial simulators. To match the behaviour of those simulators, it should return the raw simulation time, not a scaled time. Index: iverilog.info =================================================================== RCS file: /cvsroot/fink/dists/10.7/stable/main/finkinfo/languages/iverilog.info,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- iverilog.info 26 Sep 2011 12:38:40 -0000 1.1 +++ iverilog.info 20 Oct 2011 19:40:01 -0000 1.2 @@ -1,11 +1,11 @@ Package: iverilog # Remember to fix Source line when upgrading past 0.9: Version: 0.9.4 -Revision: 2 +Revision: 3 Source: ftp://ftp.icarus.com/pub/eda/verilog/v0.9/verilog-%v.tar.gz Source-MD5: 013f1397338fd984ec711250408e43a6 -PatchFile: %n.patch -PatchFile-MD5: abd811b5675e4bfedb3c4e858cf5a905 +PatchFile: iverilog.patch +PatchFile-MD5: 062ad2645bb46f093c4c497d480337f6 Depends: readline5-shlibs, bzip2-shlibs Provides: verilog Index: iverilog.patch =================================================================== RCS file: /cvsroot/fink/dists/10.7/stable/main/finkinfo/languages/iverilog.patch,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- iverilog.patch 26 Sep 2011 12:38:40 -0000 1.1 +++ iverilog.patch 20 Oct 2011 19:40:01 -0000 1.2 @@ -1,15 +1,50 @@ -diff -urN -x'*~' verilog-0.9.4-orig/libveriuser/getsimtime.c verilog-0.9.4/libveriuser/getsimtime.c ---- verilog-0.9.4-orig/libveriuser/getsimtime.c 2011-03-17 20:26:38.000000000 +0100 -+++ verilog-0.9.4/libveriuser/getsimtime.c 2011-09-24 21:09:31.000000000 +0200 -@@ -85,7 +85,10 @@ +From bf1901bb2b5820548cdaa93119cc74a579c1a0af Mon Sep 17 00:00:00 2001 +From: Martin Whitaker <mailing-l...@martin-whitaker.me.uk> +Date: Tue, 11 Oct 2011 21:16:26 +0100 +Subject: [PATCH] Corrected tf_getlongsimtime() to match behaviour of other + simulators. + +The PLI tf_getlongsimtime() function is a non-standard function provided +for compatibility with some commercial simulators. To match the behaviour +of those simulators, it should return the raw simulation time, not a +scaled time. + +diff --git a/libveriuser/getsimtime.c b/libveriuser/getsimtime.c +index 5791ac1..866d17b 100644 +--- a/libveriuser/getsimtime.c ++++ b/libveriuser/getsimtime.c +@@ -1,5 +1,5 @@ + /* +- * Copyright (c) 2002-2010 Michael Ruff (mruff at chiaro.com) ++ * Copyright (c) 2002-2011 Michael Ruff (mruff at chiaro.com) + * + * This source code is free software; you can redistribute it + * and/or modify it in source code form under the terms of the GNU +@@ -83,9 +83,21 @@ PLI_INT32 tf_getlongtime(PLI_INT32 *high) + return tf_igetlongtime(high, 0); + } - /* Alias for commercial simulators */ - PLI_INT32 tf_getlongsimtime(PLI_INT32 *high) \ +-/* Alias for commercial simulators */ +-PLI_INT32 tf_getlongsimtime(PLI_INT32 *high) \ - __attribute__ ((weak, alias ("tf_getlongtime"))); ++/* ++ * This function is not defined in the IEE standard, but is provided for ++ * compatibility with other simulators. Make it a weak symbol just in ++ * case the user has defined their own function for this. ++ */ ++PLI_INT32 tf_getlongsimtime(PLI_INT32 *high) __attribute__ ((weak)); ++PLI_INT32 tf_getlongsimtime(PLI_INT32 *high) +{ -+ return tf_igetlongtime(high, 0); ++ s_vpi_time timerec; ++ timerec.type = vpiSimTime; ++ vpi_get_time (0, &timerec); ++ ++ *high = timerec.high; ++ return timerec.low; +} -+// __attribute ((weak, alias ("tf_getlongtime"))); void tf_scale_longdelay(void*obj, PLI_INT32 low, PLI_INT32 high, PLI_INT32 *alow, PLI_INT32 *ahigh) +-- +1.7.4.4 + ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs