mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Optimizing DFFs whose initial value prevents their value from changing
This is a proof of concept implementation that invokes SAT solver via Pass::call method.
This commit is contained in:
		
							parent
							
								
									92dde319fc
								
							
						
					
					
						commit
						9a468f81c4
					
				
					 4 changed files with 78 additions and 3 deletions
				
			
		
							
								
								
									
										15
									
								
								tests/opt/opt_ff_sat.v
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								tests/opt/opt_ff_sat.v
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,15 @@
 | 
			
		|||
module top(
 | 
			
		||||
					 input 	clk,
 | 
			
		||||
					 input 	a,
 | 
			
		||||
					 output b
 | 
			
		||||
					 );
 | 
			
		||||
  reg 						b_reg;
 | 
			
		||||
  initial begin
 | 
			
		||||
    b_reg <= 0;
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  assign b = b_reg;
 | 
			
		||||
  always @(posedge clk) begin
 | 
			
		||||
    b_reg <= a && b_reg;
 | 
			
		||||
  end
 | 
			
		||||
endmodule
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue