Saturday, 2023-11-04

*** tpb <[email protected]> has joined #yosys00:00
*** lambda <[email protected]> has joined #yosys00:01
*** kristianpaul <kristianpaul!~paul@user/kristianpaul> has joined #yosys00:01
*** notgull <notgull!~notgull@ec2-50-112-148-23.us-west-2.compute.amazonaws.com> has joined #yosys00:02
*** srk <srk!~sorki@user/srk> has joined #yosys00:05
*** bluesceada <bluesceada!~dennis@user/bluesceada> has joined #yosys00:06
*** anticw <[email protected]> has joined #yosys00:10
*** schaeg_ <schaeg_!~anabrid@2a02:3036:264:4a2:4a8:d50:b92c:d984> has joined #yosys02:07
*** schaeg <schaeg!~anabrid@2a02:3036:265:eac:46c1:4472:f0a7:6183> has quit IRC (Ping timeout: 258 seconds)02:07
*** Micah71 <[email protected]> has joined #yosys02:29
*** Micah71 <[email protected]> has quit IRC (Client Quit)02:33
*** skipwich <skipwich!~skipwich@user/skipwich> has quit IRC (Quit: DISCONNECT)03:00
*** skipwich <skipwich!~skipwich@user/skipwich> has joined #yosys03:02
*** pbsds <[email protected]> has joined #yosys03:50
*** notgull <notgull!~notgull@ec2-50-112-148-23.us-west-2.compute.amazonaws.com> has quit IRC (Ping timeout: 240 seconds)04:10
*** notgull <notgull!~notgull@2600:1f14:8f4:3100:e2a2:c920:847d:d23> has joined #yosys04:14
*** citypw <citypw!~citypw@gateway/tor-sasl/citypw> has joined #yosys06:33
mewtHi, a log2-ceil function I've been using for years now causes yosys to bail if I try to set a localparam with it06:49
mewte.g. localparam MY_PARAM = clog2(OTHERPARAM);06:49
mewtThe error I get is "Non-constant function call in constant expression."06:49
mewtthe design simulates just fine and Icarus and Verilator are OK with it. is there something I'm missing here?06:50
mewtAh I see, this is specifically for the case where OTHERPARAM is a product of two other localparams...06:51
mewtShould this work?06:52
mewtVersion information is Yosys 0.32+76 (git sha1 73cb4977b, clang 15.0.7 -fPIC -Os)06:53
loftymewt: do you mean the built-in $clog2?07:05
mewti, er, didn't know there was a built-in... this is the thing I'm using atm https://0x0.st/HtXt.vh07:08
mewtseems to happen with the built-in too07:10
mewtI shoiuld definitely be using that though, sorry about that07:10
mewtminimal failing example would be like... ' localparam PARAM1 = 2; localparam PARAM2 = 4; localparam PROD = PARAM1*PARAM2; localparam CL2_PROD = $clog2(PROD); '07:12
mewtor similar07:12
loftyAlas, I might have to get out of bed for this07:19
loftymewt: https://gist.github.com/Ravenslofty/8d80cd89b595622b9683ab7574d12781 <--- this runs fine, so you're going to have to provide a better test case07:25
mewtstrange, one sec07:30
mewtalright, I'll have to come back to this tomorrow -- the pattern is exactly the same in the failing file but I guess I should have tested it. I'll get a minimal test case I actually run through yosys at that point07:36
*** bjorkintosh <bjorkintosh!~bjork@user/bjorkintosh> has quit IRC (Remote host closed the connection)08:09
*** bjorkintosh <bjorkintosh!~bjork@2600:1700:5400:c80:ed:4f79:f76d:c9b8> has joined #yosys08:09
*** nelgau <[email protected]> has quit IRC (Read error: Connection reset by peer)09:21
*** bjorkintosh <bjorkintosh!~bjork@user/bjorkintosh> has quit IRC (Ping timeout: 248 seconds)09:32
*** schaeg <schaeg!~anabrid@2a02:3036:264:4a2:4a8:d50:b92c:d984> has joined #yosys10:09
*** schaeg_ <schaeg_!~anabrid@2a02:3036:264:4a2:4a8:d50:b92c:d984> has quit IRC (Ping timeout: 258 seconds)10:09
*** bjorkintosh <bjorkintosh!~bjork@2600:1700:5400:c80:ed:4f79:f76d:c9b8> has joined #yosys11:53
*** cr1901_ <cr1901_!~cr1901@2601:8d:8600:226:8d1d:90ad:242d:46c1> has quit IRC (Quit: Leaving)12:47
*** cr1901 <cr1901!~cr1901@2601:8d:8600:226:64c8:2cb0:a67a:365c> has joined #yosys12:51
*** jkm <[email protected]> has joined #yosys13:13
*** nelgau <[email protected]> has joined #yosys13:33
*** bjorkintosh <bjorkintosh!~bjork@user/bjorkintosh> has quit IRC (Remote host closed the connection)13:45
*** bjorkintosh <bjorkintosh!~bjork@2600:1700:5400:c80:4cb6:b073:ec36:e8e2> has joined #yosys13:48
*** citypw <citypw!~citypw@gateway/tor-sasl/citypw> has quit IRC (Ping timeout: 256 seconds)14:09
*** bjorkintosh <bjorkintosh!~bjork@user/bjorkintosh> has quit IRC (Remote host closed the connection)14:19
*** bjorkintosh <bjorkintosh!~bjork@user/bjorkintosh> has joined #yosys14:19
*** somlo_ <[email protected]> has quit IRC (Remote host closed the connection)14:21
*** peeps[zen] <peeps[zen]!~peepsalot@openscad/peepsalot> has quit IRC (Quit: Connection reset by peep)15:19
*** peeps[zen] <peeps[zen]!~peepsalot@openscad/peepsalot> has joined #yosys15:20
*** lexano <[email protected]> has joined #yosys15:45
*** peeps[zen] <peeps[zen]!~peepsalot@openscad/peepsalot> has quit IRC (Ping timeout: 248 seconds)15:50
*** peeps[zen] <peeps[zen]!~peepsalot@openscad/peepsalot> has joined #yosys15:52
*** somlo <[email protected]> has joined #yosys16:19
*** hrberg <[email protected]> has quit IRC (Ping timeout: 255 seconds)17:31
*** hrberg <[email protected]> has joined #yosys17:31
mewtok here's an actual tested-failing example... https://0x0.st/Htqc.v18:14
mewtthis doesn't seem materially different to me at all, so I've no idea...18:15
loftymewt: that's odd, but as a temporary hack, if you make the localparams just parameters, it seems to compile18:21
mewttemporary hack is good for now, thank you18:25
mewtwait, does it? It sure doesn't here18:29
mewtI guess I'm doing something else wrong18:29
mewtin case I've been braindead in the yosys invocation, 'yosys -p "synth_ice40 -json testcase.json -top bram_inst" bram_inst.v'18:39
mewtI also rebuilt last night, so I'm on "Yosys 0.34+60 (git sha1 6f1ca6871, clang 16.0.6 -fPIC -Os)"18:40
*** schaeg <schaeg!~anabrid@2a02:3036:264:4a2:4a8:d50:b92c:d984> has quit IRC (Ping timeout: 248 seconds)21:41
*** jkm <[email protected]> has quit IRC (Ping timeout: 248 seconds)22:05
*** nonchip <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)23:19
*** nonchip <[email protected]> has joined #yosys23:19

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