mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	sim: Improvements and fixes for yw cosim
* Fixed $cover handling * Improved sparse memory handling when writing traces * JSON summary output
This commit is contained in:
		
							parent
							
								
									636b9f2705
								
							
						
					
					
						commit
						7ddec5093f
					
				
					 6 changed files with 152 additions and 50 deletions
				
			
		| 
						 | 
				
			
			@ -20,6 +20,7 @@
 | 
			
		|||
#include "kernel/yosys.h"
 | 
			
		||||
#include "kernel/sigtools.h"
 | 
			
		||||
#include "kernel/json.h"
 | 
			
		||||
#include "kernel/yw.h"
 | 
			
		||||
#include "libs/json11/json11.hpp"
 | 
			
		||||
 | 
			
		||||
USING_YOSYS_NAMESPACE
 | 
			
		||||
| 
						 | 
				
			
			@ -710,18 +711,6 @@ struct AigerWriter
 | 
			
		|||
			f << it.second;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	template<class T> static std::vector<std::string> witness_path(T *obj) {
 | 
			
		||||
		std::vector<std::string> path;
 | 
			
		||||
		if (obj->name.isPublic()) {
 | 
			
		||||
			auto hdlname = obj->get_string_attribute(ID::hdlname);
 | 
			
		||||
			for (auto token : split_tokens(hdlname))
 | 
			
		||||
				path.push_back("\\" + token);
 | 
			
		||||
		}
 | 
			
		||||
		if (path.empty())
 | 
			
		||||
			path.push_back(obj->name.str());
 | 
			
		||||
		return path;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	void write_ywmap(PrettyJson &json)
 | 
			
		||||
	{
 | 
			
		||||
		json.begin_object();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue