2261329f01ccf00de31314c6b610a6156fc4b935
[soc.git] / src / TLB / ariane / test / test_tlb_content.py
1 import sys
2 sys.path.append("../src")
3 sys.path.append("../../../TestUtil")
4
5 from nmigen.compat.sim import run_simulation
6
7 from TLB.ariane.tlb_content import TLBContent
8
9 #def set_vaddr(addr):
10 # yield dut.lu_vaddr_i.eq(addr)
11 # yield dut.update_i.vpn.eq(addr>>12)
12
13 def tbench(dut):
14 yield
15 yield
16 yield
17
18 if __name__ == "__main__":
19 dut = TLBContent(4,4)
20 #
21 run_simulation(dut, tbench(dut), vcd_name="test_tlb_content.vcd")
22 print("TLBContent Unit Test Success")