Friday, 2022-10-28

*** tpb <[email protected]> has joined #litex00:00
*** mtm <[email protected]> has quit IRC (Ping timeout: 240 seconds)00:02
*** Degi <[email protected]> has quit IRC (Ping timeout: 246 seconds)00:03
*** _franck_ <[email protected]> has quit IRC (Quit: Ping timeout (120 seconds))00:12
*** _franck_ <[email protected]> has joined #litex00:13
*** Degi <[email protected]> has joined #litex00:15
mewtThanks. Interestingly, that appears to produce no output at all00:30
tpw_rulesi think you have to give it/maybe it writes to a default file path00:31
mewtI mean, I've searched my entire filesystem for the name00:36
mewtshould it generate a blank file if by some strange misconfiguration there are no CSRs?00:40
mewtI guess I'll try and figure out from the source tomorrow00:41
somlomewt: 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`01:22
somlosubstitute your own board, cpu type, variant, frequency, etc.01:23
somlobut MMIO register addresses should be dumped into the `foo.csv` file01:23
*** mtm <[email protected]> has joined #litex02:10
*** pbsds <[email protected]> has quit IRC (Quit: The Lounge - https://thelounge.chat)02:59
*** Degi_ <[email protected]> has joined #litex02:59
*** pbsds <[email protected]> has joined #litex03:00
*** Degi <[email protected]> has quit IRC (Ping timeout: 272 seconds)03:01
*** Degi_ is now known as Degi03:01
mewtYeah, works even without that target finishing05:03
mewtSo I guess this is somehow the fault of colorlight_i5.py05:03
mewtIt is because it's not built by default, and now this thing appears to have some issue if you set CSR widths <3205:35
mewtapparently 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)05:44
mewtAt least that's my understanding right now playing with the debugger05:45
mewtI 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 updating05:51
*** FabM <[email protected]> has joined #litex06:30
mewtAh nope this is part of the SPI master for spi flash I think06:38
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection)08:08
_florent_mewt: can you share a command to reproduce the issue?08:11
_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.08:18
*** Brinx <[email protected]> has joined #litex08:38
*** mtm <[email protected]> has quit IRC (Ping timeout: 252 seconds)12:04
*** mtm <[email protected]> has joined #litex14:10
mewtfrom targets directory:  colorlight_i5.py --with-sdcard --with-ethernet --integrated-rom-size 0xc000│179                              program_cmd)14:21
mewt...14:21
mewtSorry, one moment14:22
mewt./colorlight_i5.py --with-sdcard --with-ethernet --integrated-rom-size 0xc000 --l2-size 2048 --csr-data-width 8 --build --csr-csv='./soc.csv'14:23
mewtshould bail during the build step, on an assertion that "master_rxtx" is 8 bits or less14:31
mewt(you will have to use pdb or modify the code to see that name)14:31
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Quit: Leaving)14:48
*** Brinx <[email protected]> has quit IRC (Remote host closed the connection)15:38
*** Brinx <[email protected]> has joined #litex16:25
*** Brinx <[email protected]> has quit IRC (Ping timeout: 255 seconds)16:30
*** Brinx <[email protected]> has joined #litex16:39
*** zjason` is now known as zjason16:53
_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 17:57
mewtThank you!18:23
*** nelgau_ is now known as nelgau20:13
*** dark_star <dark_star!~adamfeuer@user/dark-star/x-6605035> has joined #litex21:47
*** dark_star <dark_star!~adamfeuer@user/dark-star/x-6605035> has quit IRC (Quit: My MacBook has gone to sleep. ZZZzzz…)21:51
*** dark_star <dark_star!~dark_star@user/dark-star/x-6605035> has joined #litex22:47

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!