somlo has quit [Remote host closed the connection]
emeb has joined #yosys
somlo has joined #yosys
az0re has quit [Remote host closed the connection]
z0ttel has joined #yosys
jakobwenzel has joined #yosys
jakobwenzel has quit [Client Quit]
az0re has joined #yosys
emeb_mac has joined #yosys
alex34 has joined #yosys
<alex34>
Simple question, folks: I'm new to verilog in general, but it doesn't seem that typedefs are supported with the open source yosys frontend, is that right? Even simple examples seem to result in a parse error
<tnt>
alex34: is that a verilog or system verilog feature ?
<tnt>
you might need the -sv switch when reading files.
<alex34>
I think it's sv, and I'm already using -sv
<Lofty>
alex34: Yosys's SV support is far from complete and progress is...slow.
<alex34>
understood, but the README indicates that typedefs are supported so I'm trying to understand that
<alex34>
I didn't install from github so perhaps the homebrew package is much older? Or maybe the readme is inaccurate?
<Lofty>
What does `yosys -V` say, alex34?
N2TOH has joined #yosys
<alex34>
Yosys 0.9 (git sha1 UNKNOWN, clang 12.0.0 -fPIC -Os). I've installed from homebrew, so maybe I just need to grab from github?
<Lofty>
alex34: then your version of Yosys is about a year old, and you should get the latest code from GitHub
<Lofty>
Yosys releases are approximately yearly
<alex34>
ohhh
<Lofty>
No official schedule or anything, but
<alex34>
wow I didn't realize that, ok thanks I'll give github a shot!
N2TOH_ has quit [Ping timeout: 240 seconds]
<Lofty>
Yeah, 0.9 is 26th of August 2019.
<daveshah>
The big question is whether the next release will be 1.0 or 0.10
<Lofty>
Typedef support (with wrong syntax) initially made it into Yosys in October of 2019, and seems to have been fixed properly in March of this year
<Lofty>
So yes, it probably is supported, but your version predates it, alex34.
<alex34>
yeah that makes sense. I saw discussion in some of the issues so I figured I must have been doing something wrong
<daveshah>
The support is still a bit limited, like all the SystemVerilog stuff in Yosys it is a bit 'best effort'
<alex34>
I think I was having a similar issue with structs (I'd like some simple struct support if it exists), so I bet it's the same problem
<Lofty>
I think there's sv2v as a stopgap, and other people are trying to add UHDM as a proper front-end
<Lofty>
~~and hey, you'll also get my improved Intel support as a bonus~~
<Lofty>
:P
N2TOH has quit [Read error: Connection reset by peer]
N2TOH has joined #yosys
N2TOH_ has joined #yosys
N2TOH__ has joined #yosys
N2TOH has quit [Ping timeout: 264 seconds]
N2TOH_ has quit [Ping timeout: 260 seconds]
awordnot has quit [Ping timeout: 264 seconds]
<alex34>
Lofty indeed that did the trick :)
<Lofty>
Glad to hear it
awordnot has joined #yosys
awordnot has quit [Read error: Connection reset by peer]
awordnot has joined #yosys
Asu has quit [Quit: Konversation terminated!]
maartenBE has quit [Ping timeout: 272 seconds]
maartenBE has joined #yosys
peepsalot has quit [Read error: Connection reset by peer]