mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	cxxrtl: Round up constant width
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
		
							parent
							
								
									bbf343589b
								
							
						
					
					
						commit
						1b93dda037
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -732,7 +732,7 @@ struct CxxrtlWorker { | |||
| 			int chunk_width = min(width, CHUNK_SIZE); | ||||
| 			uint32_t chunk = data.extract(offset, chunk_width).as_int(); | ||||
| 			if (fixed_width) | ||||
| 				f << stringf("0x%.*xu", chunk_width / 4, chunk); | ||||
| 				f << stringf("0x%.*xu", (3 + chunk_width) / 4, chunk); | ||||
| 			else | ||||
| 				f << stringf("%#xu", chunk); | ||||
| 			if (width > CHUNK_SIZE) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue