*** tpb has joined #yosys | 00:00 | |
mwk | ohhh | 00:03 |
---|---|---|
mwk | okay | 00:03 |
mwk | I see what's wrong.. | 00:03 |
mwk | tux3: you can stop bisecting now, I understand the bug | 00:03 |
tux3 | mwk, okay. thanks! | 00:04 |
tux3 | I don't have a repro, but do you still want me to open an issue for it? | 00:04 |
mwk | *sigh* fuck verilog, seriously | 00:04 |
mwk | no, I'll take care of it | 00:04 |
tux3 | thanks | 00:05 |
mwk | want a quick & dirty fix that probably leaves like 100 other instances of the same problem unfixed? | 00:07 |
tux3 | sure, why not | 00:07 |
mwk | try out the mwk/fix-width-0 branch | 00:08 |
mwk | (beware: it's untested) | 00:09 |
tux3 | oh wow, that commit is a little frightening. I did not know that was necessary .... | 00:10 |
mwk | it was not necessary before, because of a bug in verilog frontend | 00:11 |
tux3 | ah | 00:11 |
mwk | here's a little problem | 00:11 |
mwk | you cannot have a 0-width wire in verilog | 00:11 |
mwk | which is quite fucking problematic, because you can in RTLIL | 00:11 |
tux3 | :/ | 00:11 |
mwk | and we're using verilog for converting one cell to another, and the cell you're converting can have 0-width ports, which is *not actually expressible* in Verilog | 00:12 |
mwk | so the input [A_WIDTH-1:0] A; line actually describes a 2-bit input | 00:12 |
mwk | (which happen to be A[-1] and A[0]) | 00:13 |
mwk | by passing that down to $pos, which is an internal cell that is strongly validated and expects 0-width input, you get an error | 00:13 |
tux3 | I see | 00:14 |
tux3 | well, your branch seems to work. Or at least, yosys gives no errors | 00:14 |
tux3 | thanks again | 00:14 |
mwk | alright | 00:16 |
mwk | I'll try to get it properly fixed tomorrow | 00:16 |
mwk | there are way more places like that | 00:17 |
mwk | and yeah, it is a recent regression, PR #2027 specifically | 00:19 |
mwk | tux3: your ticket is https://github.com/YosysHQ/yosys/issues/2058 | 00:31 |
tpb | Title: Fix 0-WIDTH wire handling in techmap rules. · Issue #2058 · YosysHQ/yosys · GitHub (at github.com) | 00:31 |
qu1j0t3 | /b 14 | 00:36 |
*** BinaryLust has joined #yosys | 00:45 | |
*** emeb has quit IRC | 00:56 | |
*** _whitelogger has quit IRC | 01:08 | |
*** _whitelogger has joined #yosys | 01:26 | |
*** citypw has joined #yosys | 01:34 | |
ZipCPU | mwk tux3: Is there a zero-length wire something that I need to fix in the crossbar core that I might not know about? Was it the crossbar core causing the problem? | 02:11 |
mwk | no | 02:46 |
mwk | there is no way it could be your issue, because you cannot actually make a zero-length wire in verilog | 02:46 |
mwk | they appear because of yosys optimizations on RTLIL | 02:47 |
mwk | in this case, on an $alu input | 02:47 |
mwk | probably some const that got optimized away | 02:48 |
*** Degi has quit IRC | 03:25 | |
*** Degi has joined #yosys | 03:27 | |
*** BinaryLust has quit IRC | 04:48 | |
*** DaKnig has quit IRC | 05:32 | |
*** DaKnig has joined #yosys | 05:34 | |
*** Asu has joined #yosys | 06:27 | |
*** jakobwenzel has joined #yosys | 07:31 | |
*** dys has joined #yosys | 07:40 | |
*** ayazar has joined #yosys | 08:00 | |
*** vidbina has joined #yosys | 08:49 | |
*** captain_morgan has quit IRC | 09:12 | |
*** captain_morgan has joined #yosys | 09:13 | |
*** futarisIRCcloud has quit IRC | 09:17 | |
*** kraiskil has joined #yosys | 09:26 | |
*** kraiskil_ has joined #yosys | 09:42 | |
*** kraiskil has quit IRC | 09:45 | |
*** kraiskil_ has quit IRC | 09:54 | |
*** vidbina has quit IRC | 10:06 | |
*** kraiskil_ has joined #yosys | 10:16 | |
*** citypw has quit IRC | 10:17 | |
*** citypw has joined #yosys | 10:17 | |
*** kraiskil_ has quit IRC | 10:42 | |
*** kraiskil_ has joined #yosys | 10:45 | |
*** vidbina has joined #yosys | 10:51 | |
*** kraiskil_ has quit IRC | 11:39 | |
*** mkru has joined #yosys | 11:41 | |
*** kraiskil_ has joined #yosys | 11:41 | |
*** X-Scale` has joined #yosys | 11:43 | |
*** X-Scale has quit IRC | 11:46 | |
*** X-Scale` is now known as X-Scale | 11:46 | |
*** jakobwenzel has quit IRC | 11:56 | |
*** adjtm_ has quit IRC | 11:57 | |
*** adjtm has joined #yosys | 11:58 | |
*** kraiskil_ has quit IRC | 12:01 | |
*** adjtm has quit IRC | 12:16 | |
*** adjtm has joined #yosys | 12:17 | |
*** adjtm has quit IRC | 12:18 | |
*** adjtm has joined #yosys | 12:18 | |
*** futarisIRCcloud has joined #yosys | 12:26 | |
*** kraiskil_ has joined #yosys | 12:27 | |
*** vidbina has quit IRC | 12:31 | |
*** vidbina has joined #yosys | 13:00 | |
*** X-Scale` has joined #yosys | 13:26 | |
*** X-Scale has quit IRC | 13:27 | |
*** X-Scale` is now known as X-Scale | 13:27 | |
*** kraiskil_ has quit IRC | 13:28 | |
*** jfcaron__ has joined #yosys | 13:39 | |
*** X-Scale` has joined #yosys | 13:53 | |
*** X-Scale has quit IRC | 13:54 | |
*** X-Scale` is now known as X-Scale | 13:54 | |
*** jfcaron__ is now known as jfcaron | 14:02 | |
*** citypw has quit IRC | 14:05 | |
*** vidbina has quit IRC | 14:17 | |
*** FFY00 has quit IRC | 14:20 | |
*** FFY00 has joined #yosys | 14:23 | |
*** FFY00 has quit IRC | 14:27 | |
*** FFY00 has joined #yosys | 14:28 | |
*** jakobwenzel has joined #yosys | 14:28 | |
*** BinaryLust has joined #yosys | 14:44 | |
*** jakobwenzel has quit IRC | 15:35 | |
*** kraiskil_ has joined #yosys | 15:47 | |
*** FFY00 has quit IRC | 15:54 | |
*** FFY00 has joined #yosys | 15:55 | |
*** dys has quit IRC | 16:02 | |
*** kraiskil_ has quit IRC | 17:27 | |
*** kraiskil_ has joined #yosys | 17:37 | |
*** mkru has quit IRC | 17:40 | |
*** jakobwenzel has joined #yosys | 18:04 | |
*** jakobwenzel has quit IRC | 18:53 | |
*** BinaryLust has quit IRC | 18:59 | |
*** dys has joined #yosys | 19:12 | |
*** ayazar has quit IRC | 19:28 | |
*** FFY00 has quit IRC | 19:34 | |
*** kraiskil_ has quit IRC | 19:45 | |
*** az0re has quit IRC | 20:19 | |
*** BinaryLust has joined #yosys | 20:23 | |
*** az0re has joined #yosys | 20:59 | |
*** BinaryLust has quit IRC | 21:01 | |
*** BinaryLust has joined #yosys | 21:02 | |
*** jakobwenzel has joined #yosys | 21:04 | |
Forty-Bot | does yosys allow for some_module #(SOME_PARAMETER = foo) (/* inputs and outputs */) syntax? | 21:09 |
daveshah | Yes | 21:10 |
daveshah | If you mean in the module header? | 21:10 |
Forty-Bot | I mean when instantiating the module | 21:10 |
daveshah | No you need an instance name between the parameters and ports | 21:11 |
Forty-Bot | ah, ok | 21:12 |
Forty-Bot | thanks | 21:12 |
daveshah | e.g. https://github.com/cliffordwolf/picorv32/blob/master/picosoc/icebreaker.v#L109 | 21:13 |
tpb | Title: picorv32/icebreaker.v at master · cliffordwolf/picorv32 · GitHub (at github.com) | 21:13 |
*** ross_s has quit IRC | 21:20 | |
*** Asu has quit IRC | 21:27 | |
*** BinaryLust has quit IRC | 21:35 | |
*** BinaryLust has joined #yosys | 21:36 | |
*** az0re has quit IRC | 22:05 | |
*** az0re has joined #yosys | 22:14 | |
*** BinaryLust has quit IRC | 22:57 | |
*** jfcaron has quit IRC | 23:31 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!