_catircservices has quit [Ping timeout: 260 seconds]
bluesceada has joined #yosys
_catircservices has joined #yosys
<lofty>
Guest99: that code by itself looks fine, though perhaps the `integer i` declaration needs to be moved outside the `initial` block?
_catircservices has quit [Quit: Bridge terminating on SIGTERM]
_catircservices has joined #yosys
<Guest99>
lofty: that does fix it, but I wanted to limit to scope of i to avoid accidentally reusing it in a different loop elsewhere in the file. I found a better workaround by extracting the code to a task. It seems like maybe local declarations are not allowed in the always block. But I don't really understand why some tools accept it and others do not.
<gatecat>
another workaround is probably to name the block (e.g. `initial begin: foo`)
<gatecat>
but this does look like a yosys bug
GenTooMan has quit [Ping timeout: 260 seconds]
GenTooMan has joined #yosys
lexano has joined #yosys
GenTooMan has quit [Ping timeout: 272 seconds]
cyrozap has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]