*** tpb has joined #tomu | 00:00 | |
*** landhome has joined #tomu | 00:49 | |
xobs | pizzapim: litex magic. Perhaps we need another section. Maybe one that involves a random number generator? | 00:56 |
---|---|---|
xobs | To 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 dict | 00:58 |
xobs | Here is an example of adding a submodule: https://github.com/xobs/fomu-captouchtest/blob/17e22cfa95596d0a8f36f773f761e8a246d79f06/captouchtest.py#L185 | 00:59 |
tpb | Title: fomu-captouchtest/captouchtest.py at 17e22cfa95596d0a8f36f773f761e8a246d79f06 · xobs/fomu-captouchtest · GitHub (at github.com) | 00:59 |
xobs | Which is in the csr map: https://github.com/xobs/fomu-captouchtest/blob/master/captouchtest.py#L100 | 01:00 |
tpb | Title: fomu-captouchtest/captouchtest.py at master · xobs/fomu-captouchtest · GitHub (at github.com) | 01:00 |
xobs | Which inherits from both Module and AutoCSR: https://github.com/xobs/fomu-captouchtest/blob/17e22cfa95596d0a8f36f773f761e8a246d79f06/rtl/sbwarmboot.py#L6 | 01:00 |
tpb | Title: fomu-captouchtest/sbwarmboot.py at 17e22cfa95596d0a8f36f773f761e8a246d79f06 · xobs/fomu-captouchtest · GitHub (at github.com) | 01:00 |
xobs | vesim: you'd instantiate your SB_LUT4 like this: https://github.com/xobs/fomu-captouchtest/blob/17e22cfa95596d0a8f36f773f761e8a246d79f06/rtl/sbwarmboot.py#L51 | 01:02 |
tpb | Title: fomu-captouchtest/sbwarmboot.py at 17e22cfa95596d0a8f36f773f761e8a246d79f06 · xobs/fomu-captouchtest · GitHub (at github.com) | 01:02 |
*** emeb has quit IRC | 01:03 | |
xobs | vesim: 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#L188 | 01:04 |
tpb | Title: litex/common.py at 8ba204c76f3fcfb018619f2ebc639c5485a6a55a · enjoy-digital/litex · GitHub (at github.com) | 01:04 |
xobs | gurke_: yes, that's how you'd update it. Strange you get one pin that behaves differently. | 01:06 |
vesim | xobs: thanks, i will try to do that later | 01:19 |
vesim | right now I try to implement gadgetfs in tinyusb, to make debugging easier | 01:20 |
vesim | gadgetfs with dummy_hcd can be used to "emulate" real usb devices on linux :P | 01:21 |
*** landhome has quit IRC | 02:00 | |
*** xkapastel has joined #tomu | 02:53 | |
*** landhome has joined #tomu | 03:02 | |
*** CarlFK has joined #tomu | 03:30 | |
*** coderobe has quit IRC | 07:14 | |
*** xkapastel has quit IRC | 08:03 | |
*** cedric has quit IRC | 08:48 | |
*** cedric has joined #tomu | 08:51 | |
*** cedric has joined #tomu | 08:51 | |
gurke_ | xobs: i get the same behavior on the second fomu (pad 2 goes from 0x00->0x01 when touching) | 09:22 |
xobs | gurke_: production board or hacker board? | 09:23 |
gurke_ | xobs: production | 09:23 |
gurke_ | i have another interesting effect | 09:23 |
gurke_ | if i touch pad 1 and 2 together, it behaves normally | 09:24 |
gurke_ | but goes up much higher | 09:24 |
xobs | Captouch 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 values | 09:25 |
gurke_ | also, barefeet gives higher values ;-) | 09:26 |
xobs | Pad 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 |
xobs | Oh, 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 reproducible | 09:29 |
xobs | Specificly these guys: https://github.com/im-tomu/fomu-hardware/blob/master/archive/pvt/reference/ESD-D5V0L1B2LP3.pdf | 09:29 |
tpb | Title: fomu-hardware/ESD-D5V0L1B2LP3.pdf at master · im-tomu/fomu-hardware · GitHub (at github.com) | 09:29 |
gurke_ | ah, cool, thx | 09:30 |
xobs | So it should be good to 30 kV | 09:31 |
*** xkapastel has joined #tomu | 09:31 | |
xobs | So that might have something to do with it: https://github.com/xobs/fomu-captouchtest/blob/master/rtl/fomucaptouch.py#L120 | 09:33 |
tpb | Title: fomu-captouchtest/fomucaptouch.py at master · xobs/fomu-captouchtest · GitHub (at github.com) | 09:33 |
xobs | I feel like someone who's good at Python could shrink this down and remove a lot of repetition. | 09:34 |
xobs | There, does that work better for you? | 09:39 |
gurke_ | what? | 09:40 |
xobs | The latest fomu-captouchtest with https://github.com/xobs/fomu-captouchtest/commit/70aefd3a10b0ad91cb0ab5deca2d20b77d290a1f applied | 09:41 |
tpb | Title: rtl: fomucaptouch: fix touch2 counter · xobs/fomu-captouchtest@70aefd3 · GitHub (at github.com) | 09:41 |
gurke_ | uhm, sorry, forgot to pull... :-> - just a second | 09:42 |
gurke_ | yes, that fixes it | 09:46 |
gurke_ | i now get values between 0x1* and 0x2* on all pads | 09:46 |
gurke_ | for both PVTs | 09:46 |
xobs | Good, 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 early | 09:47 |
xobs | I guess I could just code up a schmitt trigger and have it fire >0x20, and release at <0x08 | 09:47 |
gurke_ | sounds sensible | 09:48 |
gurke_ | i'll head of for breakfast | 09:48 |
*** cedric has quit IRC | 11:59 | |
*** cedric has joined #tomu | 11:59 | |
*** cedric has joined #tomu | 11:59 | |
*** cedric has quit IRC | 12:04 | |
*** cedric has joined #tomu | 12:10 | |
*** cedric has joined #tomu | 12:10 | |
*** cedric has quit IRC | 12:57 | |
*** cedric has joined #tomu | 13:02 | |
*** cedric has joined #tomu | 13:02 | |
*** xantoz has quit IRC | 13:27 | |
*** xantoz has joined #tomu | 13:28 | |
*** coderobe has joined #tomu | 14:10 | |
*** cedric has quit IRC | 14:32 | |
*** cedric has joined #tomu | 14:36 | |
*** cedric has joined #tomu | 14:36 | |
*** xkapastel has quit IRC | 16:53 | |
*** coderobe has quit IRC | 17:52 | |
*** coderobe has joined #tomu | 17:54 | |
*** coderobe has quit IRC | 17:59 | |
*** coderobe has joined #tomu | 18: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 |
mithro | xobs: https://twitter.com/timonsku/status/1213860669482840065?s=20 | 18:14 |
*** CarlFK has quit IRC | 19:51 | |
mithro | xobs: https://travis-ci.com/im-tomu/fomu-workshop/builds/143155685 | 20:35 |
tpb | Title: Travis CI - Test and Deploy with Confidence (at travis-ci.com) | 20:35 |
mithro | Lots of horrible hacks | 20:35 |
*** CarlFK has joined #tomu | 20:45 | |
*** techman83 has quit IRC | 22:01 | |
*** techman83 has joined #tomu | 22:02 | |
futarisIRCcloud | https://twitter.com/timonsku/status/1213479459375980544 | 22:41 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!