Thursday, 2023-11-02

*** tpb <[email protected]> has joined #yosys00:00
*** lexano <[email protected]> has quit IRC (Ping timeout: 255 seconds)00:08
Myrl-sakiHm, if I do `mem_write = 'x; case ...; endcase` where only some case expressions have `mem_write` set, Yosys still uses a full `eq`.02:08
Myrl-sakiSpecifically, if one case is `b00000` and the other is `b01000`, going `mem_write = 0` and `mem_write = 1` respectively, it should be possible for `mem_write = x[4]` no?02:09
Myrl-sakiOkay, seems like the answer is Yes, sometimes.02:11
Myrl-sakiAnd I think I know why.02:12
Myrl-sakiAh yeah, it's because I'm batching things together.02:12
Myrl-sakiHow do I set multiple things in a case block, while still letting Yosys consider those things to be separate?02:15
Myrl-sakiHoisting out a case to multiple cases, basically, if that sounds better.02:15
Myrl-sakiOne for each register set.02:15
Myrl-sakiFor the curious: https://gist.github.com/adrianparvino/3d3c417a1639f240ec04fffec9fc9ab302:16
Myrl-sakiThis inhibits the `mem_write = x[4]`, but simply having `mem_write` inside does not.02:17
Myrl-sakiWith that said, I have other problems with just having `mem_write` inside, which is that it actually infers a memory block first, so I have to actually `memory_map` it to get `mem_write = x[4]`02:19
Myrl-saki(Actually, that's not a problem since later passes should be able to figure that out.)02:20
Myrl-sakiOh cool, so turns out in this example, `mem_write` *does* get simplified.02:21
Myrl-sakiBut yes, if I have it in a larger block02:21
Myrl-sakiIn here, it does not. https://gist.github.com/adrianparvino/b7538900f139344198b1f6e09c493ff202:22
Myrl-saki(To be fair, I kinda don't like this, so I'm rewriting it...)02:35
Myrl-sakiAlso, kinda nice that I realized I could just do this instead of trying to figure out how to reduce the expressions through analysis with a pen and paper lol02:40
*** jn_ <jn_!~quassel@2001-4dd4-56d6-0-20d-b9ff-fe49-15fc.ipv6dyn.netcologne.de> has joined #yosys05:38
*** jn <jn!~quassel@user/jn/x-3390946> has quit IRC (Ping timeout: 272 seconds)05:38
*** FabM <FabM!~FabM@2a03:d604:103:600:2e60:8c7c:e8fb:7990> has joined #yosys06:57
Myrl-sakiHm, I can't seem to consistently get it to codegen that though. :(08:30
Myrl-sakihttps://gist.github.com/adrianparvino/6ee125aea79459b3a28c18e0207a46a908:30
Myrl-sakiCodegens to an eq.08:30
Myrl-saki(Works with pmux2shiftx though..)08:34
*** lexano <[email protected]> has joined #yosys12:31
*** notgull <notgull!~notgull@ec2-50-112-148-23.us-west-2.compute.amazonaws.com> has quit IRC (Ping timeout: 246 seconds)12:47
*** notgull <notgull!~notgull@ec2-50-112-148-23.us-west-2.compute.amazonaws.com> has joined #yosys12:48
*** nelgau <[email protected]> has joined #yosys13:51
*** schaeg <schaeg!~anabrid@2a02:3036:266:2d3f:f1a6:10a7:bec2:fb80> has joined #yosys14:34
*** oldtopman <[email protected]> has quit IRC (Remote host closed the connection)14:50
*** oldtopman <[email protected]> has joined #yosys14:51
*** oldtopman <[email protected]> has quit IRC (Client Quit)14:55
*** somlo_ <[email protected]> has joined #yosys15:00
*** somlo <[email protected]> has quit IRC (Ping timeout: 255 seconds)15:03
*** oldtopman <[email protected]> has joined #yosys15:08
*** nelgau <[email protected]> has quit IRC (Read error: Connection reset by peer)15:25
*** nelgau <[email protected]> has joined #yosys15:26
*** nelgau <[email protected]> has quit IRC (Read error: Connection reset by peer)15:33
*** nelgau <[email protected]> has joined #yosys15:33
*** nelgau <[email protected]> has quit IRC (Read error: Connection reset by peer)15:52
*** nelgau <[email protected]> has joined #yosys15:52
*** nelgau <[email protected]> has quit IRC (Read error: Connection reset by peer)17:28
*** nelgau <[email protected]> has joined #yosys17:28
*** so-offish <so-offish!~so-offish@2610:148:610:2b10::4e> has joined #yosys18:15
*** nelgau <[email protected]> has quit IRC (Read error: Connection reset by peer)18:28
*** nelgau <[email protected]> has joined #yosys18:28
*** smkz <smkz!~x@user/smkz> has quit IRC (Quit: smkz)18:35
*** smkz <smkz!~x@user/smkz> has joined #yosys18:43
*** lansiir <[email protected]> has joined #yosys18:49
*** oldtopman <[email protected]> has quit IRC (Read error: Connection reset by peer)18:50
*** smkz <smkz!~x@user/smkz> has quit IRC (Quit: smkz)18:52
*** smkz <smkz!~x@user/smkz> has joined #yosys18:55
*** lansiir is now known as oldtopman19:02
*** nelgau <[email protected]> has quit IRC (Read error: Connection reset by peer)19:38
*** nelgau <[email protected]> has joined #yosys19:38
*** gordonDrogon <[email protected]> has quit IRC (Ping timeout: 258 seconds)20:29
*** gordonDrogon <[email protected]> has joined #yosys20:29
*** nelgau_ <[email protected]> has joined #yosys20:30
*** nelgau <[email protected]> has quit IRC (Read error: Connection reset by peer)20:31
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Ping timeout: 248 seconds)21:37
*** schaeg_ <schaeg_!~anabrid@2a02:3036:266:2d3f:f1a6:10a7:bec2:fb80> has joined #yosys22:44
*** schaeg <schaeg!~anabrid@2a02:3036:266:2d3f:f1a6:10a7:bec2:fb80> has quit IRC (Ping timeout: 240 seconds)22:45
*** nonchip <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)23:19
*** nonchip <[email protected]> has joined #yosys23:19
*** lexano <[email protected]> has quit IRC (Ping timeout: 255 seconds)23:55

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