From 960f903d59d6a802fe102a65bab517ce68d14cbf Mon Sep 17 00:00:00 2001 From: Cesar Strauss Date: Tue, 2 Jun 2020 22:16:07 -0300 Subject: [PATCH] Preliminary check of the alu protocol Still need to check that the operand to the alu is held stable. For now, it's more like a placeholder of what will become the full check. --- src/soc/experiment/test/test_compalu_multi.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/soc/experiment/test/test_compalu_multi.py b/src/soc/experiment/test/test_compalu_multi.py index c92ceb42..8796a610 100644 --- a/src/soc/experiment/test/test_compalu_multi.py +++ b/src/soc/experiment/test/test_compalu_multi.py @@ -270,6 +270,11 @@ class CompUnitParallelTest: # assert go for one cycle, passing along the operand value yield self.dut.rd.go[rd_idx].eq(1) yield self.dut.src_i[rd_idx].eq(self.operands[rd_idx]) + # check that the operand was sent to the alu + # TODO: Properly check the alu protocol + yield Settle() + alu_input = yield self.dut.get_in(rd_idx) + assert alu_input == self.operands[rd_idx] yield # rel must keep high, since go was inactive in the last cycle -- 2.30.2