mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Fix verific clocking when no driver exist
This commit is contained in:
		
							parent
							
								
									bd956d76ba
								
							
						
					
					
						commit
						1764c0ee3c
					
				
					 2 changed files with 11 additions and 1 deletions
				
			
		|  | @ -2110,7 +2110,7 @@ VerificClocking::VerificClocking(VerificImporter *importer, Net *net, bool sva_a | |||
| 	if (sva_at_only) | ||||
| 	do { | ||||
| 		Instance *inst_mux = net->Driver(); | ||||
| 		if (inst_mux->Type() != PRIM_MUX) | ||||
| 		if (inst_mux == nullptr || inst_mux->Type() != PRIM_MUX) | ||||
| 			break; | ||||
| 
 | ||||
| 		bool pwr1 = inst_mux->GetInput1()->IsPwr(); | ||||
|  |  | |||
							
								
								
									
										10
									
								
								tests/verific/clocking.ys
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								tests/verific/clocking.ys
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,10 @@ | |||
| read -sv <<EOT | ||||
| module test(input foo); | ||||
| always @(*) assert(foo); | ||||
| endmodule | ||||
| EOT | ||||
| 
 | ||||
| verific -import test | ||||
| prep | ||||
| 
 | ||||
| select -assert-count 1 t:$assert | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue