From fd84fecaec425c3fc6cb045280615b7a96ffd3f0 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Sun, 7 Feb 2010 18:10:18 +0000 Subject: [PATCH] - bugfix in to_cycles() Committed on the Free edition of March Hare Software CVSNT Server. Upgrade to CVS Suite for more features and support: http://march-hare.com/cvsnt/ git-svn-id: http://moon:8086/svn/vhdl/trunk@723 cc03376c-175c-47c8-b038-4cd826a8556b --- lib/misc/async_types.vhd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/misc/async_types.vhd b/lib/misc/async_types.vhd index f39a02a..61c335f 100644 --- a/lib/misc/async_types.vhd +++ b/lib/misc/async_types.vhd @@ -53,7 +53,7 @@ package body async_types is function to_cycles(T_ns : real; f_hz : natural) return natural is begin - return natural(0.5 + 10.0E-9*T_ns*real(f_hz)); + return natural(0.5 + 1.0E-9*T_ns*real(f_hz)); end to_cycles; end async_types;