mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	genrtlil: emit \src attribute on CaseRule.
This commit is contained in:
		
							parent
							
								
									93bc5affd3
								
							
						
					
					
						commit
						b1f400aeb8
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -504,6 +504,7 @@ struct AST_INTERNAL::ProcessGenerator | ||||||
| 
 | 
 | ||||||
| 					RTLIL::CaseRule *backup_case = current_case; | 					RTLIL::CaseRule *backup_case = current_case; | ||||||
| 					current_case = new RTLIL::CaseRule; | 					current_case = new RTLIL::CaseRule; | ||||||
|  | 					current_case->attributes["\\src"] = stringf("%s:%d", child->filename.c_str(), child->linenum); | ||||||
| 					last_generated_case = current_case; | 					last_generated_case = current_case; | ||||||
| 					addChunkActions(current_case->actions, this_case_eq_ltemp, this_case_eq_rvalue); | 					addChunkActions(current_case->actions, this_case_eq_ltemp, this_case_eq_rvalue); | ||||||
| 					for (auto node : child->children) { | 					for (auto node : child->children) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue