mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Add check for BLIF with no model name
This commit is contained in:
		
							parent
							
								
									3046a06490
								
							
						
					
					
						commit
						b604c97b33
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -166,7 +166,10 @@ void parse_blif(RTLIL::Design *design, std::istream &f, IdString dff_name, bool
 | 
			
		|||
					goto error;
 | 
			
		||||
				module = new RTLIL::Module;
 | 
			
		||||
				lastcell = nullptr;
 | 
			
		||||
				module->name = RTLIL::escape_id(strtok(NULL, " \t\r\n"));
 | 
			
		||||
				char *name = strtok(NULL, " \t\r\n");
 | 
			
		||||
				if (name == nullptr)
 | 
			
		||||
					goto error;
 | 
			
		||||
				module->name = RTLIL::escape_id(name);
 | 
			
		||||
				obj_attributes = &module->attributes;
 | 
			
		||||
				obj_parameters = nullptr;
 | 
			
		||||
				if (design->module(module->name))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue