mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	ast recognize lower case x and z and verific gives upper case
This commit is contained in:
		
							parent
							
								
									2f93579bd1
								
							
						
					
					
						commit
						3af499c60f
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
					@ -203,8 +203,12 @@ void VerificImporter::import_attributes(dict<RTLIL::IdString, RTLIL::Const> &att
 | 
				
			||||||
				auto p = v;
 | 
									auto p = v;
 | 
				
			||||||
				if (p) {
 | 
									if (p) {
 | 
				
			||||||
					if (*p != '"') {
 | 
										if (*p != '"') {
 | 
				
			||||||
						if (p != nullptr)
 | 
											auto l = strlen(p);
 | 
				
			||||||
							attributes.emplace(stringf("\\enum_value_%s", p), RTLIL::escape_id(k));
 | 
											auto q = (char*)malloc(l+1);
 | 
				
			||||||
 | 
											strncpy(q, p, l);
 | 
				
			||||||
 | 
											q[l] = '\0';
 | 
				
			||||||
 | 
											for(char *ptr = q; *ptr; ++ptr )*ptr = tolower(*ptr);
 | 
				
			||||||
 | 
											attributes.emplace(stringf("\\enum_value_%s", q), RTLIL::escape_id(k));
 | 
				
			||||||
					} else {
 | 
										} else {
 | 
				
			||||||
						auto *q = p+1;
 | 
											auto *q = p+1;
 | 
				
			||||||
						for (; *q != '"'; q++)
 | 
											for (; *q != '"'; q++)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue