mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	ice40: Honor the "dont_touch" attribute in FFSSR pass
This is useful if you want to place FF manually ... can't merge SR in those because it might make the manual placement invalid Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
		
							parent
							
								
									47a5dfdaa4
								
							
						
					
					
						commit
						add6ab9b2a
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -81,6 +81,9 @@ struct Ice40FfssrPass : public Pass {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			for (auto cell : ff_cells)
 | 
								for (auto cell : ff_cells)
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
 | 
									if (cell->get_bool_attribute("\\dont_touch"))
 | 
				
			||||||
 | 
										continue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				SigSpec sig_d = cell->getPort("\\D");
 | 
									SigSpec sig_d = cell->getPort("\\D");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				if (GetSize(sig_d) < 1)
 | 
									if (GetSize(sig_d) < 1)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue