openpowerbot | [irc] <programmerjake> you add big integers by using | 00:52 |
---|---|---|
openpowerbot | [irc] <programmerjake> addic 0,0,0 # clears CA | 00:52 |
openpowerbot | [irc] <programmerjake> sv.adde *dest, *src1, *src2 | 00:52 |
*** libredev <libredev!libredev@libredev.ircforever.org> has quit IRC | 04:51 | |
*** libredev <libredev!libredev@ircforever.org> has joined #libre-soc | 05:01 | |
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@broadband-109-173-55-177.ip.moscow.rt.ru> has quit IRC | 06:19 | |
klys | can you also add 32-bit integers? | 06:22 |
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@176.59.56.11> has joined #libre-soc | 06: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 half | 06:35 |
klys | how 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 bits | 06: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-bits | 06:41 |
klys | also 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 instruction | 06:43 |
klys | it doesn't support 16-bit elements then...? | 06:44 |
openpowerbot | [irc] <programmerjake> it supports 8, 16, 32, and 64-bit elements | 06:45 |
klys | oh good | 06:45 |
klys | carry 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 |
klys | hey 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-bit | 06:48 |
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@176.59.56.11> has quit IRC | 06:49 | |
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@broadband-109-173-55-177.ip.moscow.rt.ru> has joined #libre-soc | 06: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=7e60f5ee46d0ef670ab33841427e977fa693b300 | 06:50 |
openpowerbot | [irc] <programmerjake> you'll need a 3.3v TTL serial adaptor that can run at 1MBaud | 06:51 |
openpowerbot | [irc] <programmerjake> or, you can just try the software by itself without running it on a fpga | 06:51 |
openpowerbot | [irc] <programmerjake> if your orangecrab isn't the 85 version, it's too small tho... | 06:52 |
klys | mine is that | 06:52 |
openpowerbot | [irc] <programmerjake> 85? or too small? | 06:53 |
klys | 85 | 06:53 |
openpowerbot | [irc] <programmerjake> nice! | 06:53 |
klys | yeah I thought I would find time for it though I haven't yet | 06:53 |
openpowerbot | [irc] <programmerjake> well, the above demo should work with relatively little complication, since it uses docker to get the fpga build tools | 06: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.png | 06:56 |
openpowerbot | [irc] <programmerjake> it runs at about 2-3 fps on the fpga and runs at well more than 60fps on my desktop | 06: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 different | 07:04 |
klys | what is the git clone command for that repo | 07:04 |
klys | I finished my rustup | 07:05 |
openpowerbot | [irc] <programmerjake> git clone -b voxels_game https://git.libre-soc.org/git/microwatt.git | 07:06 |
klys | what are you working on today? | 07:07 |
openpowerbot | [irc] <programmerjake> working on: https://bugs.libre-soc.org/show_bug.cgi?id=1223 | 07:09 |
openpowerbot | [irc] <programmerjake> iirc you'll also need to install dfu-util from apt or similar | 07:09 |
openpowerbot | [irc] <programmerjake> that's what programs a firmware image to the orangecrab | 07:10 |
*** Gooberpatrol66 <Gooberpatrol66!~Gooberpat@user/gooberpatrol66> has quit IRC | 08:30 | |
*** psydroid <psydroid!~psydroid@user/psydroid> has joined #libre-soc | 13:01 | |
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@broadband-109-173-55-177.ip.moscow.rt.ru> has quit IRC | 15:42 | |
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@176.59.56.219> has joined #libre-soc | 15:42 | |
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@176.59.56.219> has quit IRC | 15:49 | |
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@81.200.11.62> has joined #libre-soc | 15:52 | |
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@81.200.11.62> has quit IRC | 15:57 | |
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@broadband-109-173-55-177.ip.moscow.rt.ru> has joined #libre-soc | 15:57 | |
*** Gooberpatrol66 <Gooberpatrol66!~Gooberpat@user/gooberpatrol66> has joined #libre-soc | 17:10 | |
*** psydroid <psydroid!~psydroid@user/psydroid> has quit IRC | 18:56 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!