forked from M-Labs/artiq
rtio/dma: raise underflow in test
This commit is contained in:
parent
a9c9d5779d
commit
893be82ad1
@ -5,6 +5,7 @@ import itertools
|
||||
from migen import *
|
||||
from misoc.interconnect import wishbone
|
||||
|
||||
from artiq.coredevice.exceptions import RTIOUnderflow
|
||||
from artiq.gateware import rtio
|
||||
from artiq.gateware.rtio import dma, cri
|
||||
from artiq.gateware.rtio.phy import ttl_simple
|
||||
@ -56,6 +57,8 @@ def do_dma(dut, address):
|
||||
yield
|
||||
while ((yield from dut.enable.read())):
|
||||
yield
|
||||
if (yield from dut.cri_master.underflow.read()):
|
||||
raise RTIOUnderflow
|
||||
|
||||
|
||||
test_writes1 = [
|
||||
|
Loading…
Reference in New Issue
Block a user