Add some stuff related to cache

This commit is contained in:
2026-05-16 16:55:21 -07:00
parent 042d7724ff
commit 62a3408eb7
10 changed files with 178 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import cocotb
from cocotb.handle import Immediate
from cocotb.clock import Clock
from cocotb.triggers import Timer, RisingEdge, FallingEdge, with_timeout
CLK_PERIOD = 5
@cocotb.test
async def sanity_test(dut):
cocotb.start_soon(Clock(dut.i_clk, CLK_PERIOD, unit="ns").start())
dut.i_rst.value = Immediate(1)
for _ in range(10):
await RisingEdge(dut.i_clk)
dut.i_rst.value = 0
await Timer(1, "us")