_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
Degi_ has joined #litex
Degi has quit [Ping timeout: 252 seconds]
Degi_ is now known as Degi
shenchen has quit [Remote host closed the connection]
nickoe has quit [Quit: Client closed]
geertu has quit [Ping timeout: 260 seconds]
acathla has quit [Ping timeout: 252 seconds]
geertu has joined #litex
acathla has joined #litex
FabM has joined #litex
FabM has quit [Changing host]
FabM has joined #litex
<pepijndevos[m]> Maybe try poking gowin...
nickoe has joined #litex
<nickoe> Is it possible to define pins wihout them being suffixed wiht the number as in:      ("io_in", 0, Pins(8)),   becomes "output reg [7:0] io_out0"
<nickoe> It gives me an exception when I do ("io_in", None, Pins(8)),
Brinx has quit [Remote host closed the connection]
Brinx has joined #litex
Brinx has quit [Ping timeout: 252 seconds]
Brinx has joined #litex
nickoe has quit [Quit: Client closed]
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #litex
indy has quit [Quit: ZNC 1.8.2 - https://znc.in]
indy has joined #litex
acathla has quit [Ping timeout: 244 seconds]
acathla has joined #litex
<_florent_> cr1901: for the TEC0117, the sipped SDRAM should be a MT48LC8M16A2
<_florent_> (that's what I got from Gowin)
acathla has quit [Ping timeout: 268 seconds]
indy has quit [Ping timeout: 252 seconds]
indy has joined #litex
indy has quit [Ping timeout: 268 seconds]
Brinx has quit [Remote host closed the connection]
Brinx has joined #litex
Brinx has quit [Remote host closed the connection]
Brinx has joined #litex
Brinx has quit [Remote host closed the connection]
Brinx has joined #litex
Brinx has quit [Remote host closed the connection]
Brinx has joined #litex
Brinx has quit [Remote host closed the connection]
Brinx_ has joined #litex
shenchen has joined #litex
Brinx_ has quit [Remote host closed the connection]
Brinx has joined #litex
Brinx has quit [Ping timeout: 260 seconds]
Brinx has joined #litex
<tnt> I'm a bit perplexed by some DMA performance results.
<tnt> I have a block generating fake data, one word of the data path width every N cycles (with N being programmable).
<tnt> That goes into a small fifo ( 2048 entries ) and then directly to the DMA sink.
<tnt> Measured internal loopback performance is 33 Gbps/s. I set my block to generate 17.06 Gbps.
<tnt> If I do a fwrite() of the buffer I receive to a file in RAMfs, I do measure 17.06G perf as expected (for as long as the mem isn't filled at least).
<tnt> If I remove the fwrite (no other changes), ... bandwidht goes to 0.16 Gbps.
<tnt> wtf ...
indy has joined #litex
Brinx has quit [Remote host closed the connection]
<cr1901> pepijndevos[m]: I might have to poke gowin... what email address did you use?
<cr1901> I suspect the DRAM module is different for the GW1NR-4
<pepijndevos[m]> danny@gowinsemi.com I think but... I'm not the one who got the timing info so maybe that should count as a negative advice
<cr1901> cc: _florent_ I suspect the DRAM module is different for the GW1NR-4 b/c it has a 32-bit mode as well as a 16-bit mode, and "plugging in" the MT48LC8M16 module only gets me a "half working" DRAM controller
<cr1901> (i.e. some of the memory stores/read succeed, some don't)
<tnt> You got a free RNG :)
<cr1901> Which would be great if I was designing an RNG, but I'm not :(
FabM has quit [Quit: Leaving]
shenchen has quit [Remote host closed the connection]
shenchen has joined #litex
Brinx has joined #litex
Brinx has quit [Remote host closed the connection]
Brinx has joined #litex
Johnsel has joined #litex
<tnt> fifo.sink is where I push data to right ?
<_florent_> tnt: yes (regarding fifo.sink)
<_florent_> cr1901: so 16-bit is working and 32-bit is not?
<_florent_> cr1901: you can also eventually try to use the PHYPadsReducer to only compile with some of the byte groups
<cr1901> _florent_: 16-bit isn't working properly either... using that gist you gave me a few days ago... (1 sec)
<cr1901> http://gopher.wdj-consulting.com:70/paste/2458da78-1f7e-49ef-9065-5f942639a47f.txt And this is the result of a write... it's like only 8 bits are being written and read back for each 32-bit word
<_florent_> cr1901: BTW, be sure to disable the L2 cache when testing this, it will ease understanding the behavior :)
nickoe has joined #litex
<nickoe> I will try again, not sure if I missed a reply.
<cr1901> _florent_: Ty for the tip, cache is disabled already :D
<nickoe> Is it possible to define pins wihout them being suffixed wiht the number as in: ("io_in", 0, Pins(8)), becomes "output reg [7:0] io_out0"
<nickoe> It gives me an exception when I do ("io_in", None, Pins(8)),
<_florent_> nickoe: If you only have one "io_out" in your design, not sure the numbered suffix will be added (I'm not on a dev machine so could check tomorrow)
<nickoe> yes, I have only one
<nickoe> even if I browse the simulated output
<nickoe> in gtkwave.
<nickoe> But for     ("sys_rst", 0, Pins(1)), it does not get added.
<nickoe> I am not sure why.
<nickoe> There is this that appears to handle it for the request
<nickoe> But ... now I see that I use request_all for those that get a suffix.
<nickoe> It goes into the exception here, https://github.com/enjoy-digital/litex/blob/ea8ba57eabc0d47fe98e8b45227c61491702d7a3/litex/build/generic_platform.py#L243 whre it breks and skips the ValueError
<_florent_> can you check if you also have this with just "request"
<_florent_> ?
<nickoe> mm, not sure what to break on there.
<nickoe> in request_all, r will be zero in len if I have the tuple as ("io_out", None, Pins(8))
<_florent_> None is probably not supported. What do you get with 0 and platform.request?
<nickoe> It goes into
<nickoe>         if number is None:
<nickoe>             resource_name = name
<nickoe> Ah, I see, r.append(self.request(name, len(r)))... that will sorta alwayus set a "non None" "number" in request
<nickoe> I guess this is not really pythonic, but I if patch it like so, it appears to do what I would have expected. https://dpaste.com/8N89G464Z
<tpb> Title: dpaste: 8N89G464Z (at dpaste.com)
<nickoe> or really, in the second part under "was" it was len(r) for the number variable.
<tnt> Anyone familiar with linux perf tuning maybe ? I get DMA bw dip every second on the dot ... (causing overflows)
<nickoe> I am not familiar with perf, but that is "the dot"?
<nickoe> ah, you mean _exactly_
<nickoe> ..
<tnt> yeah :)
<nickoe> When it has None, it does not appear to be in the self.matched list.
acathla has joined #litex
nickoe has quit [Quit: Client closed]
nickoe has joined #litex
Johnsel has quit [Ping timeout: 268 seconds]
Johnsel has joined #litex
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #litex