mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +00:00 
			
		
		
		
	Merge pull request #3943 from YosysHQ/verific_lineinfo
Set src attribute for verific with full info
This commit is contained in:
		
						commit
						8fb807cd24
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -265,7 +265,7 @@ void VerificImporter::import_attributes(dict<RTLIL::IdString, RTLIL::Const> &att | |||
| 	Att *attr; | ||||
| 
 | ||||
| 	if (obj->Linefile()) | ||||
| 		attributes[ID::src] = stringf("%s:%d", LineFile::GetFileName(obj->Linefile()), LineFile::GetLineNo(obj->Linefile())); | ||||
| 		attributes[ID::src] = stringf("%s:%d.%d-%d.%d", LineFile::GetFileName(obj->Linefile()), obj->Linefile()->GetLeftLine(), obj->Linefile()->GetLeftCol(), obj->Linefile()->GetRightLine(), obj->Linefile()->GetRightCol()); | ||||
| 
 | ||||
| 	FOREACH_ATTRIBUTE(obj, mi, attr) { | ||||
| 		if (attr->Key()[0] == ' ' || attr->Value() == nullptr) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue