Tuesday, 2020-11-10

*** tpb has joined #litex00:00
*** lf has quit IRC00:56
*** lf has joined #litex00:56
*** andrewb1999 has joined #litex01:03
*** CarlFK has quit IRC01:20
*** CarlFK has joined #litex01:21
*** a314 has quit IRC01:23
*** futarisIRCcloud has joined #litex01:30
*** a314 has joined #litex01:37
*** lkcl has quit IRC01:54
*** lkcl has joined #litex02:07
*** Degi has quit IRC02:25
*** Degi has joined #litex02:25
*** lf has quit IRC02:44
*** lf has joined #litex02:49
*** FFY00 has quit IRC02:54
*** FFY00 has joined #litex02:55
*** apolkosnik has joined #litex03:30
*** apolkosnik[m] has joined #litex03:31
*** apolkosnik has left #litex03:31
*** lkcl has quit IRC04:06
*** lkcl has joined #litex04:19
*** futarisIRCcloud has quit IRC04:19
*** promach3 has joined #litex05:21
promach3Is it technically feasible to use litescope to check litedram signals using usb on orangecrab ?05:22
*** kgugala_ has joined #litex05:39
*** kgugala has quit IRC05:43
*** andrewb1999 has quit IRC05:46
*** lkcl has quit IRC06:05
*** kgugala has joined #litex06:15
*** kgugala_ has quit IRC06:18
*** lkcl has joined #litex06:18
*** lkcl has quit IRC07:25
*** kgugala has quit IRC07:28
*** kgugala has joined #litex07:28
*** lkcl has joined #litex07:39
*** kgugala_ has joined #litex07:43
*** lkcl has quit IRC07:45
*** kgugala has quit IRC07:46
*** lkcl has joined #litex07:58
*** lkcl has quit IRC08:17
*** lkcl has joined #litex08:28
*** key2 has quit IRC10:25
*** key2 has joined #litex10:26
st-gourichon-fidHi! We wish, from a microcontroller running C code, to access a wishbone bus through a SPI bridge connecting our microcontroller to the bus.10:40
*** acathlaway is now known as acathla10:40
*** acathla has joined #litex10:40
st-gourichon-fidWe 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?10:41
tpbTitle: wishbone_bridge - Rust (at docs.rs)10:41
zypthe rust implementation talks to this: https://github.com/xobs/spibone10:42
zypprotocol is documented there10:42
st-gourichon-fidThanks zyp, looking.10:43
st-gourichon-fidAh, this is really simple. Thanks!10:44
st-gourichon-fidzyp, is the protocole the same on UART as on SPI?   "01 | AA | AA | AA | AA" etc?10:54
zypno10:58
st-gourichon-fidmmh. Thanks, any doc?10:59
st-gourichon-fidIt looks like including SPI-bridge-to-wishbone on our design costs much more gates than a UART-bridge-to-wishbone.11:00
zypnot sure, I went digging in the source some months ago: https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/uart.py#L38011:00
st-gourichon-fidMkay, trying to figure out from the hardware description... https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/uart.py#L257 class Stream2Wishbone.11:03
st-gourichon-fidThanks. :-)11:03
st-gourichon-fidzyp, thanks, we think we figured out the UART wishbone bridge protocol from this description.11:16
st-gourichon-fidMini 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.11:31
st-gourichon-fidHmm, 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#L27011:37
st-gourichon-fidHmm, 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?11:47
st-gourichon-fidBut it's a breaking change of protocol.12:16
st-gourichon-fidI mean, changing 1 2 3 4 to 0 1 2 3 would be a breaking change.12:16
*** lkcl has quit IRC14:38
*** lkcl has joined #litex14:51
*** Degi has quit IRC18:03
*** andrewb1999 has joined #litex18:24
*** kgugala_ has quit IRC18:28
*** kgugala has joined #litex18:28
*** Degi has joined #litex18:30
*** a1k0n_ has quit IRC21:17
*** kgugala_ has joined #litex21:20
*** kgugala has quit IRC21:23
*** kgugala has joined #litex21:23
*** kgugala_ has quit IRC21:26
*** tumbleweed has quit IRC21:39
*** a1k0n_ has joined #litex21:46
*** _franck_ has quit IRC22:53
*** _franck_ has joined #litex22:53
*** anish56 has joined #litex23:41
*** lkcl has quit IRC23:47

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