mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +00:00 
			
		
		
		
	Preserve VHDL architecture name in attribute
This commit is contained in:
		
							parent
							
								
									59fbee4009
								
							
						
					
					
						commit
						d473a207a1
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -52,6 +52,7 @@ USING_YOSYS_NAMESPACE | ||||||
| #ifdef VERIFIC_VHDL_SUPPORT | #ifdef VERIFIC_VHDL_SUPPORT | ||||||
| #include "vhdl_file.h" | #include "vhdl_file.h" | ||||||
| #include "VhdlUnits.h" | #include "VhdlUnits.h" | ||||||
|  | #include "NameSpace.h" | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| #ifdef VERIFIC_EDIF_SUPPORT | #ifdef VERIFIC_EDIF_SUPPORT | ||||||
|  | @ -1276,6 +1277,13 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::ma | ||||||
| 	} | 	} | ||||||
| 	import_attributes(module->attributes, nl, nl); | 	import_attributes(module->attributes, nl, nl); | ||||||
| 	module->set_string_attribute(ID::hdlname, nl->CellBaseName()); | 	module->set_string_attribute(ID::hdlname, nl->CellBaseName()); | ||||||
|  | #ifdef VERIFIC_VHDL_SUPPORT | ||||||
|  | 	if (nl->IsFromVhdl()) { | ||||||
|  | 		NameSpace name_space(0); | ||||||
|  | 		char *architecture_name = name_space.ReName(nl->Name()) ; | ||||||
|  | 		module->set_string_attribute(ID(architecture), (architecture_name) ? architecture_name : nl->Name()); | ||||||
|  | 	} | ||||||
|  | #endif	 | ||||||
| 	const char *param_name ; | 	const char *param_name ; | ||||||
| 	const char *param_value ; | 	const char *param_value ; | ||||||
| 	MapIter mi; | 	MapIter mi; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue