mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Another $clog2 bugfix
This commit is contained in:
		
							parent
							
								
									d46bac3305
								
							
						
					
					
						commit
						48b00dccea
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1365,6 +1365,8 @@ skip_dynamic_range_lvalue_expansion:;
 | 
			
		|||
					log_error("Failed to evaluate system function `%s' with non-constant value at %s:%d.\n", str.c_str(), filename.c_str(), linenum);
 | 
			
		||||
 | 
			
		||||
				RTLIL::Const arg_value = buf->bitsAsConst();
 | 
			
		||||
				if (arg_value.as_bool())
 | 
			
		||||
					arg_value = const_sub(arg_value, 1, false, false, SIZE(arg_value));
 | 
			
		||||
				delete buf;
 | 
			
		||||
 | 
			
		||||
				uint32_t result = 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue