mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Added "src" attribute to processes
This commit is contained in:
		
							parent
							
								
									6dfb66d262
								
							
						
					
					
						commit
						0e52f3fa01
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -265,6 +265,7 @@ struct AST_INTERNAL::ProcessGenerator
 | 
			
		|||
	{
 | 
			
		||||
		// generate process and simple root case
 | 
			
		||||
		proc = new RTLIL::Process;
 | 
			
		||||
		proc->attributes["\\src"] = stringf("%s:%d", always->filename.c_str(), always->linenum);
 | 
			
		||||
		proc->name = stringf("$proc$%s:%d$%d", always->filename.c_str(), always->linenum, RTLIL::autoidx++);
 | 
			
		||||
		for (auto &attr : always->attributes) {
 | 
			
		||||
			if (attr.second->type != AST_CONSTANT)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue