Open sols1 opened 7 years ago
It appears that the condition for executing printf ("new a=%d b=%d\n", a, b)
is simply never occurring. Looking at the now ...
prints, the case !valid && io.in.valid
never appears.
I can cause the new line to print with
poke(c.io.in.bits.a, 4)
poke(c.io.in.bits.b, 1)
poke(c.io.in.valid, 1)
step(1)
peek(c.io.out.bits)
poke(c.io.in.valid, 0)
step(1)
peek(c.io.out.bits)
poke(c.io.in.valid, 0)
step(1)
peek(c.io.out.bits)
poke(c.io.in.valid, 0)
step(1)
peek(c.io.out.bits)
poke(c.io.in.valid, 1)
step(1)
peek(c.io.out.bits)
poke(c.io.in.valid, 0)
The code passes the test:
However, the output does not have anything printed by
printf ("new a=%d b=%d\n", a, b)
: