Sunday, 2020-01-05

*** tpb has joined #tomu00:00
*** landhome has joined #tomu00:49
xobspizzapim: litex magic. Perhaps we need another section. Maybe one that involves a random number generator?00:56
xobsTo generate another block, you create a new Module, then in your main BaseSoC you add it with self.submodules, and then you add it as a csr to the csr_address dict00:58
xobsHere is an example of adding a submodule: https://github.com/xobs/fomu-captouchtest/blob/17e22cfa95596d0a8f36f773f761e8a246d79f06/captouchtest.py#L18500:59
tpbTitle: fomu-captouchtest/captouchtest.py at 17e22cfa95596d0a8f36f773f761e8a246d79f06 · xobs/fomu-captouchtest · GitHub (at github.com)00:59
xobsWhich is in the csr map: https://github.com/xobs/fomu-captouchtest/blob/master/captouchtest.py#L10001:00
tpbTitle: fomu-captouchtest/captouchtest.py at master · xobs/fomu-captouchtest · GitHub (at github.com)01:00
xobsWhich inherits from both Module and AutoCSR: https://github.com/xobs/fomu-captouchtest/blob/17e22cfa95596d0a8f36f773f761e8a246d79f06/rtl/sbwarmboot.py#L601:00
tpbTitle: fomu-captouchtest/sbwarmboot.py at 17e22cfa95596d0a8f36f773f761e8a246d79f06 · xobs/fomu-captouchtest · GitHub (at github.com)01:00
xobsvesim: you'd instantiate your SB_LUT4 like this: https://github.com/xobs/fomu-captouchtest/blob/17e22cfa95596d0a8f36f773f761e8a246d79f06/rtl/sbwarmboot.py#L5101:02
tpbTitle: fomu-captouchtest/sbwarmboot.py at 17e22cfa95596d0a8f36f773f761e8a246d79f06 · xobs/fomu-captouchtest · GitHub (at github.com)01:02
*** emeb has quit IRC01:03
xobsvesim: and here's an example of how you'd specify verilog parameters: https://github.com/enjoy-digital/litex/blob/8ba204c76f3fcfb018619f2ebc639c5485a6a55a/litex/build/lattice/common.py#L18801:04
tpbTitle: litex/common.py at 8ba204c76f3fcfb018619f2ebc639c5485a6a55a · enjoy-digital/litex · GitHub (at github.com)01:04
xobsgurke_: yes, that's how you'd update it. Strange you get one pin that behaves differently.01:06
vesimxobs: thanks, i will try to do that later01:19
vesimright now I try to implement gadgetfs in tinyusb, to make debugging easier01:20
vesimgadgetfs with dummy_hcd can be used to "emulate" real usb devices on linux :P01:21
*** landhome has quit IRC02:00
*** xkapastel has joined #tomu02:53
*** landhome has joined #tomu03:02
*** CarlFK has joined #tomu03:30
*** coderobe has quit IRC07:14
*** xkapastel has quit IRC08:03
*** cedric has quit IRC08:48
*** cedric has joined #tomu08:51
*** cedric has joined #tomu08:51
gurke_xobs: i get the same behavior on the second fomu (pad 2 goes from 0x00->0x01 when touching)09:22
xobsgurke_: production board or hacker board?09:23
gurke_xobs: production09:23
gurke_i have another interesting effect09:23
gurke_if i touch pad 1 and 2 together, it behaves normally09:24
gurke_but goes up much higher09:24
xobsCaptouch is hard.09:25
gurke_then again, if i touch 3+4 with one hand and 1 with the other, it 3+4 read out lower values09:25
gurke_also, barefeet gives higher values ;-)09:26
xobsPad 2 is right next to the RGB LED.  I'm using a first-gen Fomu PVT, so I wonder if board construction isn't causing the differences.09:28
xobsOh, sorry gurke_ , you asked about ESD.  Everything has ESD/TVS diodes.09:28
gurke_i also suspect it might have sth to do with h/w - as it seems reproducible09:29
xobsSpecificly these guys: https://github.com/im-tomu/fomu-hardware/blob/master/archive/pvt/reference/ESD-D5V0L1B2LP3.pdf09:29
tpbTitle: fomu-hardware/ESD-D5V0L1B2LP3.pdf at master · im-tomu/fomu-hardware · GitHub (at github.com)09:29
gurke_ah, cool, thx09:30
xobsSo it should be good to 30 kV09:31
*** xkapastel has joined #tomu09:31
xobsSo that might have something to do with it: https://github.com/xobs/fomu-captouchtest/blob/master/rtl/fomucaptouch.py#L12009:33
tpbTitle: fomu-captouchtest/fomucaptouch.py at master · xobs/fomu-captouchtest · GitHub (at github.com)09:33
xobsI feel like someone who's good at Python could shrink this down and remove a lot of repetition.09:34
xobsThere, does that work better for you?09:39
gurke_what?09:40
xobsThe latest fomu-captouchtest with https://github.com/xobs/fomu-captouchtest/commit/70aefd3a10b0ad91cb0ab5deca2d20b77d290a1f applied09:41
tpbTitle: rtl: fomucaptouch: fix touch2 counter · xobs/fomu-captouchtest@70aefd3 · GitHub (at github.com)09:41
gurke_uhm, sorry, forgot to pull... :-> - just a second09:42
gurke_yes, that fixes it09:46
gurke_i now get values between 0x1* and 0x2* on all pads09:46
gurke_for both PVTs09:46
xobsGood, so it's not a hardware defect after all.  Yay.09:47
gurke_sorry, didn't see your issue first - it's still a bit early09:47
xobsI guess I could just code up a schmitt trigger and have it fire >0x20, and release at <0x0809:47
gurke_sounds sensible09:48
gurke_i'll head of for breakfast09:48
*** cedric has quit IRC11:59
*** cedric has joined #tomu11:59
*** cedric has joined #tomu11:59
*** cedric has quit IRC12:04
*** cedric has joined #tomu12:10
*** cedric has joined #tomu12:10
*** cedric has quit IRC12:57
*** cedric has joined #tomu13:02
*** cedric has joined #tomu13:02
*** xantoz has quit IRC13:27
*** xantoz has joined #tomu13:28
*** coderobe has joined #tomu14:10
*** cedric has quit IRC14:32
*** cedric has joined #tomu14:36
*** cedric has joined #tomu14:36
*** xkapastel has quit IRC16:53
*** coderobe has quit IRC17:52
*** coderobe has joined #tomu17:54
*** coderobe has quit IRC17:59
*** coderobe has joined #tomu18:01
gurke_xobs: sorry for bringing this up again... in fooboot, foboot-main is not in use anywhere - or did I oversee something?18:07
mithroxobs: https://twitter.com/timonsku/status/1213860669482840065?s=2018:14
*** CarlFK has quit IRC19:51
mithroxobs: https://travis-ci.com/im-tomu/fomu-workshop/builds/14315568520:35
tpbTitle: Travis CI - Test and Deploy with Confidence (at travis-ci.com)20:35
mithroLots of horrible hacks20:35
*** CarlFK has joined #tomu20:45
*** techman83 has quit IRC22:01
*** techman83 has joined #tomu22:02
futarisIRCcloudhttps://twitter.com/timonsku/status/121347945937598054422:41

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!