From: Florent Kermarrec Date: Sun, 27 Jan 2013 12:59:44 +0000 (+0100) Subject: - fix timings.py X-Git-Tag: 24jan2021_ls180~2575^2~122 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21b677244824b2bdc81e57ea6e602dacadf5bdb7;p=litex.git - fix timings.py --- 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