<_florent_>
zyp: not sure we have numbers for LiteScope over Wishbone Bridge, but it's indeed a bit slow and there is a bottleneck that needs to be investigated. I could have a look, but using Etherbone will indeed be a lot faster.
HoloIRCUser has joined #litex
HoloIRCUser1 has quit [Ping timeout: 246 seconds]
HoloIRCUser1 has joined #litex
HoloIRCUser has quit [Ping timeout: 256 seconds]
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
FFY00 has quit [Remote host closed the connection]
FFY00 has joined #litex
FFY00 has quit [Max SendQ exceeded]
FFY00 has joined #litex
CarlFK has quit [Read error: Connection reset by peer]
FFY00 has quit [Remote host closed the connection]
CarlFK has joined #litex
FFY00 has joined #litex
CarlFK has quit [Ping timeout: 256 seconds]
Skip has joined #litex
HoloIRCUser has joined #litex
HoloIRCUser1 has quit [Ping timeout: 250 seconds]
key2 has quit [Ping timeout: 245 seconds]
key2 has joined #litex
<john_k[m]>
trying to write my first module, and running into issues with tests - I'm trying to use the write() funciton of CSRStorage from my test, like `yield dut.bitbang.write(value)` but it's erroring out with "ValueError: ('Invalid simulator exec/eval request', <generator object CSRStorage.write at 0x7f7bb3186f90>)". Documentation for write suggests that it's meant to be used in simulation
gojimmypi has quit [Quit: Connection closed for inactivity]
Skip has quit [Remote host closed the connection]
<_florent_>
john_k[m]: your issue is probably that you have to use "yield from" and not "yield"
<john_k[m]>
florent: thanks will try that
<john_k[m]>
magic, many thanks
FFY00 has quit [Remote host closed the connection]
FFY00 has joined #litex
CarlFK has quit [Ping timeout: 256 seconds]
<somlo>
_florent_: do you know if anyone (successfully) uses 16 or 32 bpw with SPI and Linux?
<somlo>
I built LiteX with SPI data width 16 for the sdcard, and 1. the bios doesn't work anymore for booting (which is to be expected, as it's hardcoded for 8)
<somlo>
but 2. all the transfers linux tries to initiate are still only 8 bits, even though (via DT) I told the driver that the max. bpw is now 16
<somlo>
and the result is that "it doesn't work" in Linux either (at least because I suspect LiteX is trying to send 16 bits, but linux only expects 8 at a time in the driver (it can't do mixed 8-bit MOSI with 16bit MISO)
<somlo>
so I'm wondering if at this point it's realistic to expect it to work with 16 or 32 bits (whenever this happens, it tends to be because I missed something :)
<somlo>
_florent_: I guess the "impedance mismatch" comes from Linux assuming that a max-bpw allows falling back to a lower bpw value (e.g., if we support *up to* 16 we can *still* do 8-bit-at-a-time transmissions)
<somlo>
but at least I can ensure the driver can handle fallback to lower bpw than the max. width of the gateware (which wasn't in the original linux-on-litex-vexriscv driver)
<somlo>
hmmm... so I'm writing `8` to the MSB of the control register before starting each individual transfer (on a 16-bit wide litespi gateware), but no luck...
<somlo>
... but leave the DT node set to 8bit max-bpw, it *should* work (since the driver will set the upper half of the control bit to 8), but still doesn't
CarlFK has joined #litex
spacekookie has quit [Quit: No Ping reply in 60 seconds.]