Thursday, 2018-11-08

*** tpb has joined #timvideos00:00
*** swalladge has quit IRC00:45
*** mauz555 has quit IRC01:10
*** mauz555 has joined #timvideos01:11
*** mauz555 has quit IRC01:15
*** swalladge has joined #timvideos02:00
*** Kripton has quit IRC02:11
*** Kripton has joined #timvideos02:11
*** [d__d] has quit IRC03:37
*** sc00bz1 has joined #timvideos03:43
*** sc00bz has quit IRC03:46
*** mauz555 has joined #timvideos04:03
*** mauz555 has quit IRC04:08
_florent_felix: for (others =>'1') you can use 2**n-1 or Replicate(Signal(reset=1), n)06:38
_florent_felix_: for (others => '0'), you can use the fact that the signal take the reset value if not assigned06:40
_florent_felix_: so just assign the others bits06:40
_florent_felix_: to iterate over an array in a fsm, you can do something like **[n[i].eq(m[i] for i in range(8)]06:44
*** nickzoic has joined #timvideos07:15
*** mauz555 has joined #timvideos07:18
mithrocr1901_modern: nickzoic is looking at getting micropython booting on his tinyfpga-bx07:23
*** mauz555 has quit IRC07:23
mithrocr1901_modern: Could be a good tester for your tutorial :-P07:25
nickzoic*waves* G'day!07:28
cr1901_modernmithro: Cool. I'm writing the tutorial now (combined icebreaker and tinyfpga BX)07:33
mithrocr1901_modern: For the tinyfpga bx we need to include were to connect up the extra uart for now?07:34
cr1901_modernYes07:34
mithroWell, I'm heading to bed now07:37
cr1901_modernOkay, I have one last q before you leave (will privmsg)07:37
mithroOkay sure07:38
nickzoicI'll try and get it going ... if you've got a draft tutorial somewhere let me know, I'll send you feedback :-)07:41
cr1901_modernnickzoic: Please be on standby, still working on things07:56
Kamilionooh, fun, micropython.08:34
felix__florent_: thx08:34
felix_how would i implement the equivalent of a for generate statement in vhdl in migen?08:35
cr1901_modernnickzoic: https://github.com/timvideos/litex-buildenv/wiki/HowTo-FuPy-on-Icebreaker-and-TinyFPGA-BX Enjoy09:10
tpbTitle: HowTo FuPy on Icebreaker and TinyFPGA BX · timvideos/litex-buildenv Wiki · GitHub (at github.com)09:10
_florent_felix_: just use a python for loop with a assignment inside09:20
_florent_felix_: it's really where migen is powerful, just use any python construct to build your design09:22
nickzoicNo worries :-)09:24
cr1901_modernnickzoic: I linked the tutorial09:25
nickzoicGood stuff, I'll run through it now.  How would you like comments, as random IRC ramblings or as a pull request :-)09:26
cr1901_modernrandom IRC ramblings are fine09:31
cr1901_modernnickzoic: ^^ (whoops forgot to ping you)09:35
*** Kripton has quit IRC09:43
felix__florent_: how can i access signals inside those generated components then? is there some naming scheme they will follow and i can iterate over those again?09:44
*** mauz555 has joined #timvideos09:49
*** sc00bz has joined #timvideos09:52
*** sc00bz1 has quit IRC09:56
*** Kripton has joined #timvideos09:58
*** mauz555 has quit IRC09:58
nickzoicAustralian Internet is very slow ...10:10
nickzoic... downloading many things.10:10
cr1901_modernso I've heard10:14
nickzoicIs this really going to trash my USB bootloader?10:30
nickzoicPS: The 'tinyprog' it has installed doesn't accept argument '--program-image', it just wants '--program'10:31
cr1901_modernnickzoic: Yes it will10:35
cr1901_modernnickzoic: Seems like the provided tinyprog needs to be brough up to date10:35
nickzoicHmmmm, so I really need to get the SPI loader working first or this is a once-off thing then!10:35
nickzoic(potentially)10:36
cr1901_modernnickzoic: As a workaround, "pip install tinyprog -U" from inside the build environment10:36
cr1901_modernAnd paste the results (in hastebin or whatever)10:36
nickzoicpip is insisting that 1.0.21 is the latest version ... I can see 1.0.23 on pypi.org ...10:40
nickzoicCollecting tinyprog==1.0.23   Could not find a version that satisfies the requirement tinyprog==1.0.23 (from versions: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.9, 1.0.10, 1.0.11, 1.0.12b1, 1.0.12, 1.0.13, 1.0.14, 1.0.15, 1.0.16, 1.0.17, 1.0.18, 1.0.19, 1.0.20, 1.0.21, 1.0.22b1) No matching distribution found for tinyprog==1.0.2310:42
nickzoicOh wait, I see.  1.0.23 is only uploaded as a py2 wheel10:43
nickzoic1.0.21 is available as both py2 and py3 wheels so pip on python3 is falling back to that.10:44
_florent_felix_: you have multiple way to interact with the signals, i would need a better description to where you feel limited to be able to help10:45
_florent_felix_: if you look at migen/misoc/litex/artiq/glasgow code, it should give you ideas of how to do things10:46
cr1901_modernoh pip2, my fault10:47
cr1901_moderntinyfpga: Could you please update pypi with a python 3 wheel for tinyprog 1.0.23 when you get the chance?10:47
nickzoicSo that bit I can work around.  What do you reckon I should do to make sure I don't brick this BX board?10:52
cr1901_modernNever type "yes" to the prompt if it warns you'll trash it ;)10:59
nickzoicOK so that's not the expected behaviour?10:59
felix__florent_: so i can pass signals in the constructor arguments or do i need to access those via self.instancename.signalname; in the second case i don't know what instancename will be11:01
cr1901_modernnickzoic: Well, to make a long story short, the warning was added b/c _I_ did manage to brick a board without it. But the warning was too coarse for litex-buildenv's purposes11:01
cr1901_modernso --program-image was added11:01
cr1901_modernI would have to see the exact command tinyprog is running, but I'm saying "don't type yes" as a precaution11:01
nickzoicAha!  Ok, so it's not just a change in name, and if I'm using 1.0.23 the problem should go away.11:01
nickzoic(glad I didn't say YES then :-) )11:01
cr1901_moderncorrect, --program-image is a new command11:02
nickzoicright, running tinyprog master now and it works.11:03
nickzoicthanks!11:03
cr1901_modernnp11:03
nickzoic'make gateware-flash' works now but the next instruction is "once the output pauses in the USB serial console", which it hasn't done ...11:17
_florent_felix_: you can do both11:22
felix_ok11:26
cr1901_modernnickzoic: Oh, right... I screwed up the docs11:34
cr1901_modernmy mistake11:34
cr1901_modernerm, tinyfpga at present needs an external UART11:34
cr1901_modernI'll add that doc in a minute11:34
*** mauz555 has joined #timvideos11:36
nickzoicthanks.  I'm still struggling with building micropython, 'cc1' seems to have gone MIA ...11:36
*** mauz555 has quit IRC11:37
*** mauz555 has joined #timvideos11:38
cr1901_modernWhat's the error look like ._.?11:39
nickzoicIt wasn't picking up on the path to cc1 which is lurking in build/conda/libexec/gcc/lm32-elf/8.2.0/ ... instead throwing 'lm32-elf-newlib-gcc: error trying to exec 'cc1': execvp: No such file or directory'.11:41
nickzoicfixed path, now it mostly compiles but hits some implicit function declarations ...11:42
nickzoiccsr_readl and csr_writel11:43
nickzoicI might be out of C-programming brains for the evening.11:44
cr1901_modernnickzoic: Yes I've seen that error before. Error could you give me a git log of third_party/micropython ?11:50
cr1901_modern_florent_: A number of backend improvements in migen are incoming that you may wish to pick up into litex. It is mostly refactoring, but I'd like migen/litex to have parity in that respect.11:54
cr1901_modern(Not done yet, just wanted to give you a heads up)11:54
cr1901_modernnickzoic: Fixed the info re: the serial console11:59
*** mauz555 has quit IRC12:05
*** mauz555 has joined #timvideos12:06
*** mauz555 has quit IRC12:10
*** mauz555 has joined #timvideos12:13
nickzoicThanks!  I'll try and get a serial console set up over the weekend.  Good night!12:30
*** nickzoic has quit IRC12:34
*** mauz555 has joined #timvideos13:46
*** mauz555 has quit IRC13:50
*** CarlFK has quit IRC14:08
*** cr1901_modern has quit IRC14:08
*** mcarden has quit IRC14:08
*** cr1901_modern has joined #timvideos14:08
*** mcarden has joined #timvideos14:09
*** medicalwei has quit IRC14:11
*** medicalwei has joined #timvideos14:12
*** sc00bz has quit IRC14:18
*** mauz555 has joined #timvideos14:22
*** mauz555 has quit IRC14:54
*** mauz555 has joined #timvideos14:55
*** CarlFK has joined #timvideos14:56
*** ChanServ sets mode: +v CarlFK14:56
*** mauz555 has quit IRC15:04
*** sc00bz has joined #timvideos15:18
*** sc00bz has quit IRC15:22
*** sc00bz1 has joined #timvideos15:28
*** mauz555 has joined #timvideos16:09
*** mauz555 has quit IRC16:16
*** mauz555 has joined #timvideos16:18
*** hyadez has quit IRC16:25
*** hyadez has joined #timvideos16:27
*** mauz555_ has joined #timvideos16:44
*** mauz555_ has quit IRC16:45
*** mauz555 has quit IRC16:45
*** CarlFK has quit IRC20:40
*** sc00bz has joined #timvideos21:26
*** sc00bz2 has joined #timvideos21:26
*** sc00bz1 has quit IRC21:29
*** sc00bz has quit IRC21:31
*** futarisIRCcloud has joined #timvideos22:50
*** Kripton has quit IRC23:55
*** Kripton has joined #timvideos23:58

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