mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	deminout: Don't demote constant-driven inouts to inputs
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
		
							parent
							
								
									0b9bb852c6
								
							
						
					
					
						commit
						d3fe9465f3
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -113,7 +113,8 @@ struct DeminoutPass : public Pass {
 | 
				
			||||||
						{
 | 
											{
 | 
				
			||||||
							if (bits_numports[bit] > 1 || bits_inout.count(bit))
 | 
												if (bits_numports[bit] > 1 || bits_inout.count(bit))
 | 
				
			||||||
								new_input = true, new_output = true;
 | 
													new_input = true, new_output = true;
 | 
				
			||||||
 | 
												if (bit == State::S0 || bit == State::S1)
 | 
				
			||||||
 | 
													new_output = true;
 | 
				
			||||||
							if (bits_written.count(bit)) {
 | 
												if (bits_written.count(bit)) {
 | 
				
			||||||
								new_output = true;
 | 
													new_output = true;
 | 
				
			||||||
								if (bits_tribuf.count(bit))
 | 
													if (bits_tribuf.count(bit))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue