mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Fixed BLIF parser for empty port assignments
This commit is contained in:
		
							parent
							
								
									45af4a4acf
								
							
						
					
					
						commit
						22c549ab37
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -267,10 +267,10 @@ void parse_blif(RTLIL::Design *design, std::istream &f, std::string dff_name, bo
 | 
			
		|||
 | 
			
		||||
				while ((p = strtok(NULL, " \t\r\n")) != NULL) {
 | 
			
		||||
					char *q = strchr(p, '=');
 | 
			
		||||
					if (q == NULL || !q[0] || !q[1])
 | 
			
		||||
					if (q == NULL || !q[0])
 | 
			
		||||
						goto error;
 | 
			
		||||
					*(q++) = 0;
 | 
			
		||||
					cell->setPort(RTLIL::escape_id(p), blif_wire(q));
 | 
			
		||||
					cell->setPort(RTLIL::escape_id(p), *q ? blif_wire(q) : SigSpec());
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				obj_attributes = &cell->attributes;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue