_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
lf has quit [Ping timeout: 244 seconds]
lf has joined #litex
andrewb1999 has joined #litex
CarlFK has quit [Quit: Leaving.]
CarlFK has joined #litex
a314 has quit [Ping timeout: 260 seconds]
futarisIRCcloud has joined #litex
a314 has joined #litex
lkcl has quit [Ping timeout: 258 seconds]
lkcl has joined #litex
Degi has quit [Ping timeout: 246 seconds]
Degi has joined #litex
lf has quit [Remote host closed the connection]
lf has joined #litex
FFY00 has quit [Ping timeout: 240 seconds]
FFY00 has joined #litex
apolkosnik has joined #litex
apolkosnik[m] has joined #litex
apolkosnik has left #litex [#litex]
lkcl has quit [Ping timeout: 260 seconds]
lkcl has joined #litex
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
promach3 has joined #litex
<promach3> Is it technically feasible to use litescope to check litedram signals using usb on orangecrab ?
kgugala_ has joined #litex
kgugala has quit [Ping timeout: 240 seconds]
andrewb1999 has quit [Ping timeout: 264 seconds]
lkcl has quit [Ping timeout: 260 seconds]
kgugala has joined #litex
kgugala_ has quit [Ping timeout: 260 seconds]
lkcl has joined #litex
lkcl has quit [Ping timeout: 260 seconds]
kgugala has quit [Quit: -a- Connection Timed Out]
kgugala has joined #litex
lkcl has joined #litex
kgugala_ has joined #litex
lkcl has quit [Ping timeout: 246 seconds]
kgugala has quit [Ping timeout: 265 seconds]
lkcl has joined #litex
lkcl has quit [Ping timeout: 272 seconds]
lkcl has joined #litex
key2 has quit [Read error: Connection reset by peer]
key2 has joined #litex
<st-gourichon-fid> Hi! We wish, from a microcontroller running C code, to access a wishbone bus through a SPI bridge connecting our microcontroller to the bus.
acathlaway is now known as acathla
acathla has quit [Changing host]
acathla has joined #litex
<st-gourichon-fid> We find https://docs.rs/wishbone-bridge/1.1.0/wishbone_bridge/ about a Rust implementation. We couldn't find plain documentation or a C implementation. Is there one somewhere? What do you recommend?
<tpb> Title: wishbone_bridge - Rust (at docs.rs)
<zyp> the rust implementation talks to this: https://github.com/xobs/spibone
<zyp> protocol is documented there
<st-gourichon-fid> Thanks zyp, looking.
<st-gourichon-fid> Ah, this is really simple. Thanks!
<st-gourichon-fid> zyp, is the protocole the same on UART as on SPI? "01 | AA | AA | AA | AA" etc?
<zyp> no
<st-gourichon-fid> mmh. Thanks, any doc?
<st-gourichon-fid> It looks like including SPI-bridge-to-wishbone on our design costs much more gates than a UART-bridge-to-wishbone.
<zyp> not sure, I went digging in the source some months ago: https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/uart.py#L380
<st-gourichon-fid> Mkay, trying to figure out from the hardware description... https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/uart.py#L257 class Stream2Wishbone.
<st-gourichon-fid> Thanks. :-)
<st-gourichon-fid> zyp, thanks, we think we figured out the UART wishbone bridge protocol from this description.
<st-gourichon-fid> Mini UART-wishbone doc: Client sends [one byte to state "command" 01 02 03 or 04], then one byte "length", then 4 bytes "address", then the data, oh there's something strange in the hardware description.
<st-gourichon-fid> Hmm, ah I got it. bytes_count is automatically stored on exactly the number of bits necessary so that it gets reset to zero "automatically". Nifty! https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/uart.py#L270
<st-gourichon-fid> Hmm, looks like there is a missed opportunity of saving a few gates here. Had CMD_*BURST* been implemented with codes 0 1 2 3, extracting simple bits would have been enough to decode READ=bit0 INCR=bit1. With values 1 2 3 4 code says "If((cmd == CMD_WRITE_BURST_INCR) | (cmd == CMD_WRITE_BURST_FIXED)," etc etc which looks like it consumes more gates. Can someone confirm?
<st-gourichon-fid> But it's a breaking change of protocol.
<st-gourichon-fid> I mean, changing 1 2 3 4 to 0 1 2 3 would be a breaking change.
lkcl has quit [Ping timeout: 246 seconds]
lkcl has joined #litex
Degi has quit [Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in]
andrewb1999 has joined #litex
kgugala_ has quit [Quit: -a- Connection Timed Out]
kgugala has joined #litex
Degi has joined #litex
a1k0n_ has quit [Ping timeout: 264 seconds]
kgugala_ has joined #litex
kgugala has quit [Ping timeout: 260 seconds]
kgugala has joined #litex
kgugala_ has quit [Ping timeout: 246 seconds]
tumbleweed has quit [Quit: leaving]
a1k0n_ has joined #litex
_franck_ has quit [Quit: Ping timeout (120 seconds)]
_franck_ has joined #litex
anish56 has joined #litex
lkcl has quit [Ping timeout: 264 seconds]