mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Handle known inout ports as outputs in show command
This commit is contained in:
		
							parent
							
								
									afb4fa1aea
								
							
						
					
					
						commit
						9368c11144
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -185,7 +185,7 @@ struct ShowWorker
 | 
				
			||||||
			std::vector<RTLIL::IdString> in_ports, out_ports;
 | 
								std::vector<RTLIL::IdString> in_ports, out_ports;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			for (auto &conn : it.second->connections) {
 | 
								for (auto &conn : it.second->connections) {
 | 
				
			||||||
				if (ct.cell_input(it.second->type, conn.first))
 | 
									if (!ct.cell_output(it.second->type, conn.first))
 | 
				
			||||||
					in_ports.push_back(conn.first);
 | 
										in_ports.push_back(conn.first);
 | 
				
			||||||
				else
 | 
									else
 | 
				
			||||||
					out_ports.push_back(conn.first);
 | 
										out_ports.push_back(conn.first);
 | 
				
			||||||
| 
						 | 
					@ -210,7 +210,7 @@ struct ShowWorker
 | 
				
			||||||
			std::string code;
 | 
								std::string code;
 | 
				
			||||||
			for (auto &conn : it.second->connections) {
 | 
								for (auto &conn : it.second->connections) {
 | 
				
			||||||
				code += gen_portbox(stringf("c%d:p%d", id2num(it.first), id2num(conn.first)),
 | 
									code += gen_portbox(stringf("c%d:p%d", id2num(it.first), id2num(conn.first)),
 | 
				
			||||||
						conn.second, !ct.cell_input(it.second->type, conn.first));
 | 
											conn.second, ct.cell_output(it.second->type, conn.first));
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef CLUSTER_CELLS_AND_PORTBOXES
 | 
					#ifdef CLUSTER_CELLS_AND_PORTBOXES
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue