*** tpb <[email protected]> has joined #yosys | 00:00 | |
*** GenTooMan <GenTooMan!~cyberman@2601:547:437f:e5c6:21f:5bff:fefe:a883> has quit IRC (Quit: Leaving) | 03:35 | |
*** emeb_mac <[email protected]> has quit IRC (Read error: Connection reset by peer) | 04:29 | |
*** emeb_mac <[email protected]> has joined #yosys | 04:29 | |
*** nak <nak!~nak@yosys/nak> has quit IRC (Ping timeout: 240 seconds) | 04:41 | |
*** nak <nak!~nak@yosys/nak> has joined #yosys | 04:43 | |
*** GenTooMan <GenTooMan!~cyberman@2601:547:437f:e5c6:21f:5bff:fefe:a883> has joined #yosys | 04:57 | |
*** nak <nak!~nak@yosys/nak> has quit IRC (Ping timeout: 250 seconds) | 06:06 | |
*** FabM <FabM!~FabM@2a03:d604:103:600:4923:d8d3:c661:83e3> has joined #yosys | 06:18 | |
*** bpye <bpye!~bpye@user/bpye> has quit IRC (Ping timeout: 276 seconds) | 06:18 | |
*** emeb_mac <[email protected]> has quit IRC (Quit: Leaving.) | 06:31 | |
*** bpye <bpye!~bpye@user/bpye> has joined #yosys | 06:36 | |
*** bpye <bpye!~bpye@user/bpye> has quit IRC (Ping timeout: 276 seconds) | 06:46 | |
*** bpye <bpye!~bpye@user/bpye> has joined #yosys | 06:59 | |
*** kristianpaul <kristianpaul!~paul@user/kristianpaul> has quit IRC (Ping timeout: 246 seconds) | 07:03 | |
*** kristianpaul <kristianpaul!~paul@user/kristianpaul> has joined #yosys | 07:05 | |
*** bpye <bpye!~bpye@user/bpye> has quit IRC (Ping timeout: 276 seconds) | 07:13 | |
*** bpye <bpye!~bpye@user/bpye> has joined #yosys | 07:18 | |
*** nak <nak!~nak@yosys/nak> has joined #yosys | 09:43 | |
*** nak <nak!~nak@yosys/nak> has quit IRC (Ping timeout: 240 seconds) | 09:55 | |
*** vidbina <vidbina!~vid@2a02:3032:7:fab3:62f8:5254:d1ec:62f0> has joined #yosys | 10:20 | |
*** nak <nak!~nak@yosys/nak> has joined #yosys | 12:08 | |
*** nak <nak!~nak@yosys/nak> has quit IRC (Ping timeout: 250 seconds) | 12:21 | |
*** somlo <[email protected]> has quit IRC (Remote host closed the connection) | 12:35 | |
*** nak <nak!~nak@yosys/nak> has joined #yosys | 12:54 | |
*** somlo <[email protected]> has joined #yosys | 12:55 | |
rowang077[m] | Is it somehow possible to setup min/max delays and false paths in yosys or nextpnr? I'm working on a multiclock design and need some timing constraints on an async fifo synchronizer. | 14:04 |
---|---|---|
rowang077[m] | I can't find anything in the doc | 14:04 |
tnt | nope | 14:05 |
rowang077[m] | so multiclock is not supported? How do other projects handle this I see litex entire socs. I assume they must have multiple clock domains? | 14:06 |
tnt | ATM it's sort of cross your finger and hope the placer put them close enough. | 14:06 |
tnt | But there is no cross-clock analysis done at all. | 14:06 |
tnt | it does _report_ the max delay in the report but you can't constrain it. | 14:07 |
rowang077[m] | :( I see. That's unfortunate | 14:07 |
rowang077[m] | Is this something that would be implementable in a few days? I could try my hand at it. | 14:08 |
rowang077[m] | I'd wager from scratch would be a lot of work | 14:08 |
tnt | I have no clue whatsoever tbh ... but for someone without good knowledge of how the current code works, I feel like it's a long shot. | 14:09 |
tnt | gatecat would know better for sure | 14:09 |
gatecat | yeah, even scoping it out would be more than a few days work tbh | 14:10 |
gatecat | it will be done at some point but with my schedule being somewhat chaotic rn it's hard to help more than that | 14:11 |
gatecat | unless you happen to have $50k in your back pocket ;) | 14:12 |
rowang077[m] | haha I wish | 14:12 |
*** adjtm <[email protected]> has quit IRC (Quit: Leaving) | 14:23 | |
killjoy | Frankly, yosys should have kickstarter campaigns for each feature request. The ones that get funded get implemented. :D | 14:35 |
tnt | Not sure about kickstarter, but some official bounty system would be nice. No clue if there'd be enough support to be worth it but ... (also it's nextpnr for this particular case) | 14:45 |
lkcl | rowang077[m], ls2 (a peripheral fabric i'm developing) has multiple clock domains and uses alex forenchich's async-wishbone | 15:26 |
*** nak <nak!~nak@yosys/nak> has quit IRC (Ping timeout: 250 seconds) | 15:27 | |
lkcl | tnt: interesting to know that CDC isn't really part of the PnR, that's going to be fun | 15:28 |
lkcl | does anyone know how to override a specific techmap? | 15:28 |
lkcl | currently i'm compiling nextpnr-xilinx with -nocarrylut due to a limitation of yosys/nextpnr-xilinx/vtr/symbiflow | 15:29 |
lkcl | there's only room for up to 23-26 CARRY4 blocks within the A7 FPGAs before you have to "cross over" to a different block | 15:30 |
lkcl | translation: any add, sub, or cmp that's greater than around 96 bits is guaranteed to fail (in symbiflow/VTR) or to 100% lock up in nextpnr-xilinx | 15:31 |
lkcl | solution: | 15:31 |
lkcl | in a yosys techmap, instead of creating a naive CARRY4 chain, split the add/sub/cmp into sections of at most 96(ish) bits, with a manual carry-in carry-out bit | 15:32 |
lkcl | that's context | 15:32 |
lkcl | question, therefore: | 15:32 |
lkcl | how do you override *just one* techmap file of standard techmap commands for a given synth command? (in this case, synth_xilinx)? | 15:33 |
lkcl | i'd greatly prefer not to be running with a fork of yosys. | 15:33 |
*** ec <ec!~ec@gateway/tor-sasl/ec> has joined #yosys | 15:33 | |
lkcl | ah, here we go | 15:35 |
lkcl | https://github.com/YosysHQ/yosys/blob/master/techlibs/xilinx/arith_map.v#L68 | 15:35 |
lkcl | that's a naive carry4-chain which is *too long* for A7-35t, 100t (and probably 200t) FPGAs, they can only handle 23-26 CARRY4s. | 15:37 |
lkcl | several people have encountered this and are suffering (tolerating) a whopping 30% clock-speed drop by having to use LUT4/6s instead | 15:37 |
*** vidbina <vidbina!~vid@2a02:3032:7:fab3:62f8:5254:d1ec:62f0> has quit IRC (Ping timeout: 260 seconds) | 15:53 | |
*** vidbina <[email protected]> has joined #yosys | 16:49 | |
jix | not really my area, but is this something that should be handled at the techmap stage? isn't it just creating individual CARRY4 with CI/CO chained, i.e. there would be no difference to splitting the add and manually chaining carry between the split parts? | 17:38 |
lkcl | jix: there's some debate about this. on the one hand, the _easiest_ way to do it is at the techmap stage | 18:06 |
lkcl | on the other "it's supposed to be the P&R's job" | 18:07 |
lkcl | in between, there's a really *really* nice piece of work by a pair of phd students that actually does an astoundingly awesome job of auto-generating some seriously optimal ASIC techmaps for add/sub/cmp, let me find it... | 18:08 |
lkcl | here: https://github.com/tdene/synth_opt_adders | 18:08 |
lkcl | now, it should be pretty obvious from the level of sophistication involved there that trying to teach VTR, nextpnr-ecp5, nextpnr-xilinx etc. etc. etc. how to do that astounding optimisation job is... ah.. not very sane/sensible? :) | 18:09 |
lkcl | sure, you can, but by that point it's the equivalent of running disasm and hand-patching binaries, to try to desperately reconstruct the higher-level concept of the bit-level adders | 18:10 |
lkcl | in order to run the *higher-level* concept of optimising the layouts, with parallel carry-propagation etc. etc. etc. | 18:11 |
jix | hmm, I guess I'd go with "P&R should at least split long chains and not fail/deadlock, but if you want to do anything more fancy you need to do that before" then | 18:12 |
lkcl | in a word, yes | 18:12 |
lkcl | you should see the job that symbiflow does of attempting to adjust the naive-long-carry4-chains that yosys throws at it | 18:12 |
lkcl | i mean, it works, but it's done by: | 18:13 |
lkcl | * exporting to JSON | 18:13 |
lkcl | * running a python script that searches through the Abstract Syntax Tree looking for patterns involving CARRY4 | 18:13 |
lkcl | * performs (in python) JSON DOM Node rewriting (in memory) | 18:14 |
lkcl | * dumps the JSON file back out | 18:14 |
lkcl | * calls a yosys script to re-import the JSON and convert it back to BLIF | 18:14 |
lkcl | as you can probably guess, the time taken and the memory usage is astounding | 18:14 |
lkcl | and it has to do that on the *output* of the yosys nextpnr-xilinx techmap, involving (by that point) about 5 or 6 separate and distinct blocks (CARRY4 being one of them) | 18:15 |
lkcl | whereas if that job was done *by* the yosys techmap for xilinx arithmetic, it would have been done in a few milliseconds of CPU time. | 18:16 |
lkcl | oh and then nextpnr-xilinx has to do the exact same job. | 18:17 |
lkcl | duplicated developer effort, huge amounts of CPU power wasted, vast amounts of memory needed. | 18:17 |
lkcl | or | 18:17 |
lkcl | a simple optimisation of yosys techmaps could be done | 18:18 |
lkcl | just a thought :) | 18:19 |
jix | yeah I'm not arguing against improving techmap :) | 18:21 |
lkcl | :) | 18:22 |
lkcl | hence my question, i'd like to have a go at over-riding the techmaps, but without hard-forking yosys. | 18:22 |
lkcl | in theory i could create an non-built-in command script which duplicates the contents of the synth_xilinx one? | 18:23 |
lkcl | http://bygone.clairexen.net/yosys/cmd_synth_xilinx.html | 18:23 |
tpb | Title: Yosys Open SYnthesis Suite :: Command Reference :: synth_xilinx (at bygone.clairexen.net) | 18:23 |
lkcl | where the "fine" sub-command on that has this: | 18:24 |
lkcl | techmap -map +/techmap.v [-map +/xilinx/arith_map.v] (skip if '-nocarry') | 18:24 |
lkcl | that's the bit i'd like to override, i just don't know how | 18:24 |
jix | lkcl: I guess you could compile a modified synth_xilinx pass as a loadable plugin? but I haven't looked into plugins besides "debugging" why the plugin test failed when linking with mold | 18:24 |
* lkcl ponders | 18:25 | |
lkcl | there's enough examples, it should be doable from cut/paste | 18:25 |
lkcl | it does seem... how-to-say... somewhat overkill to have to write in c/c++ in order to override something like this | 18:26 |
jix | I could've used an easy way to selectively override yosys's share files for something completely different | 18:27 |
lkcl | ah yeah | 18:27 |
lkcl | good point | 18:27 |
* lkcl wonders if there's a way to hook into that | 18:27 | |
jix | I didn't see one, adding one that replaces the share path completely wouldn't be too hard | 18:28 |
jix | even better would be to have a list of search paths IMO, but I haven't looked into whether that can work without changing things all over the place | 18:28 |
lkcl | yehyeh, but... nggggh forks. meh :) | 18:29 |
lkcl | i like that. i mean, it's how python works (sys.path), and LD_LIBRARY_PATH, and etc. | 18:29 |
*** vidbina <[email protected]> has quit IRC (Ping timeout: 246 seconds) | 18:46 | |
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Quit: Leaving) | 19:51 | |
checkpoint | guys, has anyone tried synthesizing for GW1NR chips (synth_gowin) ? | 20:11 |
*** vidbina <[email protected]> has joined #yosys | 20:27 | |
*** bpye <bpye!~bpye@user/bpye> has quit IRC (Ping timeout: 276 seconds) | 20:30 | |
*** emeb_mac <[email protected]> has joined #yosys | 20:36 | |
*** bpye <bpye!~bpye@user/bpye> has joined #yosys | 20:39 | |
*** bpye <bpye!~bpye@user/bpye> has quit IRC (Ping timeout: 250 seconds) | 20:48 | |
*** bpye <bpye!~bpye@user/bpye> has joined #yosys | 21:02 | |
*** ec <ec!~ec@gateway/tor-sasl/ec> has quit IRC (Remote host closed the connection) | 21:02 | |
*** ec <ec!~ec@gateway/tor-sasl/ec> has joined #yosys | 21:03 | |
*** ec <ec!~ec@gateway/tor-sasl/ec> has quit IRC (Quit: ec) | 21:41 | |
*** ec <ec!~ec@gateway/tor-sasl/ec> has joined #yosys | 21:43 | |
*** ec <ec!~ec@gateway/tor-sasl/ec> has quit IRC (Client Quit) | 21:44 | |
*** ec <ec!~ec@gateway/tor-sasl/ec> has joined #yosys | 21:44 | |
*** indy <[email protected]> has quit IRC (Ping timeout: 240 seconds) | 22:03 | |
*** indy <[email protected]> has joined #yosys | 22:07 | |
*** adjtm <[email protected]> has joined #yosys | 22:36 | |
*** vidbina <[email protected]> has quit IRC (Ping timeout: 240 seconds) | 23:31 | |
*** ec <ec!~ec@gateway/tor-sasl/ec> has quit IRC (Ping timeout: 240 seconds) | 23:41 | |
*** bpye <bpye!~bpye@user/bpye> has quit IRC (Ping timeout: 256 seconds) | 23:52 | |
*** bpye <bpye!~bpye@user/bpye> has joined #yosys | 23:57 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!