[Libre-soc-dev] daily kan-ban update 19sep2020

Luke Kenneth Casson Leighton lkcl at lkcl.net
Sat Sep 19 23:16:28 BST 2020


On Sat, Sep 19, 2020 at 10:25 PM Cesar Strauss <cestrauss at gmail.com> wrote:
>
> Last two weeks:
>
> * Wrote a few lessons of the GTKWave tutorial:
> https://libre-soc.org/Documentation/gtkwave_tutorial/
>
> * Produced a reduced test case for a cxxsim bug, and tested the
> corresponding work-around.
> The updated cxxsim now works in all test cases provided.
>
> * Tried the new cxxsim on src/soc/simple/test/test_issuer.py, but it
> hangs. Will attempt to reduce it.

interesting.

you can perhaps cut down the number of Function Units, first.

see AllFunctionUnits, the constructor, you can see that you can pass
in pspec.units, a dictionary, which says how many of for each type of
each Function Unit.

then, you can use that in simple/test/test_issuer.py TestRunner, after
creating the pspec object, just drop a dictionary into it, pspec.units
= {"alu" : 1}

and that will be enough to *only* create a TestIssuer that can handle
ALU pipeline operations.  every other type of instruction will fail,
so you must then also modify the end of the test_issuer.py to only
include this one line:

    suite.addTest(TestRunner(ALUTestCase().test_data))

then it will only try to execute ALU unit tests, and that _should_ succeed.

if you get any exceptions about LD/ST then you can either try to cut
out the LD/ST code or simply modify that dictionary pspec.units to
also include one LD/ST unit.

l.



More information about the Libre-soc-dev mailing list