mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			334 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			334 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| read_verilog <<EOT
 | |
| 
 | |
| module ff(...);
 | |
| input d;
 | |
| output q;
 | |
| 
 | |
| endmodule
 | |
| 
 | |
| module top(...);
 | |
| input d;
 | |
| output q1;
 | |
| (* init = 1'b1 *)
 | |
| output q2;
 | |
| 
 | |
| ff my_ff1(.d(d), .q(q1));
 | |
| ff my_ff2(.d(d), .q(q2));
 | |
| 
 | |
| endmodule
 | |
| 
 | |
| EOT
 | |
| 
 | |
| dffinit -ff ff q init
 | |
| select -assert-count 2 t:ff
 | |
| select -assert-count 1 t:ff r:init %i
 | |
| select -assert-count 1 t:ff r:init=1'b1 %i
 |