mirror of https://github.com/efabless/caravel.git
fix tests timeout
This commit is contained in:
parent
327900b526
commit
3fe7f3f38b
|
@ -134,7 +134,7 @@ async def bitbang_cpu_all_0011(dut):
|
||||||
@cocotb.test()
|
@cocotb.test()
|
||||||
@repot_test
|
@repot_test
|
||||||
async def bitbang_cpu_all_1100(dut):
|
async def bitbang_cpu_all_1100(dut):
|
||||||
caravelEnv,clock = await test_configure(dut,timeout_cycles=10000000000)
|
caravelEnv,clock = await test_configure(dut,timeout_cycles=5065204)
|
||||||
cpu = RiskV(dut)
|
cpu = RiskV(dut)
|
||||||
cpu.cpu_force_reset()
|
cpu.cpu_force_reset()
|
||||||
cpu.cpu_release_reset()
|
cpu.cpu_release_reset()
|
||||||
|
|
|
@ -15,7 +15,7 @@ reg = Regs()
|
||||||
@cocotb.test()
|
@cocotb.test()
|
||||||
@repot_test
|
@repot_test
|
||||||
async def gpio_all_o(dut):
|
async def gpio_all_o(dut):
|
||||||
caravelEnv,clock = await test_configure(dut,timeout_cycles=376123)
|
caravelEnv,clock = await test_configure(dut,timeout_cycles=586652)
|
||||||
cpu = RiskV(dut)
|
cpu = RiskV(dut)
|
||||||
cpu.cpu_force_reset()
|
cpu.cpu_force_reset()
|
||||||
cpu.cpu_release_reset()
|
cpu.cpu_release_reset()
|
||||||
|
|
|
@ -77,7 +77,7 @@ void main(){
|
||||||
|
|
||||||
// try to give input
|
// try to give input
|
||||||
reg_debug_1 = 0XBB; // configuration done wait environment to send 0x8F66FD7B to reg_mprj_datal
|
reg_debug_1 = 0XBB; // configuration done wait environment to send 0x8F66FD7B to reg_mprj_datal
|
||||||
int timeout = 1000;
|
int timeout = 100;
|
||||||
while (reg_mprj_datal != 0x8F66FD7B){
|
while (reg_mprj_datal != 0x8F66FD7B){
|
||||||
timeout--;
|
timeout--;
|
||||||
if (timeout==0){
|
if (timeout==0){
|
||||||
|
|
|
@ -15,7 +15,7 @@ reg = Regs()
|
||||||
@cocotb.test()
|
@cocotb.test()
|
||||||
@repot_test
|
@repot_test
|
||||||
async def gpio_all_o_user(dut):
|
async def gpio_all_o_user(dut):
|
||||||
caravelEnv,clock = await test_configure(dut,timeout_cycles=585321)
|
caravelEnv,clock = await test_configure(dut,timeout_cycles=542674)
|
||||||
cpu = RiskV(dut)
|
cpu = RiskV(dut)
|
||||||
cpu.cpu_force_reset()
|
cpu.cpu_force_reset()
|
||||||
cpu.cpu_release_reset()
|
cpu.cpu_release_reset()
|
||||||
|
|
Loading…
Reference in New Issue