mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	opt_dff: more explicit testing, typo
This commit is contained in:
		
							parent
							
								
									e1276560cd
								
							
						
					
					
						commit
						8333a83cef
					
				
					 1 changed files with 17 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,9 +1,17 @@
 | 
			
		|||
# 5287 issue
 | 
			
		||||
# 5279 issue
 | 
			
		||||
# Check only for complimentary patterns elimination
 | 
			
		||||
 | 
			
		||||
read_rtlil opt_dff-simplify.il 
 | 
			
		||||
read_rtlil opt_dff-simplify.il
 | 
			
		||||
 | 
			
		||||
select -assert-count 0 t:$adffe
 | 
			
		||||
select -assert-count 1 t:$adff
 | 
			
		||||
select -assert-count 0 t:$ne
 | 
			
		||||
 | 
			
		||||
opt_dff
 | 
			
		||||
 | 
			
		||||
select -assert-count 1 t:$adffe
 | 
			
		||||
select -assert-count 0 t:$adff
 | 
			
		||||
 | 
			
		||||
select -assert-count 8 t:$ne r:A_WIDTH=3 %i
 | 
			
		||||
select -assert-count 5 t:$ne r:A_WIDTH=2 %i
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -37,7 +45,14 @@ EOT
 | 
			
		|||
 | 
			
		||||
cd test
 | 
			
		||||
proc
 | 
			
		||||
 | 
			
		||||
select -assert-count 0 t:$dffe
 | 
			
		||||
select -assert-count 1 t:$dff
 | 
			
		||||
select -assert-count 0 t:$ne
 | 
			
		||||
 | 
			
		||||
opt_dff
 | 
			
		||||
 | 
			
		||||
select -assert-count 1 t:$dffe
 | 
			
		||||
select -assert-count 0 t:$dff
 | 
			
		||||
select -assert-count 1 t:$ne r:A_WIDTH=2 %i
 | 
			
		||||
select -assert-none t:$ne r:A_WIDTH=3 %i
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue