*** tpb has joined #timvideos | 00:00 | |
*** swalladge has quit IRC | 00:45 | |
*** mauz555 has quit IRC | 01:10 | |
*** mauz555 has joined #timvideos | 01:11 | |
*** mauz555 has quit IRC | 01:15 | |
*** swalladge has joined #timvideos | 02:00 | |
*** Kripton has quit IRC | 02:11 | |
*** Kripton has joined #timvideos | 02:11 | |
*** [d__d] has quit IRC | 03:37 | |
*** sc00bz1 has joined #timvideos | 03:43 | |
*** sc00bz has quit IRC | 03:46 | |
*** mauz555 has joined #timvideos | 04:03 | |
*** mauz555 has quit IRC | 04: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 assigned | 06:40 |
_florent_ | felix_: so just assign the others bits | 06: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 #timvideos | 07:15 | |
*** mauz555 has joined #timvideos | 07:18 | |
mithro | cr1901_modern: nickzoic is looking at getting micropython booting on his tinyfpga-bx | 07:23 |
*** mauz555 has quit IRC | 07:23 | |
mithro | cr1901_modern: Could be a good tester for your tutorial :-P | 07:25 |
nickzoic | *waves* G'day! | 07:28 |
cr1901_modern | mithro: Cool. I'm writing the tutorial now (combined icebreaker and tinyfpga BX) | 07:33 |
mithro | cr1901_modern: For the tinyfpga bx we need to include were to connect up the extra uart for now? | 07:34 |
cr1901_modern | Yes | 07:34 |
mithro | Well, I'm heading to bed now | 07:37 |
cr1901_modern | Okay, I have one last q before you leave (will privmsg) | 07:37 |
mithro | Okay sure | 07:38 |
nickzoic | I'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_modern | nickzoic: Please be on standby, still working on things | 07:56 |
Kamilion | ooh, fun, micropython. | 08:34 |
felix_ | _florent_: thx | 08:34 |
felix_ | how would i implement the equivalent of a for generate statement in vhdl in migen? | 08:35 |
cr1901_modern | nickzoic: https://github.com/timvideos/litex-buildenv/wiki/HowTo-FuPy-on-Icebreaker-and-TinyFPGA-BX Enjoy | 09:10 |
tpb | Title: 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 inside | 09:20 |
_florent_ | felix_: it's really where migen is powerful, just use any python construct to build your design | 09:22 |
nickzoic | No worries :-) | 09:24 |
cr1901_modern | nickzoic: I linked the tutorial | 09:25 |
nickzoic | Good stuff, I'll run through it now. How would you like comments, as random IRC ramblings or as a pull request :-) | 09:26 |
cr1901_modern | random IRC ramblings are fine | 09:31 |
cr1901_modern | nickzoic: ^^ (whoops forgot to ping you) | 09:35 |
*** Kripton has quit IRC | 09: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 #timvideos | 09:49 | |
*** sc00bz has joined #timvideos | 09:52 | |
*** sc00bz1 has quit IRC | 09:56 | |
*** Kripton has joined #timvideos | 09:58 | |
*** mauz555 has quit IRC | 09:58 | |
nickzoic | Australian Internet is very slow ... | 10:10 |
nickzoic | ... downloading many things. | 10:10 |
cr1901_modern | so I've heard | 10:14 |
nickzoic | Is this really going to trash my USB bootloader? | 10:30 |
nickzoic | PS: The 'tinyprog' it has installed doesn't accept argument '--program-image', it just wants '--program' | 10:31 |
cr1901_modern | nickzoic: Yes it will | 10:35 |
cr1901_modern | nickzoic: Seems like the provided tinyprog needs to be brough up to date | 10:35 |
nickzoic | Hmmmm, 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_modern | nickzoic: As a workaround, "pip install tinyprog -U" from inside the build environment | 10:36 |
cr1901_modern | And paste the results (in hastebin or whatever) | 10:36 |
nickzoic | pip is insisting that 1.0.21 is the latest version ... I can see 1.0.23 on pypi.org ... | 10:40 |
nickzoic | Collecting 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.23 | 10:42 |
nickzoic | Oh wait, I see. 1.0.23 is only uploaded as a py2 wheel | 10:43 |
nickzoic | 1.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 help | 10:45 |
_florent_ | felix_: if you look at migen/misoc/litex/artiq/glasgow code, it should give you ideas of how to do things | 10:46 |
cr1901_modern | oh pip2, my fault | 10:47 |
cr1901_modern | tinyfpga: Could you please update pypi with a python 3 wheel for tinyprog 1.0.23 when you get the chance? | 10:47 |
nickzoic | So 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_modern | Never type "yes" to the prompt if it warns you'll trash it ;) | 10:59 |
nickzoic | OK 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 be | 11:01 |
cr1901_modern | nickzoic: 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 purposes | 11:01 |
cr1901_modern | so --program-image was added | 11:01 |
cr1901_modern | I would have to see the exact command tinyprog is running, but I'm saying "don't type yes" as a precaution | 11:01 |
nickzoic | Aha! 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_modern | correct, --program-image is a new command | 11:02 |
nickzoic | right, running tinyprog master now and it works. | 11:03 |
nickzoic | thanks! | 11:03 |
cr1901_modern | np | 11: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 both | 11:22 |
felix_ | ok | 11:26 |
cr1901_modern | nickzoic: Oh, right... I screwed up the docs | 11:34 |
cr1901_modern | my mistake | 11:34 |
cr1901_modern | erm, tinyfpga at present needs an external UART | 11:34 |
cr1901_modern | I'll add that doc in a minute | 11:34 |
*** mauz555 has joined #timvideos | 11:36 | |
nickzoic | thanks. I'm still struggling with building micropython, 'cc1' seems to have gone MIA ... | 11:36 |
*** mauz555 has quit IRC | 11:37 | |
*** mauz555 has joined #timvideos | 11:38 | |
cr1901_modern | What's the error look like ._.? | 11:39 |
nickzoic | It 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 |
nickzoic | fixed path, now it mostly compiles but hits some implicit function declarations ... | 11:42 |
nickzoic | csr_readl and csr_writel | 11:43 |
nickzoic | I might be out of C-programming brains for the evening. | 11:44 |
cr1901_modern | nickzoic: 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_modern | nickzoic: Fixed the info re: the serial console | 11:59 |
*** mauz555 has quit IRC | 12:05 | |
*** mauz555 has joined #timvideos | 12:06 | |
*** mauz555 has quit IRC | 12:10 | |
*** mauz555 has joined #timvideos | 12:13 | |
nickzoic | Thanks! I'll try and get a serial console set up over the weekend. Good night! | 12:30 |
*** nickzoic has quit IRC | 12:34 | |
*** mauz555 has joined #timvideos | 13:46 | |
*** mauz555 has quit IRC | 13:50 | |
*** CarlFK has quit IRC | 14:08 | |
*** cr1901_modern has quit IRC | 14:08 | |
*** mcarden has quit IRC | 14:08 | |
*** cr1901_modern has joined #timvideos | 14:08 | |
*** mcarden has joined #timvideos | 14:09 | |
*** medicalwei has quit IRC | 14:11 | |
*** medicalwei has joined #timvideos | 14:12 | |
*** sc00bz has quit IRC | 14:18 | |
*** mauz555 has joined #timvideos | 14:22 | |
*** mauz555 has quit IRC | 14:54 | |
*** mauz555 has joined #timvideos | 14:55 | |
*** CarlFK has joined #timvideos | 14:56 | |
*** ChanServ sets mode: +v CarlFK | 14:56 | |
*** mauz555 has quit IRC | 15:04 | |
*** sc00bz has joined #timvideos | 15:18 | |
*** sc00bz has quit IRC | 15:22 | |
*** sc00bz1 has joined #timvideos | 15:28 | |
*** mauz555 has joined #timvideos | 16:09 | |
*** mauz555 has quit IRC | 16:16 | |
*** mauz555 has joined #timvideos | 16:18 | |
*** hyadez has quit IRC | 16:25 | |
*** hyadez has joined #timvideos | 16:27 | |
*** mauz555_ has joined #timvideos | 16:44 | |
*** mauz555_ has quit IRC | 16:45 | |
*** mauz555 has quit IRC | 16:45 | |
*** CarlFK has quit IRC | 20:40 | |
*** sc00bz has joined #timvideos | 21:26 | |
*** sc00bz2 has joined #timvideos | 21:26 | |
*** sc00bz1 has quit IRC | 21:29 | |
*** sc00bz has quit IRC | 21:31 | |
*** futarisIRCcloud has joined #timvideos | 22:50 | |
*** Kripton has quit IRC | 23:55 | |
*** Kripton has joined #timvideos | 23:58 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!