microwatt icon indicating copy to clipboard operation
microwatt copied to clipboard

Graph FPGA resource usage with over time

Open mikey opened this issue 3 years ago • 6 comments

I'd like to graph the usage of FPGA resource usage over time so we can easily see when things bloat.

When building microwatt.json, you get a report from yosys like this:

      CCU2C                        1881
      DP16KD                         54
      EHXPLLL                         1
      LUT4                        27427
      MULT18X18D                     32
      TRELLIS_DPR16X4               512
      TRELLIS_FF                   9646

I'd like to graph these parameters on each build (or daily) to see how they are changing.

I assume someone has done something similar for code bloat but I'm not sure what the best way/state of the art to do this is.

https://github.com/jdjohn215/milwaukee-weather is a neat way to grab data and graph it each day, so something like that could work. We could do it as a separate git repo that runs regularly but open to better ideas.

mikey avatar Aug 11 '22 00:08 mikey

Referencing https://github.com/antonblanchard/microwatt/issues/302 that might help us.

mikey avatar Aug 11 '22 01:08 mikey

Graphing some benchmarks over time would also be useful

mikey avatar Aug 25 '22 03:08 mikey

FYI - https://github.com/mattvenn/logLUTs might be useful.

mithro avatar Aug 25 '22 14:08 mithro

https://github.com/leaflabs/xmsgs-tools might also be helpful too.

mithro avatar Aug 25 '22 14:08 mithro

(BTW It would be great if this was a default functionality of LiteX and/or EDAlize.)

mithro avatar Aug 25 '22 14:08 mithro

@mithro I kinda got logLUTs to work. Now I need to automate it image

mikey avatar Aug 30 '22 09:08 mikey