From a69741b24e1a72997fbfac77422b2e6fa8f84b6b Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 9 Apr 2015 12:00:20 +0800 Subject: [PATCH] forgot other cordic files --- examples/cordic/cordic_impl.py | 63 ----------- examples/cordic/cordic_impl_eval.py | 71 ------------ examples/sim/cordic_err.py | 109 ------------------- migen/test/test_cordic.py | 160 ---------------------------- 4 files changed, 403 deletions(-) delete mode 100644 examples/cordic/cordic_impl.py delete mode 100644 examples/cordic/cordic_impl_eval.py delete mode 100644 examples/sim/cordic_err.py delete mode 100644 migen/test/test_cordic.py diff --git a/examples/cordic/cordic_impl.py b/examples/cordic/cordic_impl.py deleted file mode 100644 index 594f2bda8..000000000 --- a/examples/cordic/cordic_impl.py +++ /dev/null @@ -1,63 +0,0 @@ -import copy -import json - -from migen.fhdl.std import * -from migen.genlib.cordic import Cordic -from mibuild.tools import mkdir_noerror -from mibuild.generic_platform import * -from mibuild.xilinx import XilinxPlatform - -class CordicImpl(Module): - def __init__(self, name, **kwargs): - self.name = name - mkdir_noerror("build") - json.dump(kwargs, open("build/{}.json".format(name), "w")) - self.platform = platform = Platform() - self.submodules.cordic = Cordic(**kwargs) - width = flen(self.cordic.xi) - self.comb += self.cordic.xi.eq( - int((1< 0: - yi *= -1 - xi = abs(yi) + random()*(1 - abs(yi)) - zi = 2*random() - 1 - return xi, yi, zi - def proc(xi, yi, zi): - return xi, 0, zi + yi/xi - self._run_io(50, gen, proc, deltaz=2, delta=2) - - def test_vec_lin(self): - self.setUp(func_mode="linear", cordic_mode="vector", width=8) - self._test_vec_lin()