Thursday, 2024-07-25

*** tpb <[email protected]> has joined #yosys00:00
*** Guest24 <[email protected]> has joined #yosys00:51
*** Guest24 <[email protected]> has quit IRC (Client Quit)00:53
*** flag <[email protected]> has quit IRC (Ping timeout: 255 seconds)01:28
*** flag <[email protected]> has joined #yosys01:29
*** tlwoerner <[email protected]> has quit IRC (Ping timeout: 264 seconds)03:25
*** tlwoerner <[email protected]> has joined #yosys03:27
*** Stary <Stary!Stary@hacksoc/infrastructure> has quit IRC (Quit: ZNC - http://znc.in)03:41
*** Stary <Stary!Stary@hacksoc/infrastructure> has joined #yosys03:48
*** FabM <FabM!~FabM@2a03:d604:10a:9a00:f4be:37d9:b762:70ba> has joined #yosys05:44
*** indy <[email protected]> has quit IRC (Ping timeout: 248 seconds)06:41
*** indy_ <[email protected]> has joined #yosys06:49
*** Guest23 <Guest23!~Guest23@2a04:ec82:14:c400::4ae> has joined #yosys07:45
*** Guest23 <Guest23!~Guest23@2a04:ec82:14:c400::4ae> has quit IRC (Client Quit)07:45
*** Adrien[m] <Adrien[m]!adrienpbma@2a01:4f8:c012:5b7:0:1:0:7e> has quit IRC (Quit: Idle timeout reached: 172800s)10:02
*** Adrien[m] <Adrien[m]!adrienpbma@2a01:4f8:c012:5b7:0:1:0:7e> has joined #yosys13:53
Adrien[m]It was not straightfoward, my notes could be interesting to others13:53
Adrien[m]And I'm also taking any suggestions to fix issues !13:53
Adrien[m]Guys I've managed to do FPGA synthesis on-board... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/fyOJHkPyJQXTztySGTHhGvRL>)13:53
juri_wow, that looks really good. :)14:59
juri_thank you for this. :)14:59
*** bjorkint0sh <bjorkint0sh!~bjork@2600:1700:5400:c80:a6bb:43d6:daf8:d7d6> has quit IRC (Quit: "Every day, computers are making people easier to use." David Temkin)15:29
Adrien[m]Just though about it : a soft-core CPU could also be enough to run all suff actually in-FPGA and having an FPGA re-synthesize "itself".15:29
Adrien[m]Choose the CPU model wisely : need to run a GNU/Linux distribution to benefit from repositories of precompiled tools and dependencies.15:29
*** bjorkintosh <bjorkintosh!~bjork@2600:1700:5400:c80:2c03:2618:7eb8:6bae> has joined #yosys15:34
somloAdrien[m]: have a look at https://archive.fosdem.org/2023/schedule/event/rv_selfhosting_all_the_way_down/ (disclaimer: I'm the author :)16:02
tpbTitle: FOSDEM 2023 - Self-Hosting (Almost) All The Way Down (at archive.fosdem.org)16:02
Adrien[m]Too bad this was in Risc-V devroom I would have seen this16:26
somloI managed to talk my higher-ups into giving me a month of $dayjob to see if I can get this working on a xilinx board (i.e., using nextpnr-xilinx instead of vivado, to preserve the "self-hosting" property)17:08
somloon the premise that one can build bigger/faster softcore SoCs on xilinx compared to Lattice ECP5 :)17:10
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Ping timeout: 265 seconds)18:18
GenTooMangood fortune with that is all I can say18:23
GenTooManmay you not be cursed by crazed support information and arbitrary patches to dead versions of linux.18:24
*** indy_ <[email protected]> has quit IRC (*.net *.split)18:49
*** ymherklotz <ymherklotz!cb2c9cfbdd@2a03:6000:1812:100::29a> has quit IRC (*.net *.split)18:49
*** indy_ <[email protected]> has joined #yosys18:49
*** ymherklotz <ymherklotz!cb2c9cfbdd@2a03:6000:1812:100::29a> has joined #yosys18:49
*** bpye <bpye!~bpye@user/bpye> has quit IRC (Read error: Connection reset by peer)19:20
*** bpye <bpye!~bpye@user/bpye> has joined #yosys19:21
*** SpaceCoaster <SpaceCoaster!~derek@user/spacecoaster> has quit IRC (Read error: Connection reset by peer)19:28
*** SpaceCoaster <SpaceCoaster!~derek@user/spacecoaster> has joined #yosys19:29
*** SpaceCoaster <SpaceCoaster!~derek@user/spacecoaster> has quit IRC (Read error: Connection reset by peer)19:30
*** SpaceCoaster <SpaceCoaster!~derek@user/spacecoaster> has joined #yosys19:30
Adrien[m]My little experience is for now purely with Zynq boards Zybo and Zedboards, respective FPGA size is 17k and 54k LUT6. RAM size is 512 MB (off-chip DDR).20:12
Adrien[m]My observation is that the limit is the amount of RAM available for the place-and-route tools. With 512 MB for the entire system, only a small fraction of the Zybo board can be used... this constraint should be largely relaxed with some Kintex boards with a few GBs of on-board RAM.20:12
Adrien[m]Yosys also takes a lot of RAM depending on the design size and also depending on some internal shape of the design, not sure what exactly20:13
somloAdrien: IIRC, zynq based boards can only access RAM through the hard-IP (arm?) cpu core, so I've been avoiding any "hybrid" hard-cpu + fpga combos20:15
somloI'm looking at the nexys video (artix7), genesys2 (kintex7), or some virtex7 board with a SODIMM socket where the soft-IP memory controller can talk directly to the DRAM20:17
juri_somlo: according to my reading of the datasheet, the memory controller is accessable from both the Arm cores, and the fpga.20:22
Adrien[m]Yes Zynq boards have the RAM accessible through the memory controller embedded in the PS part of the chip (Processor Subsystem), so it's completely part of the ASIC part of the chip.20:23
Adrien[m]For performance and energy it's great, and about resource usage it provides high bandwidth for both CPU and FPGA with absolutely no FPGA usage overhead taken by the DDR interface.20:23
Adrien[m]I think the ZC706 has 1GB of RAM as an SODIMM, should be upgradable, and the FPGA is large (but bitstream not documented in prjxray)20:23
Adrien[m]I mention the ZC706 only because it would complete so nicely the set of Zynq boards and chips tested with that flow20:25
Adrien[m]Correction : it has 1GB connected on PS memory controller, and 1GB directly on the FPGA.20:26
Adrien[m]* the FPGA. Total 2GB.20:26
Adrien[m]somlo: virtex7 bitstream is not documented yet in prjxray so no short-term hope about "self-hosting" these chips.20:29
Adrien[m]I have a VC709 board with 8GB of RAM and would like so much to materialize this...20:29
juri_what will we need to do to get the larger zynq chips supported? poking a 7045 at the moment...20:45
somloI could probably work on understanding prjxray itself, and see if there's something that could be done about virtex7 (I have access to a vc707 board, but I don't think physical hardware is actually needed for prjxray, just ability to run the vendor toolchain *a lot* :)20:50
Adrien[m]Either this chip was too large (233k LUT6) to make it a priority for bitstream documentation.20:52
Adrien[m]Or, it did not exist yet in Vivado 2017.2 which is still the only supported version (see https://github.com/f4pga/prjxray/issues/14)20:52
Adrien[m](about the xc7z045)20:53
Adrien[m](correction 218k LUT6)20:53
juri_it does look rather nice. :)20:54
somloso, create a vm template based on some ancient debian/ubuntu/fedora, hack it to work with 2017.2, and launch as many instances as the underlying hardware will support :)20:57
somlofor a prjxray n00b, it might be the path of least resistance (as compared to "dig in and fix issue #14 the Right Way (tm)") :D20:58
juri_where can i even grab 2017.2 now? looks like all links point into login.amd.com20:59
somlothere's mention of some archive in one of the replies (but maybe you already tried that and got the dead login page ?)21:00
juri_yep.21:00
somlooh well, then, there's always the "Maximum Effort" option :D21:00
Adrien[m]For now the 2017.2 can still be run easily on recent distros, just need compat libs for ncurses5 and libxcrypt or something.21:02
Adrien[m]The old versions of vivado can still be downloaded, select "Vivado archive" on the left :21:02
Adrien[m]https://www.xilinx.com/support/download.html21:02
juri_that's where i was.21:03
Adrien[m]The only issue about versions beyond 2017.2 seems to be vivado refusing to handle design that places LUT6_2 immadiately followed by a MUXF in the same slice. Supposedly this would have no practical usefulness. So some fuzzers fail. But I'm fairly convinced that just skipping potentially problematic fuzzer designs would still let the whole fuzzing system document most of the FPGA, if not everything. Just nobody pushed the effort up to porting21:14
Adrien[m]the entire prjxray to any other version.21:14
Adrien[m]Not claiming old FPGAs supported by 2017.2 should be converted to another version of Vivado.21:15
Adrien[m]IMHO having even partially documented bistreams for Virtex-7 and all other Kintex and Artix and Zynq chips is a better beginning than having no support at all.21:15
Adrien[m]Take care a vivado 2023 install is 110-180GB of disk space depending on what is selected...21:16
somlojuri_: presumably if you had (or created) an AMD/Xillinx account, you could then grab a copy? I'll have to try that myself...21:22
*** whitequark[cis] <whitequark[cis]!whitequark@2a01:4f8:c012:5b7:0:1:0:4> has joined #yosys21:25
whitequark[cis]vivado always required a xilinx account to download, for export control reasons21:25
whitequark[cis]i recall getting one in 2017, i think21:25
Adrien[m]somlo: I added links to your web page and FOSDEM presentation to related works in my little repo ;)21:26
somloAdrien[m]: Thanks! Hope it ends up being useful :)21:30
somloshould definitely be more useful if it can run on a larger/faster FPGA than Lattice ecp521:31
Adrien[m]To give you figures, genarating a bitstream for an AES core (something like 1000-2000 LUT6 ?) takes around half an hours for my intern. When he's done his repo will be available public too with all details, not sure when, if you are interested I can take a few more notes of our discussions.21:37
Adrien[m]There are many technology details in your works that I want to have a look at, the Rocket chip (or CVA6 more common nearby me), Fedora, soft cores, Litex, ...21:37
Adrien[m](disclaimer : with baby to take care of and a part-time nurse, only part-time work time remains available for me ':) )21:39
*** cr1901_ <cr1901_!~cr1901@2601:8d:8600:226:8017:98f5:9755:74b6> has quit IRC (Read error: Connection reset by peer)21:49
*** cr1901 <cr1901!~cr1901@2601:8d:8600:226:31b0:a705:3c26:75f5> has joined #yosys21:54
juri_ok, they do still offer it.22:09
juri_it's just a royal pain. :D22:09
*** Klotz <Klotz!~Klotzoman@gateway/tor-sasl/klotz> has joined #yosys22:33
*** nonchip <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)22:34
*** nonchip <[email protected]> has joined #yosys22:34
*** Klotz <Klotz!~Klotzoman@gateway/tor-sasl/klotz> has quit IRC (Quit: Klotz)22:44
somloAdrien[m]: the full "assembly instructions" are at https://github.com/litex-hub/linux-on-litex-rocket22:45
*** Klotz <Klotz!~Klotzoman@gateway/tor-sasl/klotz> has joined #yosys22:56
*** Klotz <Klotz!~Klotzoman@gateway/tor-sasl/klotz> has quit IRC (Client Quit)22:59

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