mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Add two tests
This commit is contained in:
		
							parent
							
								
									929beda19c
								
							
						
					
					
						commit
						90c5ca330c
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -267,3 +267,15 @@ module abc9_test026(output [3:0] o, p);
 | 
			
		|||
assign o = { 1'b1, 1'bx };
 | 
			
		||||
assign p = { 1'b1, 1'bx, 1'b0 };
 | 
			
		||||
endmodule
 | 
			
		||||
 | 
			
		||||
module abc9_test029(input clk, d, r, output reg q);
 | 
			
		||||
always @(posedge clk or posedge r)
 | 
			
		||||
    if (r) q <= 1'b0;
 | 
			
		||||
    else q <= d;
 | 
			
		||||
endmodule
 | 
			
		||||
 | 
			
		||||
module abc9_test030(input clk, d, r, output reg q);
 | 
			
		||||
always @(negedge clk or posedge r)
 | 
			
		||||
    if (r) q <= 1'b1;
 | 
			
		||||
    else q <= d;
 | 
			
		||||
endmodule
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue