mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Merge pull request #1811 from PeterCrozier/typedef_scope
Support module/package/interface/block scope for typedef names.
This commit is contained in:
		
						commit
						d5e2061687
					
				
					 6 changed files with 89 additions and 44 deletions
				
			
		| 
						 | 
				
			
			@ -31,5 +31,12 @@ module top;
 | 
			
		|||
	always @(*) assert(inner_i2 == 4'h2);
 | 
			
		||||
	always @(*) assert(inner_enum2 == 3'h4);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
endmodule
 | 
			
		||||
 | 
			
		||||
typedef logic[7:0]  between_t;
 | 
			
		||||
 | 
			
		||||
module other;
 | 
			
		||||
	between_t a = 8'h42;
 | 
			
		||||
	always @(*) assert(a == 8'h42);
 | 
			
		||||
endmodule
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue