Thursday, 2020-11-12

*** tpb has joined #litex00:00
*** CarlFK has quit IRC00:37
*** lf has quit IRC00:53
*** lf has joined #litex00:53
*** Degi has quit IRC02:20
*** Degi has joined #litex02:21
*** kgugala_ has joined #litex06:18
*** kgugala has quit IRC06:21
*** kgugala_ has quit IRC07:45
*** kgugala has joined #litex07:45
*** CarlFK has joined #litex10:01
*** a314 has quit IRC11:19
*** a314 has joined #litex11:29
*** lkcl has quit IRC12:13
*** lkcl has joined #litex12:27
acathlaxobs, I need your help with wishbone-tool and the protocol over uart. I try to write something in C and I try to understand the protocol.16:08
acathlaWhen I do wishbone-tool 0x12345678, It sends over the serial port : 0x02 01 04 8D 15 9E16:09
xobsacathla: it's late here, so I don't know that I'll be up much later. But probably what you want is `wishbone-tool -s wishbone --uart /dev/ttyUSB0`, which will start up a wishbone server on port 1234.16:09
acathla02 is the command, 01 is the size16:09
xobsThen you can use https://github.com/litex-hub/wishbone-utils/tree/master/libeb-c to write something in C.16:09
acathlaI'm sure you have the simple anszer16:09
xobsOr... let's see, what protocol is it using...16:09
acathlaWhy would the address be so... strange, and not the data.16:10
xobsIt's shifted left by two bits, because Wishbone is a 32-bit bus.16:11
xobsEr, shifted right.16:11
xobshttps://github.com/litex-hub/wishbone-utils/blob/master/wishbone-tool/crates/bridge/src/bridges/uart.rs#L282-L28816:11
acathlaHum, there should be something else, endian conversion or something. Thanks16:17
xobsYes, addresses are big endian.16:21
*** Bk6 has joined #litex16:30
*** Krickit has joined #litex16:31
acathlaOh, ok, I was just reading the bits in the logic analyzer and it's LSB first16:32
Krickithi everybody, can you tell me what are mem.init, mem_2.init and mem_1.init generated ?16:33
*** Krickit has quit IRC17:37
*** kgugala_ has joined #litex17:46
*** kgugala has quit IRC17:50
*** kgugala_ has quit IRC17:52
*** kgugala has joined #litex17:52
*** FFY00 has quit IRC17:54
*** FFY00 has joined #litex17:55
somloKrickit: they are binary blobs representing the bios (mem.init) and a few other memory regions that should be built into the fpga bitstream for when the SoC "wakes up" after being programmed into the fpga18:21
somlooh well, he's disconnected :)18:23
*** lkcl has quit IRC19:48
*** lkcl has joined #litex20:02
*** midnight has quit IRC23:57

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