mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Improve handling of "bus" pins in liberty front-end (some files use bus.pin.direction)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
		
							parent
							
								
									c1abd3b02c
								
							
						
					
					
						commit
						2c95dfcb5b
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -582,6 +582,12 @@ struct LibertyFrontend : public Frontend { | ||||||
| 
 | 
 | ||||||
| 					LibertyAst *dir = node->find("direction"); | 					LibertyAst *dir = node->find("direction"); | ||||||
| 
 | 
 | ||||||
|  | 					if (dir == nullptr) { | ||||||
|  | 						LibertyAst *pin = node->find("pin"); | ||||||
|  | 						if (pin != nullptr) | ||||||
|  | 							dir = pin->find("direction"); | ||||||
|  | 					} | ||||||
|  | 
 | ||||||
| 					if (!dir || (dir->value != "input" && dir->value != "output" && dir->value != "inout" && dir->value != "internal")) | 					if (!dir || (dir->value != "input" && dir->value != "output" && dir->value != "inout" && dir->value != "internal")) | ||||||
| 						log_error("Missing or invalid direction for bus %s on cell %s.\n", node->args.at(0).c_str(), log_id(module->name)); | 						log_error("Missing or invalid direction for bus %s on cell %s.\n", node->args.at(0).c_str(), log_id(module->name)); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue