From: Sebastien Bourdeauducq Date: Mon, 2 Dec 2013 12:18:37 +0000 (+0100) Subject: examples/sim/cordic_err: fix rms_err function name X-Git-Tag: 24jan2021_ls180~2099^2~408 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad70d056a84869b8791bed19fdc8bceb9b8c15b0;p=litex.git examples/sim/cordic_err: fix rms_err function name --- diff --git a/examples/sim/cordic_err.py b/examples/sim/cordic_err.py index 4a7bc1b5..98b2650b 100644 --- a/examples/sim/cordic_err.py +++ b/examples/sim/cordic_err.py @@ -8,7 +8,6 @@ from migen.fhdl import verilog from migen.genlib.cordic import Cordic from migen.sim.generic import Simulator - class TestBench(Module): def __init__(self, n=None, xmax=.98, i=None, **kwargs): self.submodules.cordic = Cordic(**kwargs) @@ -69,7 +68,7 @@ def rms_err(width, guard=None, stages=None, n=None): def rms_err_map(): widths, stages = np.mgrid[8:33:1, 8:37:1] - errf = np.vectorize(lambda w, s: _rms_err(int(w), None, int(s), n=333)) + errf = np.vectorize(lambda w, s: rms_err(int(w), None, int(s), n=333)) err = errf(widths, stages) print(err) lev = np.arange(10)