Saturday, 2021-05-01

*** tpb has joined #litex00:00
*** pftbest has joined #litex00:13
*** pftbest has quit IRC00:18
*** Degi has quit IRC00:19
*** Degi has joined #litex00:20
*** cjearls has joined #litex00:37
*** cjearls has quit IRC00:42
*** Emantor has quit IRC01:20
*** Emantor has joined #litex01:20
*** TMM has quit IRC05:13
*** TMM has joined #litex05:23
*** Bertl_oO is now known as Bertl_zZ06:11
*** pftbest has joined #litex07:01
*** TMM has quit IRC08:32
*** TMM has joined #litex08:32
nickoezyp: Hmm! Can it be because I am trying to access the memory in the very first cycles that it does not work? Maybe the memory is not initialized, even in the sim?09:14
*** pftbest has quit IRC09:16
zypmaybe, I've never tried simulating memory09:16
nickoeI just tried to use the DMAReader from the from litevideo.output.core import DMAReader, and I appear to see the same issue of zero data09:17
nickoelike this https://dpaste.com/FCTJ9HLQE.txt09:22
nickoeI mean, that is how I did it initally09:22
nickoewhich does not appear to work09:22
*** CarlFK has quit IRC09:30
*** j4cbo has quit IRC09:30
*** joseng has quit IRC09:30
*** benh has quit IRC09:30
*** pftbest has joined #litex09:35
*** j4cbo has joined #litex09:36
*** CarlFK has joined #litex09:37
*** joseng has joined #litex09:37
*** benh has joined #litex09:37
*** pftbest has quit IRC09:38
*** pftbest has joined #litex09:40
nickoemmm, please remind me how to make the litex_server connect to my simulation10:06
nickoeI am trying litex_server --udp but I get Exception: Unable to probe Etherbone server at 192.168.1.50.10:06
nickoeI have --with-etherbone for my sim10:08
nickoezyp: Ok, I now got some data. I made it trace on demand from the demo app.. and when I write ot the CSR storage bit i will start the dma and trace it10:24
nickoeit appears I have the correct data initally, but I may not be dumping the data correctly in the demo app https://i.snipboard.io/7CrtjT.jpg10:49
nickoeI am not exactly sure I understand why there is that much spacing between the bytes10:53
*** pftbest has quit IRC12:20
*** pftbest has joined #litex12:23
*** TMM has quit IRC12:44
*** TMM has joined #litex12:44
*** pftbest has quit IRC12:55
*** pftbest has joined #litex12:56
nickoeCan gtkwave count transistions, like or example if I quicly want to count cyles on a signal without having to calculate it from the time?13:15
*** Bertl_zZ is now known as Bertl13:34
MelkhiorHello all,13:44
MelkhiorGot around reimplementing the PS/2 host controller in Migen to make it easier to use in Litex.Not sure how to 'properly' integrate it in Litex (namespace, which repository or in its own, ...) and that's my first Migen code so it's probably quite ugly. But it enables me to have a proper text console when using a framebuffer in Linux :-)13:44
MelkhiorRepo with current code, Linux driver, and example of how I intergrated it in my board are in: https://github.com/rdolbeau/PS2forLitex13:44
MelkhiorAny advice on integration/cleanup/improvement welcome!13:45
nickoeMelkhior: cool, but I have no idea where to contribute that13:53
nickoeMelkhior: Do you have a video demo?13:54
nickoeasuming you tested it on hw13:54
Melkhiorno video sorry, tested on my Qmtech Wukong (cheap chinese-made Artix-7 100T board) with a digilent PS/2 Pmod and an old PS/2 keyboard I have lying around13:57
nickoezyp: Do you know how I can make better use of the time with the LiteDRAMDMAReader()?   I just get four bytes at a time here  https://i.snipboard.io/FDtqxm.jpg13:57
Melkhioruntested with a mouse because I haven't found a PS/2 mouse i my archives (the PS/2 keyboard was for older servers, no need for a matching mouse)13:58
Melkhiorlinux says:13:59
Melkhiorbuildroot:~> dmesg | grep kbd13:59
Melkhior[    2.839894] litex_ps2 f0004800.ps2kbd: base (ptrval), irq 313:59
Melkhior[    3.710142] input: AT Raw Set 2 keyboard as /devices/platform/soc/f0004800.ps2kbd/serio0/input/input013:59
*** Bertl is now known as Bertl_oO16:05
*** pftbest has quit IRC16:15
nickoemmm, how do I do bitwise operations on signals  in migen?16:35
nickoeslike OR a slice together with another signal16:36
*** pftbest has joined #litex16:37
nickoeI tried to make this, probably ridiculously complex way of doing this, https://dpaste.com/FDRXYC66G.txt ... which does not work as expected.16:41
nickoehttps://i.snipboard.io/HcvTFZ.jpg16:42
nickoeIt is about the two orange sigals, I wanted to concatenate the single bytes into a 32 bit signal.16:42
nickoeI clearly failed at it so far.16:43
nickoemmm, I think I got it, missing the MSB16:57
nickoein the slice16:57
Melkhior@nickoe yes in Migen they are Python slice so the upper bound is not included17:03
MelkhiorI got bit by that one as well17:03
nickoeSo I got the indexing right now, but I don17:03
nickoedon't understand why the other bits are set to zero when I just .eq a slice.17:04
Melkhiorand 'Cat' to concatenate is lsb->msb, reverse from verilog's '{}' notation17:04
MelkhiorI don't know enough migen to help sorry17:05
Melkhiormaybe try with NextValue and copying the old values ?17:05
MelkhiorNextValue(data, Cat(newdata[0:8], data[8:32]))17:06
Melkhiorto replace the low-order 8 bits?17:06
Melkhiorgood luck17:06
nickoehttps://i.snipboard.io/AQ58uT.jpg17:06
*** pftbest has quit IRC19:08
*** pftbest has joined #litex19:09
*** pftbest has quit IRC20:34
*** pftbest has joined #litex20:35
*** pftbest has joined #litex20:35
*** flammit has quit IRC20:44
*** mithro has quit IRC20:45
*** flammit has joined #litex20:45
*** mithro has joined #litex20:48
*** esden has quit IRC20:49
*** _florent_ has quit IRC20:49
*** ric96 has quit IRC20:49
*** tucanae47 has quit IRC20:49
*** mithro has quit IRC20:50
*** davidlattimore has quit IRC20:50
*** mithro has joined #litex20:51
*** tucanae47 has joined #litex20:51
*** ric96 has joined #litex20:51
*** _florent_ has joined #litex20:51
*** davidlattimore has joined #litex20:51
*** tannewt has quit IRC20:54
*** tcal has quit IRC20:54
*** ric96 has quit IRC20:54
*** guan has quit IRC20:54
*** guan has joined #litex20:55
*** esden has joined #litex20:55
*** flammit has quit IRC20:55
*** tannewt has joined #litex20:56
*** pdp7 has quit IRC20:56
*** ric96 has joined #litex20:56
*** flammit has joined #litex20:56
*** tcal has joined #litex20:56
*** pdp7 has joined #litex20:57
*** lf_ has joined #litex23:17
*** lf has quit IRC23:17
*** pftbest has quit IRC23:37
*** pftbest has joined #litex23:38
*** pftbest has joined #litex23:38

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