_florent_ changed the topic of #litex to: LiteX FPGA SoC builder and Cores / Github : https://github.com/enjoy-digital, https://github.com/litex-hub / Logs: https://libera.irclog.whitequark.org/litex
tpb has quit [Remote host closed the connection]
tpb has joined #litex
mtm has quit [Ping timeout: 240 seconds]
Degi has quit [Ping timeout: 246 seconds]
_franck_ has quit [Quit: Ping timeout (120 seconds)]
_franck_ has joined #litex
Degi has joined #litex
<mewt> Thanks. Interestingly, that appears to produce no output at all
<tpw_rules> i think you have to give it/maybe it writes to a default file path
<mewt> I mean, I've searched my entire filesystem for the name
<mewt> should it generate a blank file if by some strange misconfiguration there are no CSRs?
<mewt> I guess I'll try and figure out from the source tomorrow
<somlo> mewt: try something like `litex-boards/litex_boars/targets/digilent_nexys_video.py --build --cpu-type rocket --cpu-variant full4d --sys-clk-freq 50e6 --csr-csv ./foo.csv`
<somlo> substitute your own board, cpu type, variant, frequency, etc.
<somlo> but MMIO register addresses should be dumped into the `foo.csv` file
Wolfvak has joined #litex
Wolfvak has quit [Changing host]
mtm has joined #litex
pbsds has quit [Quit: The Lounge - https://thelounge.chat]
Degi_ has joined #litex
pbsds has joined #litex
Degi has quit [Ping timeout: 272 seconds]
Degi_ is now known as Degi
<mewt> Yeah, works even without that target finishing
<mewt> So I guess this is somehow the fault of colorlight_i5.py
<mewt> It is because it's not built by default, and now this thing appears to have some issue if you set CSR widths <32
<mewt> apparently what fails is "master_rxtx", which appears to not be part of any peripheral core. Somehow the width of that remains as 32 bits, which causes it to fail an assert (that every CSR is 8 bits or less)
<mewt> At least that's my understanding right now playing with the debugger
<mewt> I would like to get litex to actually build something for the colorlight i5 again, but it seems recent versions of the toolchain both on this and the zephyr side have changed too much and things in colorlight_i5.py need updating
FabM has joined #litex
FabM has joined #litex
<mewt> Ah nope this is part of the SPI master for spi flash I think
Brinx has quit [Remote host closed the connection]
<_florent_> mewt: can you share a command to reproduce the issue?
<_florent_> Just for info, with: https://github.com/enjoy-digital/litex/commit/3603e90ed8de1f3863524049e67dea710c97112f we can now directly create CSRs on the main module of a SoC. These ones will be collected and added to a "main" submodule with all the CSR attached to it. This can be convenient when debugging a SoC to quickly add registers or logic to help debug without having to create a specific submodule.
Brinx has joined #litex
mtm has quit [Ping timeout: 252 seconds]
mtm has joined #litex
<mewt> from targets directory: colorlight_i5.py --with-sdcard --with-ethernet --integrated-rom-size 0xc000│179 program_cmd)
<mewt> ...
<mewt> Sorry, one moment
<mewt> ./colorlight_i5.py --with-sdcard --with-ethernet --integrated-rom-size 0xc000 --l2-size 2048 --csr-data-width 8 --build --csr-csv='./soc.csv'
<mewt> should bail during the build step, on an assertion that "master_rxtx" is 8 bits or less
<mewt> (you will have to use pdb or modify the code to see that name)
FabM has quit [Quit: Leaving]
Brinx has quit [Remote host closed the connection]
Brinx has joined #litex
Brinx has quit [Ping timeout: 255 seconds]
Brinx has joined #litex
zjason` is now known as zjason
<_florent_> mewt: OK thanks, this seems to be a limiation of LiteSPI with csr_data_width of 8. I'll try to have a closer look
<mewt> Thank you!
nelgau_ is now known as nelgau
dark_star has joined #litex
dark_star has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dark_star has joined #litex