You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The line in question is generate_permutation[cDBITS + k++] = i;, which I think is a bit more specific than just "when SystemVerilog source contains ++"; for example if Yosys didn't like ++ it'd have errored elsewhere.
I'm interested in adding support for assignment expressions to Yosys, but it's not something I'm currently working on. In the meantime, you could use https://github.com/zachjs/sv2v, which already supports this feature.
zachjs
changed the title
“unexpected TOK_INCREMENT” when SystemVerilog source contains ++
SystemVerilog procedural assignments within expressions
Sep 3, 2023
Version
“unexpected TOK_INCREMENT” when SystemVerilog source contains ++
On which OS did this happen?
Linux
Reproduction Steps
yosys -read -sv hamming/hamming_dec.sv
Expected Behavior
……
Actual Behavior
-- Parsing
hamming/hamming_dec.sv' using frontend
-sv' --Parsing SystemVerilog input from `hamming/hamming_dec.sv' to AST representation.
hamming/hamming_parameters.svh:57: ERROR: syntax error, unexpected TOK_INCREMENT
The text was updated successfully, but these errors were encountered: