From 21b677244824b2bdc81e57ea6e602dacadf5bdb7 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sun, 27 Jan 2013 13:59:44 +0100 Subject: [PATCH] - fix timings.py --- README | 2 +- examples/de0_nano/timings.py | 4 ++-- examples/de1/timings.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README b/README index acf65677..3f61f70a 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ - _____ _ ____ _ _ _ _ + _____ _ ____ _ _ _ _ | __|___ |_|___ _ _ | \|_|___|_| |_ ___| | | __| | | | . | | | | | | | . | | _| .'| | |_____|_|_|_| |___|_ | |____/|_|_ |_|_| |__,|_| diff --git a/examples/de0_nano/timings.py b/examples/de0_nano/timings.py index c3fa4b17..56e3afc2 100644 --- a/examples/de0_nano/timings.py +++ b/examples/de0_nano/timings.py @@ -13,8 +13,8 @@ ns = 1/GHz class t2n: def __init__(self, clk_period_ns): self.clk_period_ns = clk_period_ns - self.clk_period_us = clk_period_ns*(GHz/MHz) - self.clk_period_ms = clk_period_ns*(GHz/KHz) + self.clk_period_us = clk_period_ns*(MHz/GHz) + self.clk_period_ms = clk_period_ns*(KHz/GHz) def ns(self,t,margin=True): if margin: t += self.clk_period_ns/2 diff --git a/examples/de1/timings.py b/examples/de1/timings.py index c3fa4b17..56e3afc2 100644 --- a/examples/de1/timings.py +++ b/examples/de1/timings.py @@ -13,8 +13,8 @@ ns = 1/GHz class t2n: def __init__(self, clk_period_ns): self.clk_period_ns = clk_period_ns - self.clk_period_us = clk_period_ns*(GHz/MHz) - self.clk_period_ms = clk_period_ns*(GHz/KHz) + self.clk_period_us = clk_period_ns*(MHz/GHz) + self.clk_period_ms = clk_period_ns*(KHz/GHz) def ns(self,t,margin=True): if margin: t += self.clk_period_ns/2 -- 2.30.2