test/test_icap: update.

This commit is contained in:
Florent Kermarrec 2020-10-07 12:36:08 +02:00
parent ad7671f811
commit 305092c7b8
1 changed files with 6 additions and 7 deletions

View File

@ -14,19 +14,18 @@ from litex.soc.cores.icap import ICAP, ICAPBitstream
class TestICAP(unittest.TestCase):
def test_icap_command_reload(self):
def generator(dut):
yield dut.addr.storage.eq(0x4)
yield dut.data.storage.eq(0xf)
yield dut.addr.eq(0x4)
yield dut.data.eq(0xf)
for i in range(16):
yield
yield dut.send.re.eq(1)
yield dut.send.eq(1)
yield
yield dut.send.re.eq(0)
yield dut.send.eq(0)
for i in range(256):
yield
dut = ICAP(simulation=True)
clocks = {"sys": 10,
"icap":20}
dut = ICAP(with_csr=False, simulation=True)
clocks = {"sys": 10, "icap":20}
run_simulation(dut, generator(dut), clocks, vcd_name="icap.vcd")
def test_icap_bitstream_syntax(self):