From: Sebastien Bourdeauducq Date: Thu, 9 Apr 2015 04:00:20 +0000 (+0800) Subject: forgot other cordic files X-Git-Tag: 24jan2021_ls180~2099^2~119 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a69741b24e1a72997fbfac77422b2e6fa8f84b6b;p=litex.git forgot other cordic files --- diff --git a/examples/cordic/cordic_impl.py b/examples/cordic/cordic_impl.py deleted file mode 100644 index 594f2bda..00000000 --- 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()