From ad70d056a84869b8791bed19fdc8bceb9b8c15b0 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 2 Dec 2013 13:18:37 +0100 Subject: [PATCH] examples/sim/cordic_err: fix rms_err function name --- examples/sim/cordic_err.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/sim/cordic_err.py b/examples/sim/cordic_err.py index 4a7bc1b58..98b2650b5 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)