mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Explicitly order function arguments
This commit is contained in:
		
							parent
							
								
									5473e597bf
								
							
						
					
					
						commit
						9a73adde50
					
				
					 1 changed files with 15 additions and 4 deletions
				
			
		|  | @ -48,14 +48,25 @@ struct AlumaccWorker | ||||||
| 		RTLIL::SigSpec cached_cf, cached_of, cached_sf; | 		RTLIL::SigSpec cached_cf, cached_of, cached_sf; | ||||||
| 
 | 
 | ||||||
| 		RTLIL::SigSpec get_lt() { | 		RTLIL::SigSpec get_lt() { | ||||||
| 			if (GetSize(cached_lt) == 0) | 			if (GetSize(cached_lt) == 0) { | ||||||
| 				cached_lt = is_signed ? alu_cell->module->Xor(NEW_ID, get_of(), get_sf()) : get_cf(); | 				if (is_signed) { | ||||||
|  | 					get_of(); | ||||||
|  | 					get_sf(); | ||||||
|  | 					cached_lt = alu_cell->module->Xor(NEW_ID, cached_of, cached_sf); | ||||||
|  | 				} | ||||||
|  | 				else | ||||||
|  | 					cached_lt = get_cf(); | ||||||
|  | 			} | ||||||
| 			return cached_lt; | 			return cached_lt; | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		RTLIL::SigSpec get_gt() { | 		RTLIL::SigSpec get_gt() { | ||||||
| 			if (GetSize(cached_gt) == 0) | 			if (GetSize(cached_gt) == 0) { | ||||||
| 				cached_gt = alu_cell->module->Not(NEW_ID, alu_cell->module->Or(NEW_ID, get_lt(), get_eq()), false, alu_cell->get_src_attribute()); | 				get_lt(); | ||||||
|  | 				get_eq(); | ||||||
|  | 				SigSpec Or = alu_cell->module->Or(NEW_ID, cached_lt, cached_eq); | ||||||
|  | 				cached_gt = alu_cell->module->Not(NEW_ID, Or, false, alu_cell->get_src_attribute()); | ||||||
|  | 			} | ||||||
| 			return cached_gt; | 			return cached_gt; | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue