[Libre-soc-bugs] [Bug 324] create POWER DIV pipeline

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Mon Jun 29 21:28:21 BST 2020


--- Comment #39 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Jacob Lifshay from comment #38)
> argh, Chrome deleted all the text I was typing.
> Anyway, it looks like a good start, though I don't know for sure as I'm not
> familiar with the testing helper functions.

it's very simple, just cookie-cut test_rand_div and ignore everything else.

> It needs some additional testing:
> all the other div/mod instructions and their variants:
> It needs some non-random test cases to hit the edge cases:
> https://salsa.debian.org/Kazan-team/power-instruction-analyzer/-/blob/
> 13dae100c6bc5685059195010ceb46ae68b9f306/src/main.rs#L210

can you add these? there is so much to do and i am pretty much doing
everything right now.

> soc.fu.div.setup_stage.DivSetupStage.elaborate was incorrectly changed:
> https://git.libre-soc.org/?p=soc.git;a=commitdiff;
> h=8cc95f83fe437f4ac1eb5ebe57265bed30c0078c
> ...
> -        # pass through op
> +        # pass through core data
> -        comb += self.o.op.eq(op)
> +        comb += self.o.core.eq(core_o)
> That should be op since op is used in the last div stage.
> self.o.core.eq(core_o) is the same as self.o.core.eq(self.o.core), so is
> useless.

self.o.op is not defined, which is why i tried to find something to set it to.
if you can run the unit test "python3 fu/div/test/test_pipe_caller.py" and
investigate that would be really helpful.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the libre-soc-bugs mailing list