Tuesday, 2019-07-09

*** tpb has joined #tomu00:00
xobsmithro: you probably could use litex-buildenv by commenting out "import lxbuildenv" and then providing your own copies of the relevant support libraries.00:11
*** emeb has quit IRC00:44
*** AmosSam has left #tomu00:52
*** AmosSam has joined #tomu00:52
*** awe00 has quit IRC01:38
TomKeddiemithro: I kinda do this on my arty hack, everything comes from litex-buildenv except valentyusb which I've hacked in as "sys.path.append(os.path.dirname(os.path.realpath(__file__)) + "/../foboot/hw/deps/valentyusb")" - see https://github.com/TomKeddie/prj-litex/tree/master/arty/usb/hw03:38
tpbTitle: prj-litex/arty/usb/hw at master · TomKeddie/prj-litex · GitHub (at github.com)03:38
TomKeddiexobs: fyi we upstreamed your rgb driver today, https://github.com/timvideos/litex-buildenv/pull/16403:42
tpbTitle: platform/icebreaker: port rgb led driver from fomu by TomKeddie · Pull Request #164 · timvideos/litex-buildenv · GitHub (at github.com)03:42
mithroTomKeddie: Still need to fix -> https://github.com/m-labs/nmigen-boards/issues/2203:45
tpbTitle: Support silkscreen references (and other information) in platform definitions · Issue #22 · m-labs/nmigen-boards · GitHub (at github.com)03:45
TomKeddieNice idea, I can't touch this though.  BTW would like to see the descriptions as comments in the constraints file, very helpful for more advanced players.03:48
mithroTomKeddie: That was not the issue I meant to link03:48
TomKeddie(I wondered)03:48
mithroTomKeddie: https://github.com/im-tomu/foboot/issues/2003:48
tpbTitle: Rework code in SBLED so LED information is in the platform · Issue #20 · im-tomu/foboot · GitHub (at github.com)03:48
TomKeddieOh yes, I left the current draws parameters hard coded, will fix this. I didn't want to interrupt your merging today.  I was thinking a vector argument to init (like pads).03:50
mithroTomKeddie: It's more the color mapping issue03:51
TomKeddiemithro: oh, I see, the upstreamed platforms need updating to capture this information?03:52
mithroTomKeddie: I think what needs to be done is that the upstream platforms have "user_ledr_n", "user_ledg_n" and "user_ledb_n" and names on the right pins and then SBLED compares the mapping between colors and pins to generate the lookup matrix that xobs hardcoded...03:54
TomKeddiemithro: I'm not sure it's possible to map out everything, am I right that the there is no pin mux for the hardened block, to map the registers to pins?03:56
mithroTomKeddie: the map needs to be between the SB_LEDDA_IP PWM outputs and the SB_RGBA_DRV inputs if I understand correctly03:57
TomKeddiemithro: ah, that makes sense.  ok, will look at this.03:58
mithroFirst thing is to decode where the actual colors are connected on each platform03:59
TomKeddiemithro: the rgb block is kinda cemented in the fomu/foboot platform.  It occurred to me it would probably be easier to write an emulator for non-ice40 platforms then all the fomu material would just work on 7series and ecp5.04:00
mithroTomKeddie: would be a pretty easy block to write I think?04:02
TomKeddiemithro: that's what I'm thinking, might be easier to emulate than futz around with all the platform stuff.  I've already emulated "touch" on my arty port so that part of the (current) foboot s/w just works.04:03
TomKeddieThe part of foboot that is going to be hard is the pointers to the s/w.  Each chip has a very different image size so it's difficult to hard code them.  I was thinking that a table/metadata in the last page of the flash might give us what we want.04:06
xobsTomKeddie: wouldn't it make sense to have them as platform variables?04:17
TomKeddiexobs: but then the same code wouldn't run on each platform.04:23
TomKeddieI guess we could move the variables to registers but that burns precious fpga resources.04:23
TomKeddiexobs: or does the code contain all the variables (or syscalls) for all the platforms (which bloats the code).04:26
TomKeddiexobs: it seems to be s/w compatibility is desirable (from a maintenance pov) we need separate fpga images but running the same copy of micropython on all platforms would be cool.04:27
xobsI think Foboot 2.0 will need to incorporate a lot of feedback. Things such as syscalls to get those addresses. And a better USB stack.04:32
TomKeddieCool, we need to let you ship 1.0 first.04:36
xobsUp to 1.8.6 now!04:38
mithroxobs - was the csr / SRAM fix enough to unblock the spiflash stuff?04:40
TomKeddiemithro: has there been any thought given to building active low inversion into the signal definitions?  I'm think whitequark probably has this in nmigen?  I hate the _n stuff we should bury at the edge and mostly hide it from the logic (imho).04:48
mithroAsk whitequark is probably the best way to get an answer :-)04:49
TomKeddieDo we want to add it here or are we just biding our time until nmigen takes over the world?04:52
*** rohitksingh_work has joined #tomu04:53
xobsmithro: mostly unblocked, yes.05:17
xobsI'm using foboot-2.0 to test foboot-1.8.6. I'm developing the spi stuff on a pvt board.05:18
*** AmosSam has left #tomu09:13
*** AmosSam has joined #tomu09:14
*** AmosSam has left #tomu09:30
*** AmosSam has joined #tomu09:30
*** awe00 has joined #tomu09:45
*** TomKeddie has quit IRC10:16
*** TomKeddie has joined #tomu10:18
*** flammit has quit IRC12:04
*** jacobrosenthal has quit IRC12:04
*** ukembedded has quit IRC12:04
*** mithro has quit IRC12:04
*** Kitlith has quit IRC12:07
*** flammit has joined #tomu12:10
*** jacobrosenthal has joined #tomu12:10
*** ukembedded has joined #tomu12:10
*** mithro has joined #tomu12:10
*** Kitlith has joined #tomu12:10
*** rohitksingh_work has quit IRC13:11
*** AmosSam has left #tomu14:07
*** AmosSam has joined #tomu14:08
*** AmosSam has left #tomu14:10
*** AmosSam has joined #tomu14:10
*** awe00 has quit IRC14:51
*** ghanashyamprabhu has joined #tomu15:16
*** ghanashyamprabhu has quit IRC15:17
*** awe00 has joined #tomu15:17
*** rohitksingh has joined #tomu15:18
*** xkapastel has joined #tomu15:22
*** earthnative has quit IRC15:25
*** awe00 has quit IRC15:25
*** awe00 has joined #tomu15:46
*** earthnative has joined #tomu16:29
*** earthnative has quit IRC16:50
*** earthnative has joined #tomu17:30
*** xkapastel has quit IRC17:32
*** awe00 has quit IRC17:51
*** AmosSam has left #tomu17:52
*** AmosSam has joined #tomu17:52
*** AmosSam has left #tomu17:58
*** AmosSam has joined #tomu17:59
*** AmosSam has left #tomu18:10
*** AmosSam has joined #tomu18:10
*** rohitksingh has quit IRC18:37
*** AmosSam has left #tomu19:07
*** AmosSam has joined #tomu19:08
*** AmosSam has left #tomu19:18
*** AmosSam has joined #tomu19:18
*** awe00 has joined #tomu19:27
*** ovf has quit IRC19:58
*** ovf has joined #tomu19:59
*** awe00 has quit IRC20:07
*** awe00 has joined #tomu20:15
*** awe00 has quit IRC20:26
*** awe00 has joined #tomu20:35
mithroxobs: https://github.com/elmsfu/py_ice4020:47
tpbTitle: GitHub - elmsfu/py_ice40: python code to configure iCE40 FPGAs (at github.com)20:47
*** acathla has quit IRC21:57
*** acathla has joined #tomu21:57
*** AmosSam has left #tomu22:37
*** AmosSam has joined #tomu22:37
*** lathiat has quit IRC22:44
*** earthnative has quit IRC22:55
*** earthnative has joined #tomu23:15
*** awe00 has quit IRC23:53

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