From 3d84a7a9de47201a1dbe06860a57e54800a70fde Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Sun, 7 Sep 2014 00:18:04 -0600 Subject: [PATCH] cordic: round() constants if not power of two bitwidth, cleanup, simplify some logic --- examples/sim/cordic_err.py | 23 ++++++++++++---------- migen/genlib/cordic.py | 40 +++++++++++++++++--------------------- migen/test/test_cordic.py | 2 +- 3 files changed, 32 insertions(+), 33 deletions(-) diff --git a/examples/sim/cordic_err.py b/examples/sim/cordic_err.py index bd22f250..d7b89b1c 100644 --- a/examples/sim/cordic_err.py +++ b/examples/sim/cordic_err.py @@ -15,30 +15,30 @@ class TestBench(Module): n = 1<