mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	sim/formalff: Clock handling for yw cosim
This commit is contained in:
		
							parent
							
								
									7ddec5093f
								
							
						
					
					
						commit
						d6c7aa0e3d
					
				
					 5 changed files with 274 additions and 33 deletions
				
			
		| 
						 | 
				
			
			@ -998,7 +998,7 @@ struct Smt2Worker
 | 
			
		|||
				if (contains_clock && GetSize(wire) == 1 && (clock_posedge.count(sig) || clock_negedge.count(sig)))
 | 
			
		||||
					comments.push_back(stringf("; yosys-smt2-clock %s%s%s\n", get_id(wire),
 | 
			
		||||
							clock_posedge.count(sig) ? " posedge" : "", clock_negedge.count(sig) ? " negedge" : ""));
 | 
			
		||||
				if (contains_clock) {
 | 
			
		||||
				if (wire->port_input && contains_clock) {
 | 
			
		||||
					for (int i = 0; i < GetSize(sig); i++) {
 | 
			
		||||
						bool is_posedge = clock_posedge.count(sig[i]);
 | 
			
		||||
						bool is_negedge = clock_negedge.count(sig[i]);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue