Tuesday, 2021-04-20

*** tpb has joined #litex00:00
*** rj has joined #litex00:02
*** chipdsgnr has joined #litex00:24
*** Degi_ has joined #litex00:40
*** Degi has quit IRC00:41
*** Degi_ is now known as Degi00:41
*** rj has quit IRC00:43
*** rj has joined #litex00:49
*** pftbest has quit IRC01:00
*** rj has quit IRC01:02
*** pftbest has joined #litex01:03
*** pftbest has quit IRC01:07
*** pftbest has joined #litex01:24
*** pftbest has quit IRC01:28
*** pftbest has joined #litex01:45
*** pftbest has quit IRC01:49
*** chipdsgr has joined #litex01:51
*** pftbest has joined #litex02:27
*** pftbest has quit IRC02:31
*** pftbest has joined #litex02:48
*** thorns514 has quit IRC02:51
*** pftbest has quit IRC02:52
*** pftbest has joined #litex03:30
*** TMM has quit IRC03:31
*** TMM has joined #litex03:31
*** pftbest has quit IRC03:34
*** pftbest has joined #litex03:50
*** pftbest has quit IRC03:55
*** pftbest has joined #litex04:11
*** pftbest has quit IRC04:16
*** pftbest has joined #litex04:53
*** pftbest has quit IRC04:58
*** kgugala__ has joined #litex05:22
*** kgugala has quit IRC05:25
*** chmouss has joined #litex05:33
*** pftbest has joined #litex05:35
*** pftbest has quit IRC05:40
*** pftbest has joined #litex05:56
*** pftbest has quit IRC06:01
*** Bertl_oO is now known as Bertl_zZ06:35
*** pftbest has joined #litex06:38
_florent_Hi06:41
_florent_nickoe: I fix the issue you saw in simulation recently06:41
_florent_fixed06:41
_florent_litex_sim06:42
_florent_litex_bare_metal_demo --build-path=build/sim06:42
_florent_litex_sim --ram-init=demo.bin06:42
*** pftbest has quit IRC06:42
_florent_with this, the donut command is now more generous  :) and can provide you donuts until you press a key06:44
*** kgugala__ has quit IRC06:45
*** kgugala has joined #litex06:45
_florent_chmouss: Sorry, I've not been able to do the test yesterday, but just did it now:06:45
_florent_python3 -m litex_boards.targets.lattice_versa_ecp5 --cpu-type=None --with-etherbone --csr-csv=csr.csv --build --load06:45
_florent_litex_server --udp06:45
_florent_litex_cli --regs06:46
_florent_works on my setup06:46
_florent_I can share the bitstream if you want to test it06:47
_florent_https://github.com/litex-hub/litex-boards/files/6341217/lattice_versa_ecp5_etherbone_test_2021_04_20.zip06:49
_florent_chmouss: I also tested with the CPU (ie without --cpu-type=None) and it's also working06:54
*** pftbest has joined #litex06:59
*** pftbest has quit IRC07:04
*** pftbest has joined #litex07:14
chmouss_florent_: Thanks, I see exactly the same behaviour with your bitstream so it must be an issue on my side (WSL maybe?). Will try with another computer.07:46
*** chmouss has quit IRC07:51
Melkhior_florent_ You were right - seems HW was OK, but i wasn't enabling the interrupts in the driver :facepalm:07:59
MelkhiorI have event in /dev/input/event0 now when I hit a key08:00
Melkhiorat least when arkbd serio enables the keyboard which isn't reliable (yet)08:01
_florent_Melkhior: ok nice08:19
_florent_sajattack[m]: Sorry, I'll look at the Acorn CLE215 / SPIFlash today09:33
*** lkcl has quit IRC10:51
*** lkcl has joined #litex11:05
*** chipdsgnr has quit IRC12:39
*** thorns514 has joined #litex13:07
*** cr1901_modern1 has joined #litex13:19
*** cr1901_modern has quit IRC13:22
*** thorns514 has quit IRC13:29
*** pftbest has quit IRC13:31
*** pftbest has joined #litex13:31
*** Bertl_zZ is now known as Bertl13:57
*** thorns514 has joined #litex14:09
*** thorns514 has quit IRC14:10
*** pftbest has quit IRC14:24
mithroPotential VexRISC-V challenger! http://www.informatik.uni-bremen.de/agra/doc/work/date21_unibooth_microrv32.pdf -- MicroRV32 - A SpinalHDL based RV32I - Implementation Suitable for FPGAs -- No idea how it actually compares....14:33
*** thorns514 has joined #litex14:36
*** rj has joined #litex14:39
*** pftbest has joined #litex14:41
*** pftbest has quit IRC14:43
*** rj has quit IRC14:46
*** pftbest has joined #litex14:47
nickoe_florent_: Ah cool!!! I like generous donuts.14:52
nickoe_florent_: I wonder what change it took, I can't seem to find a related commit in the litex repo14:58
_florent_nickoe: I can probably find it14:58
_florent_https://github.com/enjoy-digital/litex/commit/a1e54671beac463baa5809bb1192dab18cbcc4c8#diff-ea9d572dc54c0f6bab20cb2448efd4ed4049d9c7d4b5706ecf933d7acaa8ee9b14:59
nickoe_florent_: Hmm, ok, cool, so it was something about the CR vs LF things as you mentioned15:00
_florent_yes, a workaround that has been introduced at some point or for a specific use case and that was not longer required15:01
nickoeI am trying to catch up with my SDRAM to  AXI strema15:01
nickoeI got the tracing working with the analyzer, but I think I should be able to trace for way longer just using the --trace option to litex_sim, right?15:02
*** rj has joined #litex15:04
_florent_yes indeed15:05
_florent_it's also possible to enable/disable the tracing from your logic dynamically15:05
_florent_to only capture the parts that are relevant and avoid too large traces15:05
nickoeI don't seem to get a vcd, I am doing "litex_sim --ram-init demo.bin  --trace --trace-start 1 --trace-end 2000"15:06
nickoeSo that is withourt the analyzer15:06
nickoeWhat am I missing?15:06
nickoemmm, there is a file in the build dir!  but it is empt?15:09
nickoehttps://dpaste.com/2XTKRCNAH.txt15:09
nickoeCan I make the simulation auto stop when hitting trace end?15:11
mithrohttps://twitter.com/SAFARI_ETH_CMU/status/1384371656718696449?s=20 - something that LiteDRAM could do?15:19
nickoemithro: Are you replyig to me or asking anyone in the channel?15:23
mithroAnyone.15:25
_florent_nickoe: it seems we may have broke trace-start/end with recent changes in the simulation, I would have to look at that. You can eventually just use --trace and a Finish in your Simulation.15:28
_florent_something like this:15:29
_florent_https://www.irccloud.com/pastebin/qwkjWQ66/15:29
tpbTitle: Snippet | IRCCloud (at www.irccloud.com)15:29
nickoe_florent_: for the record I have not pull since late february, so maybe I should just do it and hope there are no new hurdles?15:29
nickoe"a finish"?15:29
nickoeI just ctrl+c it15:29
nickoeis that wrong?15:30
nickoeah, there is a "finish"15:30
nickoe(your paste)15:30
*** rj has quit IRC15:30
_florent_If you add the code snippet to litex_sim.py and run litex_sim --trace15:31
nickoeyeah, just added it to my own sim script15:31
_florent_it will finish the simulation after 2000 cycles and the waveform will be in build/sim/gateware/sim.vcd15:32
nickoeThat do appear to work!15:32
nickoeSo if that bug is recent, it was also there in late january fwiw15:33
_florent_You can also display the values of signals during the simulation, for example something I have in an auto-checking simulation at the end:15:33
nickoeSo I guess I can somehow combine that wiht the analzer's triggeR?15:33
nickoeThat sounds awesome15:33
_florent_https://www.irccloud.com/pastebin/vA4OdwrD/15:33
tpbTitle: Snippet | IRCCloud (at www.irccloud.com)15:33
_florent_If you don't really need to go to hardware and can do it in simulation, I recommend continue in simulation15:34
*** rj has joined #litex15:35
_florent_The analyzer is useful for debugging things that are difficult to simulate, or to understand the behaviour on the hardware before eventually try to reproduce it in simulation and fix the issue15:35
nickoeYeah, I mean, for the part I want to wrap my head around on how to get work... I want to run it in simulation to debug and verify it easier. But IIRC, I may also have had some trouble loading a boot.json  or --ram-init together with the --rom-init?15:36
_florent_mithro: Thanks nice. It seems a bit similat to ComputeDRAM no? http://parallel.princeton.edu/papers/micro19-gao.pdf15:36
nickoeIs there any recommendation on how to maintain a project that is using litex stuff?15:37
nickoeI mean, how to structure the repos15:37
_florent_IIRC ComputeDRAM has been tested with LiteDRAM15:37
nickoe_florent_: But with the --trace option I don't get the singals I had with the analyzer? Like these https://github.com/nickoe/litex-boards/blob/255d811bc1342d2a3d5a058787fcf91700c8e3e9/litex_boards/targets/mars_ax3_sim_litex.py#L304-L30715:39
*** rj has quit IRC15:39
_florent_with the --trace args you get all the signals of the design, so the user_led should be there15:39
nickoeIt looks like the modules I get are VexRiscv, sd_link, sd_phy15:39
_florent_you should see your signals at the top level15:40
nickoeare they are in the TOP15:40
nickoeI mean "ahhh"15:40
*** rj has joined #litex15:41
nickoeThank you for the tips!15:41
*** cr1901_modern1 has quit IRC15:42
_florent_nickoe: for example project managed externally, you can look at:15:43
_florent_https://github.com/enjoy-digital/pcie_analyzer15:43
_florent_https://github.com/enjoy-digital/colorlite15:43
_florent_https://github.com/enjoy-digital/pcie_screamer15:43
_florent_https://github.com/enjoy-digital/litesata_axiom15:44
_florent_There are just some examples, you can also find useful resources in the Wiki:15:45
_florent_https://github.com/enjoy-digital/litex/wiki/Tutorials-Resources15:45
_florent_https://github.com/enjoy-digital/litex/wiki/Projects15:45
nickoeyay, I can see the "rolling" leds for the LED chanser 2s sim :D15:45
*** cr1901_modern has joined #litex15:48
Finde_florent_ is correct about ComputeDRAM15:55
mithroIs the ComputeDRAM in a public repo anywhere?16:06
*** rj has quit IRC16:14
*** rj has joined #litex16:18
*** Bertl is now known as Bertl_oO16:52
*** rj has quit IRC16:59
*** rj has joined #litex17:02
*** kgugala_ has joined #litex17:29
*** kgugala has quit IRC17:32
*** rj has quit IRC17:43
*** rj has joined #litex17:45
nickoe_florent_: Can I filter the vcd at trace time, such that I don't get some modules dumped?17:46
nickoeI mean together with the --trace?17:46
_florent_it's possible to configure the trace depth with Verilator, but not sure this is exposed in LiteX17:48
_florent_Not sure for tracing only selected modules with Verilator, but at least I know this is not supported in LiteX...17:50
nickoeOK, thanks.17:59
*** kgugala has joined #litex18:15
*** kgugala_ has quit IRC18:18
*** rj has quit IRC18:27
*** d_olex has joined #litex18:31
*** rj has joined #litex18:32
*** kgugala has quit IRC18:49
*** kgugala has joined #litex18:54
*** lkcl has quit IRC18:59
nickoe_florent_: If I make my own "litex" project specific repo, am I required to add the "Copyright 2012-2020 / LiteX-Hub community" as I am essentially just making it "alike" but not really forking it as it is a new board?19:04
nickoeMy project being MIT licensed19:05
*** rj has quit IRC19:11
*** lkcl has joined #litex19:13
*** rj has joined #litex19:14
*** Melkhior has quit IRC19:16
sajattack[m]<_florent_ "sajattack: Sorry, I'll look at t"> yay19:22
Findemithro: no not yet, the original version was based on softmc which is kind of a strange project19:27
Findedon't know all the details of the current dev status with litedram19:27
*** Melkhior has joined #litex19:46
*** rj has quit IRC19:58
*** rj has joined #litex20:03
_florent_nickoe: for the copyright, this is your project :) so you are free to use your copyright. Happy to have feedback about your project or what you do with the tools.20:08
nickoeOk, cool20:10
nickoe_florent_: This is the current state of my simulation :S https://github.com/nickoe/litex-boards/blob/mars_ax3_sim/litex_boards/targets/mars_ax3_sim_litex.py20:13
nickoeBut I am slightly lost with _MyDMA()20:13
nickoewhich is based directly from the litex_sim becuase I had trouble tracing stuff initially20:18
*** Melkhior has quit IRC20:31
*** rj has quit IRC20:42
*** rj has joined #litex20:49
*** rj has quit IRC21:25
*** rj has joined #litex21:29
nickoeHmm, how long does it take for the simulator to laod a 4k file form tftp boot from a boot.json?21:30
*** rj has quit IRC21:34
*** rj has joined #litex21:34
nickoemm, ok, if I remove my first thing it boots the demo.bin just fine... it was test_data.cs16":   {    "0x41000000",    demo.bin":       "0x40000000"          }, but just {"demo.bin":       "0x40000000"} seem to work quick!21:44
nickoemmm, it just .mmm, does not seem to like that second file21:49
nickoeor location21:50
nickoeAre there certain requirements for the file? maybe size boundaries?21:52
nickoehmm, no, my file is exactly 4kiB21:54
*** pftbest has quit IRC22:03
*** pftbest has joined #litex22:07
*** rj has quit IRC22:10
*** rj has joined #litex22:16
*** rj has quit IRC22:55
*** rj has joined #litex22:58
*** lf has quit IRC23:29
*** lf has joined #litex23:30
*** rj has quit IRC23:34

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