mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Add log_wire() API
This commit is contained in:
		
							parent
							
								
									95dae6d416
								
							
						
					
					
						commit
						63dfdb5d7f
					
				
					 2 changed files with 8 additions and 0 deletions
				
			
		|  | @ -488,6 +488,13 @@ void log_cell(RTLIL::Cell *cell, std::string indent) | ||||||
| 	log("%s", buf.str().c_str()); | 	log("%s", buf.str().c_str()); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | void log_wire(RTLIL::Wire *wire, std::string indent) | ||||||
|  | { | ||||||
|  | 	std::stringstream buf; | ||||||
|  | 	ILANG_BACKEND::dump_wire(buf, indent, wire); | ||||||
|  | 	log("%s", buf.str().c_str()); | ||||||
|  | } | ||||||
|  | 
 | ||||||
| // ---------------------------------------------------
 | // ---------------------------------------------------
 | ||||||
| // This is the magic behind the code coverage counters
 | // This is the magic behind the code coverage counters
 | ||||||
| // ---------------------------------------------------
 | // ---------------------------------------------------
 | ||||||
|  |  | ||||||
|  | @ -90,6 +90,7 @@ template<typename T> static inline const char *log_id(T *obj) { | ||||||
| 
 | 
 | ||||||
| void log_module(RTLIL::Module *module, std::string indent = ""); | void log_module(RTLIL::Module *module, std::string indent = ""); | ||||||
| void log_cell(RTLIL::Cell *cell, std::string indent = ""); | void log_cell(RTLIL::Cell *cell, std::string indent = ""); | ||||||
|  | void log_wire(RTLIL::Wire *wire, std::string indent = ""); | ||||||
| 
 | 
 | ||||||
| #ifndef NDEBUG | #ifndef NDEBUG | ||||||
| static inline void log_assert_worker(bool cond, const char *expr, const char *file, int line) { | static inline void log_assert_worker(bool cond, const char *expr, const char *file, int line) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue