mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Fix a conflict between the following two: * propagation of tied-together inputs in * propagation of unused inputs out
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			372 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			372 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| read_verilog <<EOF
 | |
| module tag_2x4(
 | |
|   input        R0_clk,
 | |
|   input        W0_clk,
 | |
|   output       x,
 | |
| );
 | |
|   assign x = !W0_clk;
 | |
| endmodule
 | |
| 
 | |
| module top(input clock, output x, output flag);
 | |
|   tag_2x4 tag_ext(
 | |
|     .R0_clk  (clock),
 | |
|     .W0_clk  (clock),
 | |
|     .x       (x)
 | |
|   );
 | |
|   assign flag = x ^ clock;
 | |
| endmodule
 | |
| EOF
 | |
| 
 | |
| hierarchy -top top
 | |
| opt_hier
 | |
| flatten
 | |
| sat -verify -prove flag 1
 |