mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Raise a RuntimeError instead of AssertionError
This commit is contained in:
		
							parent
							
								
									7d644f40ed
								
							
						
					
					
						commit
						4369fc17d0
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -305,7 +305,8 @@ def process_pmgfile(f, filename):
 | 
			
		|||
            block["states"] = set()
 | 
			
		||||
 | 
			
		||||
            for s in line.split()[1:]:
 | 
			
		||||
                assert s in state_types[current_pattern]
 | 
			
		||||
                if s not in state_types[current_pattern]:
 | 
			
		||||
                    raise RuntimeError("'%s' not in state_types" % s)
 | 
			
		||||
                block["states"].add(s)
 | 
			
		||||
 | 
			
		||||
            codetype = "code"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue