mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	json: Parse inout correctly rather than as an output
This commit is contained in:
		
							parent
							
								
									007f29b9c2
								
							
						
					
					
						commit
						366ce87cff
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -271,6 +271,7 @@ void json_import(Design *design, string &modname, JsonNode *node) | |||
| 				port_wire->port_output = true; | ||||
| 			} else | ||||
| 			if (port_direction_node->data_string == "inout") { | ||||
| 				port_wire->port_input = true; | ||||
| 				port_wire->port_output = true; | ||||
| 			} else | ||||
| 				log_error("JSON port node '%s' has invalid '%s' direction attribute.\n", log_id(port_name), port_direction_node->data_string.c_str()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue