mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 19:52:31 +00:00 
			
		
		
		
	It was previously possible to override global parameters on a per-instance basis. This could be dangerous when using positional parameter bindings, hiding oversupplied parameters.
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			257 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			257 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| read_verilog -sv <<EOF
 | |
| parameter P = 1;
 | |
| module example(
 | |
|     output integer out
 | |
| );
 | |
|     assign out = P;
 | |
| endmodule
 | |
| module top(
 | |
|     output integer out
 | |
| );
 | |
|     example #(2) e1(out);
 | |
| endmodule
 | |
| EOF
 | |
| 
 | |
| logger -expect error "Can't find object for defparam" 1
 | |
| hierarchy
 |