_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://freenode.irclog.whitequark.org/litex
tpb has quit [Remote host closed the connection]
tpb has joined #litex
rj has joined #litex
chipdsgnr has joined #litex
Degi_ has joined #litex
Degi has quit [Ping timeout: 240 seconds]
Degi_ is now known as Degi
rj has quit [Ping timeout: 240 seconds]
rj has joined #litex
pftbest has quit [Remote host closed the connection]
rj has quit [Ping timeout: 240 seconds]
pftbest has joined #litex
pftbest has quit [Ping timeout: 240 seconds]
pftbest has joined #litex
pftbest has quit [Ping timeout: 240 seconds]
pftbest has joined #litex
pftbest has quit [Ping timeout: 240 seconds]
chipdsgr has joined #litex
pftbest has joined #litex
pftbest has quit [Ping timeout: 240 seconds]
pftbest has joined #litex
thorns514 has quit [Quit: Textual IRC Client: www.textualapp.com]
pftbest has quit [Ping timeout: 252 seconds]
pftbest has joined #litex
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #litex
pftbest has quit [Ping timeout: 240 seconds]
pftbest has joined #litex
pftbest has quit [Ping timeout: 268 seconds]
pftbest has joined #litex
pftbest has quit [Ping timeout: 252 seconds]
pftbest has joined #litex
pftbest has quit [Ping timeout: 260 seconds]
kgugala__ has joined #litex
kgugala has quit [Ping timeout: 265 seconds]
chmouss has joined #litex
pftbest has joined #litex
pftbest has quit [Ping timeout: 240 seconds]
pftbest has joined #litex
pftbest has quit [Ping timeout: 240 seconds]
Bertl_oO is now known as Bertl_zZ
pftbest has joined #litex
<_florent_> Hi
<_florent_> nickoe: I fix the issue you saw in simulation recently
<_florent_> fixed
<_florent_> litex_sim
<_florent_> litex_bare_metal_demo --build-path=build/sim
<_florent_> litex_sim --ram-init=demo.bin
pftbest has quit [Ping timeout: 240 seconds]
<_florent_> with this, the donut command is now more generous :) and can provide you donuts until you press a key
kgugala__ has quit [Read error: Connection reset by peer]
kgugala has joined #litex
<_florent_> chmouss: Sorry, I've not been able to do the test yesterday, but just did it now:
<_florent_> python3 -m litex_boards.targets.lattice_versa_ecp5 --cpu-type=None --with-etherbone --csr-csv=csr.csv --build --load
<_florent_> litex_server --udp
<_florent_> litex_cli --regs
<_florent_> works on my setup
<_florent_> I can share the bitstream if you want to test it
<_florent_> chmouss: I also tested with the CPU (ie without --cpu-type=None) and it's also working
pftbest has joined #litex
pftbest has quit [Ping timeout: 260 seconds]
pftbest has joined #litex
<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.
chmouss has quit [Ping timeout: 246 seconds]
<Melkhior> _florent_ You were right - seems HW was OK, but i wasn't enabling the interrupts in the driver :facepalm:
<Melkhior> I have event in /dev/input/event0 now when I hit a key
<Melkhior> at least when arkbd serio enables the keyboard which isn't reliable (yet)
<_florent_> Melkhior: ok nice
<_florent_> sajattack[m]: Sorry, I'll look at the Acorn CLE215 / SPIFlash today
lkcl has quit [Ping timeout: 252 seconds]
lkcl has joined #litex
chipdsgnr has quit [Quit: Connection closed]
thorns514 has joined #litex
cr1901_modern1 has joined #litex
cr1901_modern has quit [Ping timeout: 258 seconds]
thorns514 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pftbest has quit [Remote host closed the connection]
pftbest has joined #litex
Bertl_zZ is now known as Bertl
thorns514 has joined #litex
thorns514 has quit [Client Quit]
pftbest has quit [Remote host closed the connection]
<mithro> Potential 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....
thorns514 has joined #litex
rj has joined #litex
pftbest has joined #litex
pftbest has quit [Remote host closed the connection]
rj has quit [Ping timeout: 240 seconds]
pftbest has joined #litex
<nickoe> _florent_: Ah cool!!! I like generous donuts.
<nickoe> _florent_: I wonder what change it took, I can't seem to find a related commit in the litex repo
<_florent_> nickoe: I can probably find it
<nickoe> _florent_: Hmm, ok, cool, so it was something about the CR vs LF things as you mentioned
<_florent_> yes, a workaround that has been introduced at some point or for a specific use case and that was not longer required
<nickoe> I am trying to catch up with my SDRAM to AXI strema
<nickoe> I 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?
rj has joined #litex
<_florent_> yes indeed
<_florent_> it's also possible to enable/disable the tracing from your logic dynamically
<_florent_> to only capture the parts that are relevant and avoid too large traces
<nickoe> I don't seem to get a vcd, I am doing "litex_sim --ram-init demo.bin --trace --trace-start 1 --trace-end 2000"
<nickoe> So that is withourt the analyzer
<nickoe> What am I missing?
<nickoe> mmm, there is a file in the build dir! but it is empt?
<nickoe> Can I make the simulation auto stop when hitting trace end?
<mithro> https://twitter.com/SAFARI_ETH_CMU/status/1384371656718696449?s=20 - something that LiteDRAM could do?
<nickoe> mithro: Are you replyig to me or asking anyone in the channel?
<mithro> Anyone.
<_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.
<_florent_> something like this:
<tpb> Title: Snippet | IRCCloud (at www.irccloud.com)
<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?
<nickoe> "a finish"?
<nickoe> I just ctrl+c it
<nickoe> is that wrong?
<nickoe> ah, there is a "finish"
<nickoe> (your paste)
rj has quit [Ping timeout: 240 seconds]
<_florent_> If you add the code snippet to litex_sim.py and run litex_sim --trace
<nickoe> yeah, just added it to my own sim script
<_florent_> it will finish the simulation after 2000 cycles and the waveform will be in build/sim/gateware/sim.vcd
<nickoe> That do appear to work!
<nickoe> So if that bug is recent, it was also there in late january fwiw
<_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:
<nickoe> So I guess I can somehow combine that wiht the analzer's triggeR?
<nickoe> That sounds awesome
<tpb> Title: Snippet | IRCCloud (at www.irccloud.com)
<_florent_> If you don't really need to go to hardware and can do it in simulation, I recommend continue in simulation
rj has joined #litex
<_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 issue
<nickoe> Yeah, 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?
<_florent_> mithro: Thanks nice. It seems a bit similat to ComputeDRAM no? http://parallel.princeton.edu/papers/micro19-gao.pdf
<nickoe> Is there any recommendation on how to maintain a project that is using litex stuff?
<nickoe> I mean, how to structure the repos
<_florent_> IIRC ComputeDRAM has been tested with LiteDRAM
<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-L307
rj has quit [Client Quit]
<_florent_> with the --trace args you get all the signals of the design, so the user_led should be there
<nickoe> It looks like the modules I get are VexRiscv, sd_link, sd_phy
<_florent_> you should see your signals at the top level
<nickoe> are they are in the TOP
<nickoe> I mean "ahhh"
rj has joined #litex
<nickoe> Thank you for the tips!
cr1901_modern1 has quit [Quit: Leaving.]
<_florent_> nickoe: for example project managed externally, you can look at:
<_florent_> There are just some examples, you can also find useful resources in the Wiki:
<nickoe> yay, I can see the "rolling" leds for the LED chanser 2s sim :D
cr1901_modern has joined #litex
<Finde> _florent_ is correct about ComputeDRAM
<mithro> Is the ComputeDRAM in a public repo anywhere?
rj has quit [Ping timeout: 240 seconds]
rj has joined #litex
Bertl is now known as Bertl_oO
rj has quit [Ping timeout: 240 seconds]
rj has joined #litex
kgugala_ has joined #litex
kgugala has quit [Ping timeout: 252 seconds]
rj has quit [Ping timeout: 240 seconds]
rj has joined #litex
<nickoe> _florent_: Can I filter the vcd at trace time, such that I don't get some modules dumped?
<nickoe> I mean together with the --trace?
<_florent_> it's possible to configure the trace depth with Verilator, but not sure this is exposed in LiteX
<_florent_> Not sure for tracing only selected modules with Verilator, but at least I know this is not supported in LiteX...
<nickoe> OK, thanks.
kgugala has joined #litex
kgugala_ has quit [Ping timeout: 265 seconds]
rj has quit [Ping timeout: 240 seconds]
d_olex has joined #litex
rj has joined #litex
kgugala has quit [Ping timeout: 260 seconds]
kgugala has joined #litex
lkcl has quit [Ping timeout: 240 seconds]
<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?
<nickoe> My project being MIT licensed
rj has quit [Ping timeout: 240 seconds]
lkcl has joined #litex
rj has joined #litex
Melkhior has quit [Quit: Connection closed]
<sajattack[m]> <_florent_ "sajattack: Sorry, I'll look at t"> yay
<Finde> mithro: no not yet, the original version was based on softmc which is kind of a strange project
<Finde> don't know all the details of the current dev status with litedram
Melkhior has joined #litex
rj has quit [Ping timeout: 240 seconds]
rj has joined #litex
<_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.
<nickoe> Ok, cool
<nickoe> But I am slightly lost with _MyDMA()
<nickoe> which is based directly from the litex_sim becuase I had trouble tracing stuff initially
Melkhior has quit [Quit: Connection closed]
rj has quit [Ping timeout: 240 seconds]
rj has joined #litex
rj has quit [Ping timeout: 240 seconds]
rj has joined #litex
<nickoe> Hmm, how long does it take for the simulator to laod a 4k file form tftp boot from a boot.json?
rj has quit [Remote host closed the connection]
rj has joined #litex
<nickoe> mm, 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!
<nickoe> mmm, it just .mmm, does not seem to like that second file
<nickoe> or location
<nickoe> Are there certain requirements for the file? maybe size boundaries?
<nickoe> hmm, no, my file is exactly 4kiB
pftbest has quit [Remote host closed the connection]
pftbest has joined #litex
rj has quit [Ping timeout: 240 seconds]
rj has joined #litex
rj has quit [Ping timeout: 240 seconds]
rj has joined #litex
lf has quit [Ping timeout: 250 seconds]
lf has joined #litex
rj has quit [Ping timeout: 240 seconds]