Sunday, 2021-01-03

*** tpb has joined #tomu00:00
*** TheJJ has quit IRC01:06
*** tannewt has quit IRC01:06
*** ssb has quit IRC01:06
*** slurdge has quit IRC01:06
*** jerith has quit IRC01:06
*** MadHacker has quit IRC01:06
*** TheJJ has joined #tomu01:09
*** tannewt has joined #tomu01:09
*** ssb has joined #tomu01:09
*** slurdge has joined #tomu01:09
*** jerith has joined #tomu01:09
*** MadHacker has joined #tomu01:09
*** jerith has quit IRC01:11
*** jerith_ has joined #tomu01:11
*** Jay_jayjay has quit IRC02:08
*** slurdge8 has joined #tomu02:35
*** tannewt_ has joined #tomu02:35
*** Vercas_ has joined #tomu02:37
*** TheJJ_ has joined #tomu02:37
*** ssb_ has joined #tomu02:38
*** craigo has joined #tomu02:38
*** MadHacke1 has joined #tomu02:38
*** gio_ has joined #tomu02:39
*** eaterof has joined #tomu02:43
*** gio has quit IRC02:43
*** eater has quit IRC02:43
*** gerard- has quit IRC02:43
*** Vercas has quit IRC02:43
*** TheJJ has quit IRC02:43
*** tannewt has quit IRC02:43
*** ssb has quit IRC02:43
*** slurdge has quit IRC02:43
*** MadHacker has quit IRC02:43
*** tannewt_ is now known as tannewt02:43
*** slurdge8 is now known as slurdge02:44
*** asante10111_ has joined #tomu02:49
*** gerard- has joined #tomu02:54
*** asante10111__ has joined #tomu03:07
*** asante10111_ has quit IRC03:11
*** whatnick has quit IRC04:53
*** craigo has quit IRC08:18
*** ssb_ is now known as ssb08:35
*** whatnick has joined #tomu10:05
*** whatnick has quit IRC10:52
*** marcmerlin has joined #tomu11:45
marcmerlinhowdy. I've been reading up on fomus and FPGAs. I see that fomu has 5000 LUTs, which doesn't feel like a lot, but that's somehow still enough to upload a RISC-V softcore + code to run on top? If so, impressive11:46
marcmerlinI understand that with an FPGA, I could upload any softcore that fits, but realistically people mostly use RISC-V since it's simple.11:47
marcmerlinSo, for a small FPGA, why would I want to use one over a microcontroller that already has a CPU, and where all the resources are dedicated to user code and RAM?11:49
marcmerlinI can see that it would be cool to be able to patch your CPU and add instructions, which you can't do on a microcontroller, but I'm assuming few people do/use that.   Same thing with micropython, how would it differ to run it on an FPGA over let's say an ESP32?11:52
xobsmarcmerlin: yep, enough to upload a RISC-V softcore + code. Plus USB core. The bootloader is 8 kB, which is loaded into the softcore's "bootrom".11:52
xobsThe advantages are mostly educational, and being able to understand how a CPU works.11:53
xobsPeople have lamented the lack of a multiply unit, so just yesterday someone compiled a new version of the CPU to include a single-cycle multiplier.11:54
marcmerlinRight, I understood that from the docs (workshop is great, much better than tomu that was hard to learn :)  ). Got it, so on that small scale, it's not better in any way than a microcontroller11:54
tntmarcmerlin: it's going to be much slower that fpga, that's one difference :p11:54
tntmarcmerlin: but the huge advantage of a fpga is you get the peripherals you want ... exactly like you want them.11:55
marcmerlin@tnt: yes, I figured an FGPA softcore will be slower than a hardware CPU (although you can add instructions to the latter)11:55
xobsYou're correct. It's slower and less full-featured than an MCU (i.e. no multiplier or fancy peripherals).11:55
xobsBut there are a few tricks. For example, because we control the USB hardware, there's a debug bridge that's exposed over the USB pins.11:56
xobsThat means you can poke at hardware registers without needing a third-party debug cable.11:56
marcmerlin@tnt: I see what you mean. If you want 4 hardware SPI busses, you only have 2 on an ESP32 and then you do software SPI. So the FPGA would let you add extra SPI outputs that would be faster than software SPI on ESP3211:57
marcmerlinxobs: yes, I saw the USB debug bridge, that's very cool indeed. You need a special cable to do that on other chips11:58
marcmerlinNow, I know that at bigger scale (driving 8 RGBPanel strings in parallel), FPGAs do better, because they can do so much I/O11:59
tntmarcmerlin: yeah .. or stuff that just plain doesn't exist.  I have a UP5k interfacing to E1 (telecom interfaces), or to SPDIF ... I would have needed external chips to do that with any MCU at all.11:59
marcmerlincan't you use digital pins and PWM to do that on any MCU?12:00
marcmerlinI've never seen it, but I'm guessing an arduino style chip could output composite video on a pin for instance  HDMI would be harder due to lack of required speed12:01
tntE1, no. SPDIF I guess you could possibly bitbang it maybe although at like 3 MHz that's a pretty high rate to bitbang and you gotta be _spot_on_ timing.12:01
tntAnd as soo as you bitbang anything on a MCU ... you lose any CPU speed advantage your hw CPU has because you're spending all your time bitbanging stuff.12:02
marcmerlinok, that's where I may need to learn more. Yes, bigbanging ties up the CPU and requires a spot on ISR. But isn't that true for an FPGA too? I'm assuming you would generate the output not in C code that runs on the softcore, or you're no better off, correct?12:04
xobsYou could generate a hardware block that does it.12:28
xobsFor example, a ws2812b "neopixels" driver could be native, where you'd have a framebuffer and hardware would take care of the timing.12:29
marcmerlingotcha, thanks. I need to do more reading and learning13:00
*** TheJJ_ has quit IRC14:33
*** TheJJ has joined #tomu14:35
*** Jay_jayjay has joined #tomu15:19
*** Jay_jayjay has quit IRC15:54
*** Jay_jayjay has joined #tomu15:55
*** Jay_jayjay has quit IRC16:00
*** srk has quit IRC16:02
*** Jay_jayjay has joined #tomu16:04
*** srk has joined #tomu16:07
*** Jay_jayjay has quit IRC16:08
*** Jay_jayjay has joined #tomu16:21
*** Jay_jayjay has quit IRC17:17
*** Jay_jayjay has joined #tomu17:24
*** NoGodDamnIdea has joined #tomu17:39
*** Jay_jayjay has quit IRC18:07
*** Jay_jayjay has joined #tomu18:18
*** Jay_jayjay has quit IRC18:23
*** AnimaInvicta has joined #tomu19:08
*** Jay_jayjay has joined #tomu19:34
*** Jay_jayjay has quit IRC20:21
*** Jay_jayjay has joined #tomu20:38
*** NoGodDamnIdea has quit IRC20:45
*** NoGodDamnIdea has joined #tomu20:52
*** Jay_jayjay has quit IRC21:34
*** Jay_jayjay has joined #tomu21:37
*** Jay_jayjay has quit IRC21:42
marcmerlinl22:00
*** AnimaInvicta has left #tomu22:04
acathlaAre you the marcmerlin on marmerlins.org ?22:12
marcmerlinoops, sorry for sending that stray character. Yes, that's me ( http://marc.merlins.org/ I assume you meant)22:14
acathlaYep. I used your SA-exim patch and conf files a lot :)22:17
*** Jay_jayjay has joined #tomu22:17
marcmerlinoh my, that's like a totally previous life, 15 years ago :)22:20
acathlaYou should update it :)22:21
marcmerlinI'll admit that I've kind of lost interest. I still run my own Email, but I'm done writing exim configs (the exim4 config file in debian is partially mine), and exim code :)22:25
marcmerlinbut the cool part is that someone else in debian has been maintaining it for me22:26
*** Jay_jayjay has quit IRC22:43
*** asante10111__ has quit IRC23:09
*** Jay_jayjay has joined #tomu23:51

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!