mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	This is mostly useful for collecting coverage for the future `$check` cell, where, depending on the flavor, formatting a message may not be wanted even for a failed assertion.
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			347 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			347 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include "yosys-always_full.cc"
 | |
| 
 | |
| int main()
 | |
| {
 | |
| 	struct : public performer {
 | |
| 		int64_t vlog_time() const override { return 1; }
 | |
| 		void on_print(const lazy_fmt &output, const cxxrtl::metadata_map &) override { std::cerr << output(); }
 | |
| 	} performer;
 | |
| 
 | |
| 	cxxrtl_design::p_always__full uut;
 | |
| 	uut.p_clk.set(!uut.p_clk);
 | |
| 	uut.step(&performer);
 | |
| 	return 0;
 | |
| }
 |