mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	simplify: add smoke test for system function calls
This commit is contained in:
		
							parent
							
								
									8582136a45
								
							
						
					
					
						commit
						6042ae0e8a
					
				
					 1 changed files with 15 additions and 0 deletions
				
			
		
							
								
								
									
										15
									
								
								tests/verilog/fcall_smoke.ys
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								tests/verilog/fcall_smoke.ys
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,15 @@
 | 
			
		|||
read_verilog -sv <<EOT
 | 
			
		||||
module smoke_initstate (
 | 
			
		||||
	input resetn,
 | 
			
		||||
    input clk,
 | 
			
		||||
    input a
 | 
			
		||||
);
 | 
			
		||||
    always @(posedge clk) begin
 | 
			
		||||
        assert property ($stable(a));
 | 
			
		||||
        assert property ($changed(a));
 | 
			
		||||
        assert property ($rose(a));
 | 
			
		||||
        assert property ($fell(a));
 | 
			
		||||
		assume(resetn == !$initstate);
 | 
			
		||||
	end
 | 
			
		||||
endmodule
 | 
			
		||||
EOT
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue