mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	- Add support for assignments within expressions, e.g., `x[y++] = z;` or `x = (y *= 2) - 1;`. The logic is handled entirely within the parser by injecting statements into the current procedural block. - Add support for pre-increment/decrement statements, which are behaviorally equivalent to post-increment/decrement statements. - Fix non-standard attribute position used for post-increment/decrement statements.
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			238 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			238 B
		
	
	
	
		
			Text
		
	
	
	
	
	
read_verilog -sv <<EOF
 | 
						|
module top;
 | 
						|
integer x, y;
 | 
						|
initial y = (x += 1);
 | 
						|
endmodule
 | 
						|
EOF
 | 
						|
design -reset
 | 
						|
 | 
						|
logger -expect error "syntax error, unexpected TOK_ID" 1
 | 
						|
read_verilog <<EOF
 | 
						|
module top;
 | 
						|
integer x, y;
 | 
						|
initial y = (x += 1);
 | 
						|
endmodule
 | 
						|
EOF
 |