From 96b2f62147a32de33d5ac3a834ca57198f259765 Mon Sep 17 00:00:00 2001 From: Michael Nolan Date: Wed, 12 Feb 2020 11:43:56 -0500 Subject: [PATCH] Rename part_shift_scalar/ to part_shift --- src/ieee754/{part_shift_scalar => part_shift}/formal/.gitignore | 0 .../formal/proof_shift_dynamic.py | 2 +- .../formal/proof_shift_scalar.py | 1 - .../{part_shift_scalar => part_shift}/part_shift_dynamic.py | 0 .../{part_shift_scalar => part_shift}/part_shift_scalar.py | 0 .../test/test_shift_dynamic.py | 2 +- 6 files changed, 2 insertions(+), 3 deletions(-) rename src/ieee754/{part_shift_scalar => part_shift}/formal/.gitignore (100%) rename src/ieee754/{part_shift_scalar => part_shift}/formal/proof_shift_dynamic.py (98%) rename src/ieee754/{part_shift_scalar => part_shift}/formal/proof_shift_scalar.py (99%) rename src/ieee754/{part_shift_scalar => part_shift}/part_shift_dynamic.py (100%) rename src/ieee754/{part_shift_scalar => part_shift}/part_shift_scalar.py (100%) rename src/ieee754/{part_shift_scalar => part_shift}/test/test_shift_dynamic.py (96%) diff --git a/src/ieee754/part_shift_scalar/formal/.gitignore b/src/ieee754/part_shift/formal/.gitignore similarity index 100% rename from src/ieee754/part_shift_scalar/formal/.gitignore rename to src/ieee754/part_shift/formal/.gitignore diff --git a/src/ieee754/part_shift_scalar/formal/proof_shift_dynamic.py b/src/ieee754/part_shift/formal/proof_shift_dynamic.py similarity index 98% rename from src/ieee754/part_shift_scalar/formal/proof_shift_dynamic.py rename to src/ieee754/part_shift/formal/proof_shift_dynamic.py index ea2cc745..ad9e6517 100644 --- a/src/ieee754/part_shift_scalar/formal/proof_shift_dynamic.py +++ b/src/ieee754/part_shift/formal/proof_shift_dynamic.py @@ -7,7 +7,7 @@ from nmigen.test.utils import FHDLTestCase from nmigen.cli import rtlil from ieee754.part_mul_add.partpoints import PartitionPoints -from ieee754.part_shift_scalar.part_shift_dynamic import \ +from ieee754.part_shift.part_shift_dynamic import \ PartitionedDynamicShift import unittest diff --git a/src/ieee754/part_shift_scalar/formal/proof_shift_scalar.py b/src/ieee754/part_shift/formal/proof_shift_scalar.py similarity index 99% rename from src/ieee754/part_shift_scalar/formal/proof_shift_scalar.py rename to src/ieee754/part_shift/formal/proof_shift_scalar.py index 11c86487..dcb9556a 100644 --- a/src/ieee754/part_shift_scalar/formal/proof_shift_scalar.py +++ b/src/ieee754/part_shift/formal/proof_shift_scalar.py @@ -78,7 +78,6 @@ class ShifterDriver(Elaboratable): comb += Assert(out[0:8] == expected[0:8]) comb += Assert(out[8:16] == (data[8:16] << shifter) & 0xff) comb += Assert(out[16:24] == (data[16:24] << shifter) & 0xff) - return m class PartitionedScalarShiftTestCase(FHDLTestCase): diff --git a/src/ieee754/part_shift_scalar/part_shift_dynamic.py b/src/ieee754/part_shift/part_shift_dynamic.py similarity index 100% rename from src/ieee754/part_shift_scalar/part_shift_dynamic.py rename to src/ieee754/part_shift/part_shift_dynamic.py diff --git a/src/ieee754/part_shift_scalar/part_shift_scalar.py b/src/ieee754/part_shift/part_shift_scalar.py similarity index 100% rename from src/ieee754/part_shift_scalar/part_shift_scalar.py rename to src/ieee754/part_shift/part_shift_scalar.py diff --git a/src/ieee754/part_shift_scalar/test/test_shift_dynamic.py b/src/ieee754/part_shift/test/test_shift_dynamic.py similarity index 96% rename from src/ieee754/part_shift_scalar/test/test_shift_dynamic.py rename to src/ieee754/part_shift/test/test_shift_dynamic.py index ec60d7c6..68579914 100644 --- a/src/ieee754/part_shift_scalar/test/test_shift_dynamic.py +++ b/src/ieee754/part_shift/test/test_shift_dynamic.py @@ -3,7 +3,7 @@ from nmigen.back.pysim import Simulator, Delay, Settle from nmigen.test.utils import FHDLTestCase from ieee754.part_mul_add.partpoints import PartitionPoints -from ieee754.part_shift_scalar.part_shift_dynamic import \ +from ieee754.part_shift.part_shift_dynamic import \ PartitionedDynamicShift import unittest -- 2.30.2