fix imports (allows test command to be run from non-top-level directory)
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 9 Jun 2020 17:44:13 +0000 (18:44 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 9 Jun 2020 17:44:13 +0000 (18:44 +0100)
src/ieee754/div_rem_sqrt_rsqrt/test_core.py

index 7df7be47a35c2af800706665bacb483fdeb98659..3220388432d3f3ad88faca2235be2b07a6defa2e 100755 (executable)
@@ -2,11 +2,13 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 # See Notices.txt for copyright information
 
-from .core import (DivPipeCoreConfig, DivPipeCoreSetupStage,
-                   DivPipeCoreCalculateStage, DivPipeCoreFinalStage,
-                   DivPipeCoreOperation, DivPipeCoreInputData,
-                   DivPipeCoreInterstageData, DivPipeCoreOutputData)
-from .algorithm import (FixedUDivRemSqrtRSqrt, Fixed, Operation, div_rem,
+from ieee754.div_rem_sqrt_rsqrt.core import (DivPipeCoreConfig,
+                    DivPipeCoreSetupStage,
+                    DivPipeCoreCalculateStage, DivPipeCoreFinalStage,
+                    DivPipeCoreOperation, DivPipeCoreInputData,
+                    DivPipeCoreInterstageData, DivPipeCoreOutputData)
+from ieee754.div_rem_sqrt_rsqrt.algorithm import (FixedUDivRemSqrtRSqrt,
+                        Fixed, Operation, div_rem,
                         fixed_sqrt, fixed_rsqrt)
 import unittest
 from nmigen import Module, Elaboratable, Signal