mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	stat: Fix JSON output for empty designs
This commit is contained in:
		
							parent
							
								
									ed02d52f30
								
							
						
					
					
						commit
						7036a312bf
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -452,7 +452,7 @@ struct StatPass : public Pass {
 | 
			
		|||
 | 
			
		||||
		if (json_mode) {
 | 
			
		||||
			log("\n");
 | 
			
		||||
			log("   },\n");
 | 
			
		||||
			log(top_mod == nullptr ? "   }\n" : "   },\n");
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (top_mod != nullptr)
 | 
			
		||||
| 
						 | 
				
			
			@ -466,7 +466,7 @@ struct StatPass : public Pass {
 | 
			
		|||
 | 
			
		||||
			statdata_t data = hierarchy_worker(mod_stat, top_mod->name, 0, /*quiet=*/json_mode);
 | 
			
		||||
 | 
			
		||||
			if (json_mode) 
 | 
			
		||||
			if (json_mode)
 | 
			
		||||
				data.log_data_json("design", true);
 | 
			
		||||
			else if (GetSize(mod_stat) > 1) {
 | 
			
		||||
				log("\n");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue