mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	Make return value of $clog2 signed
As per Verilog 2005 - 17.11.1. Fixes #708 Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
		
							parent
							
								
									ab97eddee9
								
							
						
					
					
						commit
						86ce43999e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1913,7 +1913,7 @@ skip_dynamic_range_lvalue_expansion:;
 | 
			
		|||
					if (arg_value.bits.at(i) == RTLIL::State::S1)
 | 
			
		||||
						result = i + 1;
 | 
			
		||||
 | 
			
		||||
				newNode = mkconst_int(result, false);
 | 
			
		||||
				newNode = mkconst_int(result, true);
 | 
			
		||||
				goto apply_newNode;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue