From 9231efba4ccc77557b6c5884f379aee20fd403c7 Mon Sep 17 00:00:00 2001 From: Cesar Strauss Date: Tue, 7 Jul 2020 06:30:02 -0300 Subject: [PATCH] Clear input data along with valid_i --- src/soc/experiment/alu_hier.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/soc/experiment/alu_hier.py b/src/soc/experiment/alu_hier.py index 828511b6..c1ca6fa3 100644 --- a/src/soc/experiment/alu_hier.py +++ b/src/soc/experiment/alu_hier.py @@ -400,6 +400,10 @@ def run_op(dut, a, b, op, inv_a=0): yield yield dut.p.valid_i.eq(0) + yield dut.a.eq(0) + yield dut.b.eq(0) + yield dut.op.insn_type.eq(0) + yield dut.op.invert_a.eq(0) # wait for the ALU to present the output data while not (yield dut.n.valid_o): -- 2.30.2