Tuesday, 2021-03-23

*** tpb has joined #litex00:00
*** lf has quit IRC00:39
*** lf has joined #litex00:40
*** kgugala has joined #litex01:52
*** Degi_ has joined #litex02:35
*** Degi has quit IRC02:37
*** Degi_ is now known as Degi02:37
*** CarlFK has joined #litex03:35
*** Bertl is now known as Bertl_zZ04:38
*** _whitelogger_ has quit IRC04:42
*** _whitelogger_ has joined #litex04:44
*** kgugala_ has joined #litex05:47
*** kgugala has quit IRC05:50
*** rozpruwacz has joined #litex06:07
*** rozpruwacz has quit IRC06:21
*** rozpruwacz has joined #litex06:22
*** RaivisR has joined #litex07:15
*** kgugala_ has quit IRC07:16
*** kgugala has joined #litex07:16
*** RaivisR_ has joined #litex07:24
*** RaivisR has quit IRC07:28
*** RaivisR__ has joined #litex07:31
*** RaivisR_ has quit IRC07:35
*** rozpruwacz has quit IRC07:44
*** rozpruwacz has joined #litex07:59
*** RaivisR__ has quit IRC09:12
*** CarlFK has quit IRC09:45
*** Bertl_zZ is now known as Bertl10:39
*** smiteff has quit IRC11:40
*** simeonm has joined #litex11:41
*** shorne has quit IRC11:42
*** rozpruwacz has quit IRC12:08
*** rozpruwacz has joined #litex12:09
*** RaivisR has joined #litex14:03
*** rj has joined #litex14:08
keesjis there a place where the API are documented / I can link to ?14:16
keesjis there an example of a wishbone slave where I can act upon a wishbone write / CSR change14:17
_florent_keesj: sorry not yet, the example code/wiki/projects/tutorials have to be used for that. I'd like to free up more time to do this14:45
keesjwell. I am trying to add a little documentation to the wiki (on the adding verilog modules) but it would be nice to be able to link to the Instance documentation for example. I do a lot of grep/silversearch-ag google / search for example and ofthen that just works™ and it is all not that complicated (once you know what do do)14:49
_florent_Instance are from Migen/FHDL: https://m-labs.hk/migen/manual/fhdl.html#instances15:00
tpbTitle: The FHDL domain-specific language Migen 0.8.dev0 documentation (at m-labs.hk)15:00
*** shivampotdar has quit IRC15:35
*** CarlFK[m] has quit IRC15:35
*** [Matt]_ has quit IRC15:36
*** [Matt] has joined #litex15:36
*** disasm[m] has quit IRC15:36
*** shoragan[m] has quit IRC15:36
*** JJJollyjim has quit IRC15:36
*** jryans has quit IRC15:36
*** apolkosnik[m] has quit IRC15:37
*** leons has quit IRC15:37
*** xobs has quit IRC15:38
*** sajattack[m] has quit IRC15:38
*** Guest57260 has quit IRC15:38
*** promach3 has quit IRC15:38
*** simeonm has quit IRC15:44
*** simeonm has joined #litex15:46
*** simeonm has quit IRC15:50
*** simeonm has joined #litex15:51
*** shivampotdar has joined #litex15:54
*** disasm[m] has joined #litex16:00
*** shoragan[m] has joined #litex16:01
*** rozpruwacz has quit IRC16:02
*** JJJollyjim has joined #litex16:03
*** sajattack[m] has joined #litex16:05
*** jryans has joined #litex16:06
*** apolkosnik[m] has joined #litex16:08
*** CarlFK[m] has joined #litex16:08
*** xobs has joined #litex16:14
*** Guest57260 has joined #litex16:18
*** leons has joined #litex16:19
*** promach3 has joined #litex16:22
*** shorne has joined #litex16:33
*** Bertl is now known as Bertl_oO18:01
G33KatWorkdoes anybody here know a good sdcard sniffing project? I looked at litesdcard, but that's master only, but I want to tap the sd commands for something and I have a hard time thinking about how to get the data properly into the fpga. The clk is async to the internal fpga clock obviously and it is also only active when there is actual traffic from the device to the sd. I don't think I can oversample the18:51
G33KatWorkclock and command/data lines, because it's an emmc which is potentially very fast - I just don't know *how* fast yet18:51
keesjJust for sniffing.. Saleae Logic did work nicely for me (the pro version) emmc can be more painfull (more data lines/ ddr) (sigrok also had some code)18:54
G33KatWorkI need it in an fpga for fault injection18:54
G33KatWorkclk/cmd should be enough18:54
keesjA.. that is more my type of fun :P18:54
G33KatWorkI am just brainstorming right now and looking for existing stuff. I didn't even prepare the hardware yet18:55
G33KatWorkand I am not very experienced at writing my own fpga cores from scratch to be honest. talking to external components or sniffing stuff with an fpga has always been very painful to me...18:56
keesjI have previously worked on something like this and currently doing the same for nand flash (Mitm/TOCTOU type attacks)18:56
keesjis emulation an option? do you already know .. how you are going to/planning on performing the experiment on the hardware?18:58
G33KatWorkI have something a friend did in the past - even in migen, but that was 3 years ago, I personally never used it and I am not sure if it even works flawlessly. I think it had problems with capturing the data properly18:58
G33KatWorkemulation could work18:58
G33KatWorkhmm, there is micah's flipsyfat: https://github.com/scanlime/flipsyfat19:00
keesjyes.. it no all that trivial. the more I know about it the more things are getting difficult:) and for example for serious capture you can not just sample you will probably want to clock the recived using the eMMC clock line (I used the arty serdes2 ip for that)19:00
G33KatWorkyeah, that's exactly what I have no experience with...19:01
G33KatWorkI guess I'm going to read some xilinx serdes appnotes then :)19:02
keesjhmm I had flipyfat already bookmarked but forgot about it19:02
G33KatWorkI used it once to implement an LVDS input for a camera chip using 4x oversampling which was... quite an adventure, but I made it work in the end! (XPP523)19:03
keesjhttps://www.xilinx.com/support/documentation/application_notes/xapp1064.pdf19:03
keesjthis works but perhaps I am overreacting :P ( I was looking at snopping ddr3 back then)19:04
G33KatWorkhaha, ouch. okay19:04
*** CarlFK has joined #litex19:05
*** CarlFK has quit IRC19:05
G33KatWorkthe main thing that concerns me is that the clk might not be continous. so I need to be source-synchronous, but I don't have a continous data stream and need to lock and recover the clock more or less instantly19:06
keesjbut that app note I think is nice but I don't know well about the latency you are allowed to have on eMMC. (SPI flash for example is quite hard to emulate) https://github.com/osresearch/spispy19:06
G33KatWorkwith every transaction the phase is going to be different etc.19:06
keesjThe SPI protocol is difficult to emulate without specialized hardware since it has very demanding timing requirements.19:06
G33KatWorkyeah, I remember that SPI ROM emulator trammell hudson built for SPI flash emulation. he faced the same problems19:08
keesjbut anways.. getting the data in nicely is already great. for eMMC on startup all you need to do is give it a clock and it will spit out the data at your own rate19:08
keesj(the link is his work)19:08
G33KatWorkheh, overlooked that. thanks19:09
G33KatWorkI think I have enough to read now, thanks for the pointers!19:11
keesjwell. it looks like you probably know your way already .. good luck and also ask other people .. I am actually a dog19:11
G33KatWork:D19:11
keesjdo you publish you research somewhere?19:12
G33KatWorkyes, I will19:12
G33KatWorkI am not the only one working on that right now though19:12
G33KatWorkso that somebody else I am in contact with might be faster with a different approach ;)19:13
G33KatWorkbut it's a university thesis, so I'll let him do his stuff first until he's fed up or done19:13
keesjwe choose to use FPGA not because it is easy19:13
*** kgugala_ has joined #litex19:16
keesj_florent_: I updated https://github.com/enjoy-digital/litex/wiki/Reuse-A-Verilog-VHDL-nMigen-Core19:17
*** kgugala has quit IRC19:19
*** rj has quit IRC19:27
*** rj has joined #litex19:31
*** pdp7 has joined #litex20:21
*** peeps[zen] has joined #litex22:29
*** peepsalot has quit IRC22:30
*** peeps[zen] is now known as peepsalot22:31

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