mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	async2sync: turn FFs with const clks into gclk FFs with feedback
The formal backends do not support multiple clocks. This includes constant clocks. Constant clocks do appear in what isn't a proper multiclock design, for example when mapping not fully initialized ROMs. As converting FFs with constant clocks to FFs using the global is doable even in a single clock flow, make async2sync do this.
This commit is contained in:
		
							parent
							
								
									b80976b543
								
							
						
					
					
						commit
						5db542742b
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -75,6 +75,9 @@ struct Async2syncPass : public Pass { | ||||||
| 				if (ff.has_gclk) | 				if (ff.has_gclk) | ||||||
| 					continue; | 					continue; | ||||||
| 
 | 
 | ||||||
|  | 				if (ff.has_clk && ff.sig_clk.is_fully_const()) | ||||||
|  | 					ff.has_ce = ff.has_clk = ff.has_srst = false; | ||||||
|  | 
 | ||||||
| 				if (ff.has_clk) | 				if (ff.has_clk) | ||||||
| 				{ | 				{ | ||||||
| 					if (ff.has_sr) { | 					if (ff.has_sr) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue