Thursday, 2024-01-18

openpowerbot[irc] <programmerjake> you add big integers by using00:52
openpowerbot[irc] <programmerjake> addic 0,0,0  # clears CA00:52
openpowerbot[irc] <programmerjake> sv.adde *dest, *src1, *src200:52
*** libredev <libredev!libredev@libredev.ircforever.org> has quit IRC04:51
*** libredev <libredev!libredev@ircforever.org> has joined #libre-soc05:01
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@broadband-109-173-55-177.ip.moscow.rt.ru> has quit IRC06:19
klyscan you also add 32-bit integers?06:22
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@176.59.56.11> has joined #libre-soc06:23
openpowerbot[irc] <programmerjake> yes, but if they're only 32-bit instead of >64-bit you can just use the standard add instruction and ignore the msb half06:35
klyshow about 16-bit ones?06:38
openpowerbot[irc] <programmerjake> yes, for any N-bit number, you can do N-bit addition by using W-bit addition where W>=N and ignoring the top W-N bits06:40
openpowerbot[irc] <programmerjake> so for the case of 16-bit numbers on 64-bit powerpc, W=64 and N=16 so you do a 64-bit add and ignore the high 48-bits06:41
klysalso for 8-bits?  I am thinking of the possibility of adding color values in parallel.06:42
openpowerbot[irc] <programmerjake> yes, but if you want to do additions in parallel, it would be better to use a SV vector with 8-bit elements since you can then do multiple additions with one instruction06:43
klysit doesn't support 16-bit elements then...?06:44
openpowerbot[irc] <programmerjake> it supports 8, 16, 32, and 64-bit elements06:45
klysoh good06:45
klyscarry on!06:45
openpowerbot[irc] <programmerjake> it also sorta supports 128, 192 and 256 bit elements (actually subvectors) but mostly only for moves/copies, and bitwise ops like and, not, xor, etc.06:46
klyshey I bought an orangecrab a little while back.  is there anything new around?06:47
openpowerbot[irc] <programmerjake> basically it supports vectors made of N subvectors (0 <= N <= 64 for now) where each subvector has 1 to 4 elements and each element is 8/16/32/64-bit06:48
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@176.59.56.11> has quit IRC06:49
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@broadband-109-173-55-177.ip.moscow.rt.ru> has joined #libre-soc06:49
openpowerbot[irc] <programmerjake> it is a few months old, but you can try a raytraced 3D game I wrote: https://git.libre-soc.org/?p=microwatt.git;a=blob;f=rust_voxels_game/README.md;h=ff3d8451a557c97d3a2829aad151cfd981f80ac2;hb=7e60f5ee46d0ef670ab33841427e977fa693b30006:50
openpowerbot[irc] <programmerjake> you'll need a 3.3v TTL serial adaptor that can run at 1MBaud06:51
openpowerbot[irc] <programmerjake> or, you can just try the software by itself without running it on a fpga06:51
openpowerbot[irc] <programmerjake> if your orangecrab isn't the 85 version, it's too small tho...06:52
klysmine is that06:52
openpowerbot[irc] <programmerjake> 85? or too small?06:53
klys8506:53
openpowerbot[irc] <programmerjake> nice!06:53
klysyeah I thought I would find time for it though I haven't yet06:53
openpowerbot[irc] <programmerjake> well, the above demo should work with relatively little complication, since it uses docker to get the fpga build tools06:54
openpowerbot[irc] <programmerjake> (though you can always try to get them all yourself if you don't want to use docker)06:55
openpowerbot[irc] <programmerjake> or, you can download pre-built firmware here: https://ftp.libre-soc.org/voxels_game_orangecrab/06:56
openpowerbot[irc] <programmerjake> also, here's a screenshot of me running it: https://ftp.libre-soc.org/voxels_game_orangecrab/screenshot.png06:56
openpowerbot[irc] <programmerjake> it runs at about 2-3 fps on the fpga and runs at well more than 60fps on my desktop06:58
openpowerbot[irc] <programmerjake> i mostly built it cuz I think we need a cool demo for FOSDEM 2024, and also cuz I wanted to do something different07:04
klyswhat is the git clone command for that repo07:04
klysI finished my rustup07:05
openpowerbot[irc] <programmerjake> git clone -b voxels_game https://git.libre-soc.org/git/microwatt.git07:06
klyswhat are you working on today?07:07
openpowerbot[irc] <programmerjake> working on: https://bugs.libre-soc.org/show_bug.cgi?id=122307:09
openpowerbot[irc] <programmerjake> iirc you'll also need to install dfu-util from apt or similar07:09
openpowerbot[irc] <programmerjake> that's what programs a firmware image to the orangecrab07:10
*** Gooberpatrol66 <Gooberpatrol66!~Gooberpat@user/gooberpatrol66> has quit IRC08:30
*** psydroid <psydroid!~psydroid@user/psydroid> has joined #libre-soc13:01
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@broadband-109-173-55-177.ip.moscow.rt.ru> has quit IRC15:42
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@176.59.56.219> has joined #libre-soc15:42
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@176.59.56.219> has quit IRC15:49
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@81.200.11.62> has joined #libre-soc15:52
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@81.200.11.62> has quit IRC15:57
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@broadband-109-173-55-177.ip.moscow.rt.ru> has joined #libre-soc15:57
*** Gooberpatrol66 <Gooberpatrol66!~Gooberpat@user/gooberpatrol66> has joined #libre-soc17:10
*** psydroid <psydroid!~psydroid@user/psydroid> has quit IRC18:56

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