mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	* Add testcase * Cleanup some state at end of abc9 * Re-assign abc9_box_id from scratch * Suppress delete unless prep_bypass did something
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			355 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			355 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| read_verilog -specify <<EOT
 | |
| (* abc9_box, blackbox*)
 | |
| module box(input clk, d, output reg q, output do);
 | |
| parameter P = 0;
 | |
| always @(posedge clk)
 | |
|     q <= d;
 | |
| assign do = d;
 | |
| specify
 | |
|     (posedge clk => (q : d)) = 1;
 | |
|     (d => do) = 1;
 | |
| endspecify
 | |
| endmodule
 | |
| 
 | |
| module top(input clk, d, output q);
 | |
| box i1(clk, d, q);
 | |
| endmodule
 | |
| EOT
 | |
| hierarchy
 | |
| abc9 -lut 4
 | |
| abc9 -lut 4
 |