Add some stuff related to cache
This commit is contained in:
19
sim/application_wrapper/cache/application_wrapper_cache_l1_test.py
vendored
Normal file
19
sim/application_wrapper/cache/application_wrapper_cache_l1_test.py
vendored
Normal 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")
|
||||
7
sim/application_wrapper/cache/cache.yaml
vendored
Normal file
7
sim/application_wrapper/cache/cache.yaml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
tests:
|
||||
- name: "application_wrapper_cache_l1_test"
|
||||
toplevel: "application_wrapper_cache_l1"
|
||||
modules:
|
||||
- "application_wrapper_cache_l1_test"
|
||||
sources: "sources.list"
|
||||
waves: True
|
||||
1
sim/application_wrapper/cache/sources.list
vendored
Normal file
1
sim/application_wrapper/cache/sources.list
vendored
Normal file
@@ -0,0 +1 @@
|
||||
../../../src/application_wrapper/sources.list
|
||||
Reference in New Issue
Block a user