move main python code to src directory
[soc.git] / TLB / test / test_set_associative_cache.py
diff --git a/TLB/test/test_set_associative_cache.py b/TLB/test/test_set_associative_cache.py
deleted file mode 100644 (file)
index d681425..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-import sys
-sys.path.append("../src")
-sys.path.append("../../TestUtil")
-
-from nmigen.compat.sim import run_simulation
-
-from SetAssociativeCache import SetAssociativeCache
-
-from test_helper import assert_eq, assert_ne, assert_op
-
-def set_sac(dut, e, c, s, t, d):
-    yield dut.enable.eq(e)
-    yield dut.command.eq(c)
-    yield dut.cset.eq(s)
-    yield dut.tag.eq(t)
-    yield dut.data_i.eq(d)
-    yield
-
-def testbench(dut):
-    enable = 1
-    command = 2
-    cset = 1
-    tag = 2
-    data = 3
-    yield from set_sac(dut, enable, command, cset, tag, data)
-    yield
-
-    enable = 1
-    command = 2
-    cset = 1
-    tag = 5
-    data = 8
-    yield from set_sac(dut, enable, command, cset, tag, data)
-    yield
-
-if __name__ == "__main__":
-    dut = SetAssociativeCache(4, 4, 4, 4)
-    run_simulation(dut, testbench(dut), vcd_name="Waveforms/test_set_associative_cache.vcd")
-    print("Set Associative Cache Unit Test Success")