From: Cesar Strauss Date: Wed, 3 Jun 2020 01:16:07 +0000 (-0300) Subject: Preliminary check of the alu protocol X-Git-Tag: div_pipeline~637^2~19 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=960f903d59d6a802fe102a65bab517ce68d14cbf;p=soc.git 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. --- 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