mirror of https://github.com/m-labs/artiq.git
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 migen import *
|
||||||
from misoc.interconnect import wishbone
|
from misoc.interconnect import wishbone
|
||||||
|
|
||||||
|
from artiq.coredevice.exceptions import RTIOUnderflow
|
||||||
from artiq.gateware import rtio
|
from artiq.gateware import rtio
|
||||||
from artiq.gateware.rtio import dma, cri
|
from artiq.gateware.rtio import dma, cri
|
||||||
from artiq.gateware.rtio.phy import ttl_simple
|
from artiq.gateware.rtio.phy import ttl_simple
|
||||||
|
@ -56,6 +57,8 @@ def do_dma(dut, address):
|
||||||
yield
|
yield
|
||||||
while ((yield from dut.enable.read())):
|
while ((yield from dut.enable.read())):
|
||||||
yield
|
yield
|
||||||
|
if (yield from dut.cri_master.underflow.read()):
|
||||||
|
raise RTIOUnderflow
|
||||||
|
|
||||||
|
|
||||||
test_writes1 = [
|
test_writes1 = [
|
||||||
|
|
Loading…
Reference in New Issue