From 050a2509b711f4ad4164bfd2e737aad41bfdefff Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 8 May 2019 12:12:22 +0100 Subject: [PATCH] add some more experimental instructions --- src/experiment/cscore.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/experiment/cscore.py b/src/experiment/cscore.py index 858b3c1a..ed173c81 100644 --- a/src/experiment/cscore.py +++ b/src/experiment/cscore.py @@ -220,6 +220,8 @@ IADD = 0 ISUB = 1 def int_instr(dut, op, src1, src2, dest): + for i in range(len(dut.int_insn_i)): + yield dut.int_insn_i[i].eq(0) yield dut.int_dest_i.eq(dest) yield dut.int_src1_i.eq(src1) yield dut.int_src2_i.eq(src2) @@ -243,11 +245,9 @@ def scoreboard_sim(dut): yield from int_instr(dut, IADD, 5, 2, 4) yield from print_reg(dut, [3,4,5]) yield - yield dut.int_insn_i[IADD].eq(0) yield from int_instr(dut, ISUB, 5, 2, 3) yield from print_reg(dut, [3,4,5]) yield - yield dut.int_insn_i[ISUB].eq(0) yield from print_reg(dut, [3,4,5]) yield yield from print_reg(dut, [3,4,5]) -- 2.30.2