mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	also make 'stat' save counts to scratchpad
This commit is contained in:
		
							parent
							
								
									a55c3db384
								
							
						
					
					
						commit
						61b05051e1
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		|  | @ -381,6 +381,15 @@ struct StatPass : public Pass { | ||||||
| 
 | 
 | ||||||
| 			log("\n"); | 			log("\n"); | ||||||
| 			data.log_data(top_mod->name, true); | 			data.log_data(top_mod->name, true); | ||||||
|  | 			design->scratchpad_set_int("stat.num_wires", data.num_wires); | ||||||
|  | 			design->scratchpad_set_int("stat.num_wire_bits", data.num_wire_bits); | ||||||
|  | 			design->scratchpad_set_int("stat.num_pub_wires", data.num_pub_wires); | ||||||
|  | 			design->scratchpad_set_int("stat.num_pub_wire_bits", data.num_pub_wire_bits); | ||||||
|  | 			design->scratchpad_set_int("stat.num_memories", data.num_memories); | ||||||
|  | 			design->scratchpad_set_int("stat.num_memory_bits", data.num_memory_bits); | ||||||
|  | 			design->scratchpad_set_int("stat.num_processes", data.num_processes); | ||||||
|  | 			design->scratchpad_set_int("stat.num_cells", data.num_cells); | ||||||
|  | 			design->scratchpad_set_int("stat.area", data.area); | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		log("\n"); | 		log("\n"); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue