From 9370cfab6194d7a7279be18015b54871e82c5645 Mon Sep 17 00:00:00 2001 From: Daniel Benusovich Date: Sat, 4 May 2019 15:36:59 -0700 Subject: [PATCH] Add test setup. It compiles --- TLB/src/ariane/test/test_plru.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/TLB/src/ariane/test/test_plru.py b/TLB/src/ariane/test/test_plru.py index b7067c80..9b040e1d 100644 --- a/TLB/src/ariane/test/test_plru.py +++ b/TLB/src/ariane/test/test_plru.py @@ -2,4 +2,14 @@ import sys sys.path.append("../src") sys.path.append("../../../TestUtil") -from nmigen.compat.sim import run_simulation \ No newline at end of file +from plru import PLRU + +from nmigen.compat.sim import run_simulation + +def testbench(dut): + yield + +if __name__ == "__main__": + dut = PLRU(4) + run_simulation(dut, testbench(dut), vcd_name="test_plru.vcd") + print("PLRU Unit Test Success") \ No newline at end of file -- 2.30.2