test/test_icap: update.
This commit is contained in:
parent
ad7671f811
commit
305092c7b8
|
@ -14,19 +14,18 @@ from litex.soc.cores.icap import ICAP, ICAPBitstream
|
||||||
class TestICAP(unittest.TestCase):
|
class TestICAP(unittest.TestCase):
|
||||||
def test_icap_command_reload(self):
|
def test_icap_command_reload(self):
|
||||||
def generator(dut):
|
def generator(dut):
|
||||||
yield dut.addr.storage.eq(0x4)
|
yield dut.addr.eq(0x4)
|
||||||
yield dut.data.storage.eq(0xf)
|
yield dut.data.eq(0xf)
|
||||||
for i in range(16):
|
for i in range(16):
|
||||||
yield
|
yield
|
||||||
yield dut.send.re.eq(1)
|
yield dut.send.eq(1)
|
||||||
yield
|
yield
|
||||||
yield dut.send.re.eq(0)
|
yield dut.send.eq(0)
|
||||||
for i in range(256):
|
for i in range(256):
|
||||||
yield
|
yield
|
||||||
|
|
||||||
dut = ICAP(simulation=True)
|
dut = ICAP(with_csr=False, simulation=True)
|
||||||
clocks = {"sys": 10,
|
clocks = {"sys": 10, "icap":20}
|
||||||
"icap":20}
|
|
||||||
run_simulation(dut, generator(dut), clocks, vcd_name="icap.vcd")
|
run_simulation(dut, generator(dut), clocks, vcd_name="icap.vcd")
|
||||||
|
|
||||||
def test_icap_bitstream_syntax(self):
|
def test_icap_bitstream_syntax(self):
|
||||||
|
|
Loading…
Reference in New Issue